function _biblio_get_auth_type in Bibliography Module 6.2
Same name and namespace in other branches
- 6 biblio.module \_biblio_get_auth_type()
- 7 biblio.module \_biblio_get_auth_type()
- 7.2 biblio.module \_biblio_get_auth_type()
Retrieves primary author type based on author category and biblio type.
Parameters
string $auth_category: A string representing the category of author.
string $biblio_type: A string representing the type of biblio item.
Return value
string|null A string with the primary author type. NULL is returned if no matches could be found.
6 calls to _biblio_get_auth_type()
- BiblioCrossRefClient::unixref_endElement in modules/
crossref/ biblio.crossref.client.php - EndNoteXMLParser::endnote7_endElement in modules/
endnote/ endnote_xml_parser.inc - EndNoteXMLParser::endnote8_characterData in modules/
endnote/ endnote_xml_parser.inc - _biblio_bibtex_import in modules/
bibtexParse/ biblio_bibtex.module - _biblio_ris_parse_line in modules/
RIS/ biblio_ris.module
File
- ./
biblio.module, line 69 - Main file for Drupal module biblio.
Code
function _biblio_get_auth_type($auth_category, $biblio_type) {
$result = (array) _biblio_get_auth_types($auth_category, $biblio_type);
// Return first element of the author types array.
return empty($result) ? NULL : current($result);
}