public function BiblioStyleBibtex::importSecondaryTitle in Bibliography Module 7.3
Import secondary title.
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 170 - BibTeX style.
Class
- BiblioStyleBibtex
- @file BibTeX style.
Code
public function importSecondaryTitle(EntityMetadataWrapper $wrapper, $key, $entry) {
$types = array(
'booktitle',
'series',
'journal',
);
foreach ($types as $type) {
if (!empty($entry[$type])) {
$value = $entry[$type];
break;
}
}
if (empty($value)) {
return;
}
$entry[$key] = $value;
$this
->importGeneric($wrapper, $key, $entry);
}