Refbase update_2021-01-28_15_58
This commit is contained in:
50
import/bibutils/import_bib2refbase.php
Normal file
50
import/bibutils/import_bib2refbase.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
// Project: Web Reference Database (refbase) <http://www.refbase.net>
|
||||
// Copyright: Matthias Steffens <mailto:refbase@extracts.de> 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_bib2refbase.php
|
||||
// Repository: $HeadURL: file:///svn/p/refbase/code/branches/bleeding-edge/import/bibutils/import_bib2refbase.php $
|
||||
// Author(s): Matthias Steffens <mailto:refbase@extracts.de>
|
||||
//
|
||||
// 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 'BibTeX'-formatted data, i.e. data that were formatted according to the export format used
|
||||
// by the bibliographic companion to the LaTeX macro package (http://en.wikipedia.org/wiki/Bibtex).
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
// --- BEGIN IMPORT FORMAT ---
|
||||
|
||||
// Import records from Bibtex-formatted source data:
|
||||
|
||||
// Requires the following packages (available under the GPL):
|
||||
// - bibutils <http://www.scripps.edu/~cdputnam/software/bibutils/bibutils.html>
|
||||
|
||||
function importRecords($sourceText, $importRecordsRadio, $importRecordNumbersArray)
|
||||
{
|
||||
// convert LaTeX/BibTeX markup into proper refbase markup:
|
||||
$sourceText = standardizeBibtexInput($sourceText); // function 'standardizeBibtexInput()' is defined in 'import.inc.php'
|
||||
|
||||
// convert Bibtex format to MODS XML format:
|
||||
$sourceText = importBibutils($sourceText,"bib2xml"); // function 'importBibutils()' is defined in 'execute.inc.php'
|
||||
|
||||
// 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 ---
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
?>
|
47
import/bibutils/import_copac2refbase.php
Normal file
47
import/bibutils/import_copac2refbase.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
// Project: Web Reference Database (refbase) <http://www.refbase.net>
|
||||
// Copyright: Matthias Steffens <mailto:refbase@extracts.de> 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_copac2refbase.php
|
||||
// Repository: $HeadURL: file:///svn/p/refbase/code/branches/bleeding-edge/import/bibutils/import_copac2refbase.php $
|
||||
// Author(s): Matthias Steffens <mailto:refbase@extracts.de>
|
||||
//
|
||||
// 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 'COPAC'-formatted data, i.e. data that were exported from the COPAC Internet Database
|
||||
// Service (http://www.copac.ac.uk/), a union catalogue that provides free access to academic and national libraries in the UK and Ireland.
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
// --- BEGIN IMPORT FORMAT ---
|
||||
|
||||
// Import records from COPAC-formatted source data:
|
||||
|
||||
// Requires the following packages (available under the GPL):
|
||||
// - bibutils <http://www.scripps.edu/~cdputnam/software/bibutils/bibutils.html>
|
||||
|
||||
function importRecords($sourceText, $importRecordsRadio, $importRecordNumbersArray)
|
||||
{
|
||||
// convert COPAC format to MODS XML format:
|
||||
$sourceText = importBibutils($sourceText,"copac2xml"); // function 'importBibutils()' is defined in 'execute.inc.php'
|
||||
|
||||
// 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 ---
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
?>
|
47
import/bibutils/import_end2refbase.php
Normal file
47
import/bibutils/import_end2refbase.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
// Project: Web Reference Database (refbase) <http://www.refbase.net>
|
||||
// Copyright: Matthias Steffens <mailto:refbase@extracts.de> 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_end2refbase.php
|
||||
// Repository: $HeadURL: file:///svn/p/refbase/code/branches/bleeding-edge/import/bibutils/import_end2refbase.php $
|
||||
// Author(s): Matthias Steffens <mailto:refbase@extracts.de>
|
||||
//
|
||||
// Created: 24-Feb-06, 02:07
|
||||
// Modified: $Date: 2012-02-28 23:17:21 +0000 (Tue, 28 Feb 2012) $
|
||||
// $Author: msteffens $
|
||||
// $Revision: 1342 $
|
||||
|
||||
// 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 'Endnote tagged'-formatted data, i.e. data that were formatted according to the tagged export
|
||||
// format used by the commercial bibliographic package 'Endnote' (http://www.endnote.com).
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
// --- BEGIN IMPORT FORMAT ---
|
||||
|
||||
// Import records from Endnote-formatted source data:
|
||||
|
||||
// Requires the following packages (available under the GPL):
|
||||
// - bibutils <http://www.scripps.edu/~cdputnam/software/bibutils/bibutils.html>
|
||||
|
||||
function importRecords($sourceText, $importRecordsRadio, $importRecordNumbersArray)
|
||||
{
|
||||
// convert Endnote tagged format to MODS XML format:
|
||||
$sourceText = importBibutils($sourceText,"end2xml"); // function 'importBibutils()' is defined in 'execute.inc.php'
|
||||
|
||||
// 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 ---
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
?>
|
50
import/bibutils/import_endx2refbase.php
Normal file
50
import/bibutils/import_endx2refbase.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
// Project: Web Reference Database (refbase) <http://www.refbase.net>
|
||||
// Copyright: Matthias Steffens <mailto:refbase@extracts.de> 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_endx2refbase.php
|
||||
// Repository: $HeadURL$
|
||||
// Author(s): Matthias Steffens <mailto:refbase@extracts.de>
|
||||
//
|
||||
// Created: 21-Mar-07, 22:57
|
||||
// Modified: $Date: 2007-09-27 14:11:28 +0000 (Thu, 27 Sep 2007) $
|
||||
// $Author$
|
||||
// $Revision: 992 $
|
||||
|
||||
// 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 'Endnote XML'-formatted data, i.e. data that were formatted according to the XML export format
|
||||
// used by the commercial bibliographic package 'Endnote' (http://www.endnote.com).
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
// --- BEGIN IMPORT FORMAT ---
|
||||
|
||||
// Import records from Endnote XML-formatted source data:
|
||||
|
||||
// Requires the following packages (available under the GPL):
|
||||
// - bibutils <http://www.scripps.edu/~cdputnam/software/bibutils/bibutils.html>
|
||||
|
||||
function importRecords($sourceText, $importRecordsRadio, $importRecordNumbersArray)
|
||||
{
|
||||
// convert Endnote XML text style markup into proper refbase markup:
|
||||
$sourceText = standardizeEndnoteXMLInput($sourceText); // function 'standardizeEndnoteXMLInput()' is defined in 'import.inc.php'
|
||||
|
||||
// convert Endnote format to MODS XML format:
|
||||
$sourceText = importBibutils($sourceText,"endx2xml"); // function 'importBibutils()' is defined in 'execute.inc.php'
|
||||
|
||||
// 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 ---
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
?>
|
47
import/bibutils/import_isi2refbase.php
Normal file
47
import/bibutils/import_isi2refbase.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
// Project: Web Reference Database (refbase) <http://www.refbase.net>
|
||||
// Copyright: Matthias Steffens <mailto:refbase@extracts.de> 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_isi2refbase.php
|
||||
// Repository: $HeadURL: file:///svn/p/refbase/code/branches/bleeding-edge/import/bibutils/import_isi2refbase.php $
|
||||
// Author(s): Matthias Steffens <mailto:refbase@extracts.de>
|
||||
//
|
||||
// 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 'ISI'-formatted data, i.e. data that were exported from the ISI Web of Science Internet
|
||||
// Database Service (http://scientific.thomson.com/products/wos/).
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
// --- BEGIN IMPORT FORMAT ---
|
||||
|
||||
// Import records from ISI-formatted source data:
|
||||
|
||||
// Requires the following packages (available under the GPL):
|
||||
// - bibutils <http://www.scripps.edu/~cdputnam/software/bibutils/bibutils.html>
|
||||
|
||||
function importRecords($sourceText, $importRecordsRadio, $importRecordNumbersArray)
|
||||
{
|
||||
// convert ISI WoS format to MODS XML format:
|
||||
$sourceText = importBibutils($sourceText,"isi2xml"); // function 'importBibutils()' is defined in 'execute.inc.php'
|
||||
|
||||
// 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 ---
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
?>
|
47
import/bibutils/import_med2refbase.php
Normal file
47
import/bibutils/import_med2refbase.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
// Project: Web Reference Database (refbase) <http://www.refbase.net>
|
||||
// Copyright: Matthias Steffens <mailto:refbase@extracts.de> 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_med2refbase.php
|
||||
// Repository: $HeadURL: file:///svn/p/refbase/code/branches/bleeding-edge/import/bibutils/import_med2refbase.php $
|
||||
// Author(s): Matthias Steffens <mailto:refbase@extracts.de>
|
||||
//
|
||||
// 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 'Pubmed'-formatted data, i.e. data that were exported from the Pubmed Internet Database
|
||||
// Service (http://www.pubmed.gov/) in 'XML' format.
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
// --- BEGIN IMPORT FORMAT ---
|
||||
|
||||
// Import records from Pubmed-formatted source data:
|
||||
|
||||
// Requires the following packages (available under the GPL):
|
||||
// - bibutils <http://www.scripps.edu/~cdputnam/software/bibutils/bibutils.html>
|
||||
|
||||
function importRecords($sourceText, $importRecordsRadio, $importRecordNumbersArray)
|
||||
{
|
||||
// convert Pubmed XML format to MODS XML format:
|
||||
$sourceText = importBibutils($sourceText,"med2xml"); // function 'importBibutils()' is defined in 'execute.inc.php'
|
||||
|
||||
// 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 ---
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
?>
|
44
import/bibutils/import_modsxml2refbase.php
Normal file
44
import/bibutils/import_modsxml2refbase.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
// Project: Web Reference Database (refbase) <http://www.refbase.net>
|
||||
// Copyright: Matthias Steffens <mailto:refbase@extracts.de> 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 <mailto:refbase@extracts.de>
|
||||
//
|
||||
// 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 <http://www.scripps.edu/~cdputnam/software/bibutils/bibutils.html>
|
||||
|
||||
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 ---
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
?>
|
50
import/bibutils/import_ris2refbase.php
Normal file
50
import/bibutils/import_ris2refbase.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
// Project: Web Reference Database (refbase) <http://www.refbase.net>
|
||||
// Copyright: Matthias Steffens <mailto:refbase@extracts.de> 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_ris2refbase.php
|
||||
// Repository: $HeadURL: file:///svn/p/refbase/code/branches/bleeding-edge/import/bibutils/import_ris2refbase.php $
|
||||
// Author(s): Matthias Steffens <mailto:refbase@extracts.de>
|
||||
//
|
||||
// Created: 23-Feb-06, 02:35
|
||||
// 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 'RIS'-formatted data, i.e. data formatted according to the standard export format used e.g.
|
||||
// by commercial bibliographic packages like 'Reference Manager' (http://www.refman.com).
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
// --- BEGIN IMPORT FORMAT ---
|
||||
|
||||
// Import records from RIS-formatted source data:
|
||||
|
||||
// Requires the following packages (available under the GPL):
|
||||
// - bibutils <http://www.scripps.edu/~cdputnam/software/bibutils/bibutils.html>
|
||||
|
||||
function importRecords($sourceText, $importRecordsRadio, $importRecordNumbersArray)
|
||||
{
|
||||
// By passing RIS thru bibutils we receive a standard RIS format that may be easier to import than the original one.
|
||||
// You can use './import/import_ris2refbase.php' to import RIS records directly.
|
||||
|
||||
// convert RIS format to MODS XML format:
|
||||
$sourceText = importBibutils($sourceText,"ris2xml"); // function 'importBibutils()' is defined in 'execute.inc.php'
|
||||
|
||||
// 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 ---
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
?>
|
Reference in New Issue
Block a user