You are here

function _biblio_ris_type_map in Bibliography Module 7.2

Same name and namespace in other branches
  1. 6.2 modules/RIS/biblio_ris.module \_biblio_ris_type_map()
  2. 7 modules/RIS/biblio_ris.module \_biblio_ris_type_map()
2 calls to _biblio_ris_type_map()
_biblio_ris_export in modules/RIS/biblio_ris.module
_biblio_ris_parse_line in modules/RIS/biblio_ris.module

File

modules/RIS/biblio_ris.module, line 430

Code

function _biblio_ris_type_map($type, $reverse = FALSE) {
  static $map = array();
  if (empty($map)) {
    $map = biblio_get_map('type_map', 'ris');
  }
  if ($reverse) {
    return ($tag = array_search($type, $map)) ? $tag : 'Generic';

    //return the biblio type or 129 (Misc) if type not found
  }
  return isset($map[$type]) ? $map[$type] : 129;

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