You are here

public function BiblioCrossRefClient::_unixref_get_contributor_category in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/crossref/biblio.crossref.client.php \BiblioCrossRefClient::_unixref_get_contributor_category()
  2. 7.2 modules/crossref/biblio.crossref.client.php \BiblioCrossRefClient::_unixref_get_contributor_category()
1 call to BiblioCrossRefClient::_unixref_get_contributor_category()
BiblioCrossRefClient::unixref_startElement in modules/crossref/biblio.crossref.client.php

File

modules/crossref/biblio.crossref.client.php, line 441

Class

BiblioCrossRefClient

Code

public 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;
}