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.7 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_crossref2refbase.php
  11. // Repository: $HeadURL: file:///svn/p/refbase/code/branches/bleeding-edge/import/import_crossref2refbase.php $
  12. // Author(s): Richard Karnesky <mailto:karneskygmail.com>
  13. //
  14. // Created: 15-Feb-08, 16:45
  15. // Modified: $Date: 2008-11-02 18:37:05 +0000 (Sun, 02 Nov 2008) $
  16. // $Author: msteffens $
  17. // $Revision: 1290 $
  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 'CrossRef "unixref XML"'-formatted data
  20. // i.e. that from their OpenURL server:
  21. // http://www.crossref.org/openurl/?noredirect=true&format=unixref&id=doi%3A10.1103%2FPhysRev.47.777
  22. // --------------------------------------------------------------------
  23. // --- BEGIN IMPORT FORMAT ---
  24. // Import records from CrossRef-formatted source data:
  25. function importRecords($sourceText, $importRecordsRadio, $importRecordNumbersArray)
  26. {
  27. // parse CrossRef format:
  28. return crossrefToRefbase($sourceText, $importRecordsRadio, $importRecordNumbersArray); // function 'crossrefToRefbase()' is defined in 'import.inc.php'
  29. }
  30. // --- END IMPORT FORMAT ---
  31. // --------------------------------------------------------------------
  32. ?>