You are here

function _biblio_ris_field_map in Bibliography Module 7.2

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

File

modules/RIS/biblio_ris.module, line 442

Code

function _biblio_ris_field_map($field, $reverse = FALSE) {
  static $fmap = array();
  if (empty($fmap)) {
    $fmap = biblio_get_map('field_map', 'ris');
  }
  if ($reverse) {
    return ($tag = array_search($field, $fmap)) ? $tag : '';
  }
  return !empty($fmap[$field]) ? $fmap[$field] : '';
}