public function BiblioStyleBibtex::importPublisher in Bibliography Module 7.3
Import publisher.
Parameters
EntityMetadataWrapper $wrapper: The wrapped Biblio object.
$key: The key to import.
$entry: The data to import from.
File
- plugins/
biblio_style/ bibtex/ BiblioStyleBibtex.class.php, line 137 - BibTeX style.
Class
- BiblioStyleBibtex
- @file BibTeX style.
Code
public function importPublisher(EntityMetadataWrapper $wrapper, $key, $entry) {
$types = array(
'organization',
'school',
'institution',
'publisher',
);
foreach ($types as $type) {
if (!empty($entry[$type])) {
$value = $entry[$type];
break;
}
}
if (empty($value)) {
return;
}
$entry[$key] = $value;
$this
->importGeneric($wrapper, $key, $entry);
}