You are here

function _biblio_ris_field_map in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/RIS/biblio_ris.module \_biblio_ris_field_map()
  2. 7.2 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 561

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] : '';
}