1, // 'SECONDARY_AUTHOR' => 2, // The 4 author fields map back to the author category 'TERTIARY_AUTHOR' => 3, // rather than a field name. 'SUBSIDIARY_AUTHOR' => 4, // 'REFERENCE_TYPE' => 'biblio_type', 'REFNUM' => '', 'YEAR' => 'biblio_year', 'TITLE' => 'title', 'SECONDARY_TITLE' => 'biblio_secondary_title', 'PLACE_PUBLISHED' => 'biblio_place_published', 'PUBLISHER' => 'biblio_publisher', 'VOLUME' => 'biblio_volume', 'ISSUE' => 'biblio_issue', 'NUMBER_OF_VOLUMES' => 'biblio_number_of_volumes', 'NUMBER' => 'biblio_number', 'PAGES' => 'biblio_pages', 'SECTION' => 'biblio_section', 'TERTIARY_TITLE' => 'biblio_tertiary_title', 'EDITION' => 'biblio_edition', 'DATE' => 'biblio_date', 'TYPE_OF_WORK' => 'biblio_type_of_work', 'SHORT_TITLE' => 'biblio_short_title', 'ALTERNATE_TITLE' => 'biblio_alternate_title', 'ISBN' => 'biblio_isbn', 'ORIGINAL_PUB' => 'biblio_original_publication', 'REPRINT_EDITION' => 'biblio_reprint_edition', 'REVIEWED_ITEM' => '', 'CUSTOM1' => 'biblio_custom1', 'CUSTOM2' => 'biblio_custom2', 'CUSTOM3' => 'biblio_custom3', 'CUSTOM4' => 'biblio_custom4', 'CUSTOM5' => 'biblio_custom5', 'CUSTOM6' => 'biblio_custom6', 'ACCESSION_NUMBER' => 'biblio_accession_number', 'CALL_NUMBER' => 'biblio_call_number', 'LABEL' => 'biblio_label', 'KEYWORD' => 'biblio_keywords', 'ABSTRACT' => 'biblio_abst_e', 'NOTES' => 'biblio_notes', 'URL' => 'biblio_url', 'AUTHOR_ADDRESS' => '', 'IMAGE' => '', 'CAPTION' => '', ); } return (!empty($fmap[$enfield])) ? $fmap[$enfield] : ''; } function en7_type_map($entype) { static $map = array(); if (empty($map)) { $map = array( '0' => '102', // Journal Article '1' => '100', // Book '2' => '108', // Thesis '3' => '103', // Conference Proceedings '4' => '120', // Personal Communication '5' => '105', // NewsPaper Article '6' => '113', // Computer Program '7' => '101', // Book Section '8' => '106', // Magazine Article '9' => '100', // Edited Book '10' => '109', // Report '11' => '122', // Map '12' => '114', // Audiovisual Material '13' => '112', // Artwork '15' => '119', // Patent '16' => '107', // Electronic Source '17' => '117', // Bill '18' => '116', // Case '19' => '115', // Hearing '20' => '121', // Manuscript '21' => '110', // Film or Broadcast '22' => '118', // Statute '26' => '123', // Chart or Table '31' => '129' // Generic ); } return (isset($map[$entype]))?$map[$entype]:129; //return the biblio type or 129 (Misc) if type not found }