function BiblioCrossRefClient::_unixref_type_map in Bibliography Module 7.2
Same name and namespace in other branches
- 6.2 modules/crossref/biblio.crossref.client.php \BiblioCrossRefClient::_unixref_type_map()
- 7 modules/crossref/biblio.crossref.client.php \BiblioCrossRefClient::_unixref_type_map()
1 call to BiblioCrossRefClient::_unixref_type_map()
- BiblioCrossRefClient::unixref_startElement in modules/
crossref/ biblio.crossref.client.php
File
- modules/
crossref/ biblio.crossref.client.php, line 278
Class
Code
function _unixref_type_map($type) {
if (empty($this->type_map)) {
$this->type_map = unserialize(db_query("SELECT type_map FROM {biblio_type_maps} WHERE format='crossref'")
->fetchField());
}
return isset($this->type_map[$type]) ? $this->type_map[$type] : 129;
//return the biblio type or 129 (Misc) if type not found
}