You are here

function biblio_xml_biblio_import in Bibliography Module 7.2

Same name and namespace in other branches
  1. 6.2 modules/endnote/biblio_xml.module \biblio_xml_biblio_import()
  2. 7 modules/endnote/biblio_xml.module \biblio_xml_biblio_import()

File

modules/endnote/biblio_xml.module, line 96

Code

function biblio_xml_biblio_import($file, $terms = array(), $batch = FALSE, $session_id = NULL, $save = TRUE, $string = FALSE) {
  module_load_include('inc', 'biblio_xml', 'endnote_xml_parser');
  $nids = array();
  $dups = array();
  $parser = new EndNoteXMLParser();
  list($nids, $dups) = $parser
    ->parse($file, $terms, $batch, $session_id);
  return array(
    $nids,
    $dups,
  );
}