You are here

function _endnote8_type_map in Bibliography Module 6

Same name and namespace in other branches
  1. 6.2 modules/endnote/endnote8_export.inc \_endnote8_type_map()
  2. 7 modules/endnote/endnote8_export.inc \_endnote8_type_map()
  3. 7.2 modules/endnote/endnote8_export.inc \_endnote8_type_map()
1 call to _endnote8_type_map()
_endnote8_XML_export in ./endnote8_export.inc

File

./endnote8_export.inc, line 265

Code

function _endnote8_type_map($bibliotype) {
  static $map = array();
  if (empty($map)) {
    module_load_include('inc', 'biblio', 'biblio.type.mapper');
    $map = biblio_get_type_map('endnote8');
  }
  return ($en8_type = array_search($bibliotype, $map)) ? $en8_type : 13;

  //return the biblio type or 129 (Misc) if type not found
}