You are here

function _unixref_get_contributor_category in Bibliography Module 6

1 call to _unixref_get_contributor_category()
unixref_startElement in ./crossref_unixref_parser.inc

File

./crossref_unixref_parser.inc, line 186

Code

function _unixref_get_contributor_category($role) {
  if ($role == 'author') {
    return 1;
  }
  if ($role == 'editor') {
    return 2;
  }
  if ($role == 'chair') {
    return 3;
  }
  if ($role == 'translator') {
    return 4;
  }
  return NULL;
}