Fixes "JanosBibliographyStyle: Do not show "In " when booktitle is empty "

This commit is contained in:
Sönke
2016-01-08 11:53:55 +01:00
parent f815e39d0d
commit 68b71121bf
+3 -3
View File
@@ -2181,15 +2181,15 @@ function JanosBibliographyStyle(&$bibentry) {
$booktitle = $bibentry->getField("note"); $booktitle = $bibentry->getField("note");
} }
if ($type=="inproceedings") { if ($type=="inproceedings" && $bibentry->hasField(BOOKTITLE)) {
$booktitle = 'In '.$bibentry->getField(BOOKTITLE); $booktitle = 'In '.$bibentry->getField(BOOKTITLE);
} }
if ($type=="incollection") { if ($type=="incollection" && $bibentry->hasField(BOOKTITLE)) {
$booktitle = 'Chapter in '.$bibentry->getField(BOOKTITLE); $booktitle = 'Chapter in '.$bibentry->getField(BOOKTITLE);
} }
if ($type=="article") { if ($type=="article" && $bibentry->hasField("journal")) {
$booktitle = 'In '.$bibentry->getField("journal"); $booktitle = 'In '.$bibentry->getField("journal");
} }