You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.5 KiB

  1. <?php
  2. // Project: Web Reference Database (refbase) <http://www.refbase.net>
  3. // Copyright: Matthias Steffens <mailto:refbase@extracts.de> and the file's
  4. // original author(s).
  5. //
  6. // This code is distributed in the hope that it will be useful,
  7. // but WITHOUT ANY WARRANTY. Please see the GNU General Public
  8. // License for more details.
  9. //
  10. // File: ./export/export_oaidcxml.php
  11. // Repository: $HeadURL$
  12. // Author(s): Matthias Steffens <mailto:refbase@extracts.de>
  13. //
  14. // Created: 08-Jan-08, 22:00
  15. // Modified: $Date: 2008-04-04 08:14:28 +0000 (Fri, 04 Apr 2008) $
  16. // $Author$
  17. // $Revision: 1027 $
  18. // This exports OAI_DC XML. This file must reside in the 'export' directory of the refbase root directory.
  19. // It uses functions from include file 'oaidcxml.inc.php' that requires the ActiveLink PHP XML Package,
  20. // which is available under the GPL from: <http://www.active-link.com/software/>
  21. // --------------------------------------------------------------------
  22. // --- BEGIN EXPORT FORMAT ---
  23. // Export found records as OAI_DC XML:
  24. function exportRecords($result, $rowOffset, $showRows, $exportStylesheet, $displayType)
  25. {
  26. // Generate and serve a OAI_DC XML file of ALL records:
  27. $recordCollection = oaidcCollection($result); // function 'oaidcCollection()' is defined in 'oaidcxml.inc.php'
  28. return $recordCollection;
  29. }
  30. // --- END EXPORT FORMAT ---
  31. // --------------------------------------------------------------------
  32. ?>