Created
September 18, 2013 09:16
-
-
Save quazgar/6606646 to your computer and use it in GitHub Desktop.
fallback to item.publicationTitle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- BibTeX.js 2013-09-18 10:46:44.946348697 +0200 | |
+++ BibTeX.abbrevFallback.js 2013-09-18 10:57:14.916348376 +0200 | |
@@ -2401,7 +2401,11 @@ | |
if(item.itemType == "bookSection" || item.itemType == "conferencePaper") { | |
writeField("booktitle", item.publicationTitle); | |
} else if(Zotero.getOption("useJournalAbbreviation")){ | |
- writeField("journal", item.journalAbbreviation); | |
+ if(item.journalAbbreviation) { | |
+ writeField("journal", item.journalAbbreviation); | |
+ } else { | |
+ writeField("journal", item.publicationTitle); | |
+ } | |
} else { | |
writeField("journal", item.publicationTitle); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems to be a duplicate of this pull request zotero/translators#622