public function BiblioCrossRefClient::_unixref_type_map in Bibliography Module 7
Same name and namespace in other branches
- 6.2 modules/crossref/biblio.crossref.client.php \BiblioCrossRefClient::_unixref_type_map()
- 7.2 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 430
Class
Code
public 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 the biblio type or 129 (Misc) if type not found.
return isset($this->type_map[$type]) ? $this->type_map[$type] : 129;
}