// Copyright: Matthias Steffens and the file's // original author(s). // // This code is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY. Please see the GNU General Public // License for more details. // // File: ./import/bibutils/import_modsxml2refbase.php // Repository: $HeadURL: file:///svn/p/refbase/code/branches/bleeding-edge/import/bibutils/import_modsxml2refbase.php $ // Author(s): Matthias Steffens // // Created: 24-Feb-06, 02:07 // Modified: $Date: 2007-02-17 01:10:14 +0000 (Sat, 17 Feb 2007) $ // $Author: msteffens $ // $Revision: 894 $ // 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 // 'importRecords()' function that imports records from 'MODS'-formatted data, i.e. data that were exported as XML according to the "Metadata Object // Description Schema" (MODS) (http://www.loc.gov/standards/mods/). // -------------------------------------------------------------------- // --- BEGIN IMPORT FORMAT --- // Import records from MODS-formatted source data: // Requires the following packages (available under the GPL): // - bibutils function importRecords($sourceText, $importRecordsRadio, $importRecordNumbersArray) { // convert MODS XML format to RIS format: $sourceText = importBibutils($sourceText,"xml2ris"); // function 'importBibutils()' is defined in 'execute.inc.php' // parse RIS format: return risToRefbase($sourceText, $importRecordsRadio, $importRecordNumbersArray); // function 'risToRefbase()' is defined in 'import.inc.php' } // --- END IMPORT FORMAT --- // -------------------------------------------------------------------- ?>