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.

38 lines
1.6 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: ./import/import_arxiv2refbase.php
  11. // Repository: $HeadURL$
  12. // Author(s): Matthias Steffens <mailto:refbase@extracts.de>
  13. //
  14. // Created: 09-Jun-08, 16:00
  15. // Modified: $Date: 2008-06-19 17:50:09 +0000 (Thu, 19 Jun 2008) $
  16. // $Author$
  17. // $Revision: 1144 $
  18. // This is an import format file (which must reside within the 'import/' sub-directory of your refbase root directory). It contains a version of the
  19. // 'importRecords()' function that imports records from arXiv.org's Atom XML OpenSearch format.
  20. // More info on the arXiv API and its Atom-based response format is available at <http://export.arxiv.org/api_help/>.
  21. // --------------------------------------------------------------------
  22. // --- BEGIN IMPORT FORMAT ---
  23. // Import records from arXiv source data:
  24. function importRecords($sourceObject, $importRecordsRadio, $importRecordNumbersArray)
  25. {
  26. // parse arXiv Atom XML format:
  27. return arxivToRefbase($sourceObject, $importRecordsRadio, $importRecordNumbersArray); // function 'arxivToRefbase()' is defined in 'import.inc.php'
  28. }
  29. // --- END IMPORT FORMAT ---
  30. // --------------------------------------------------------------------
  31. ?>