Skip to content

Instantly share code, notes, and snippets.

@quazgar
Created September 18, 2013 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quazgar/6606646 to your computer and use it in GitHub Desktop.
Save quazgar/6606646 to your computer and use it in GitHub Desktop.
fallback to item.publicationTitle
--- 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);
}
@quazgar
Copy link
Author

quazgar commented Sep 18, 2013

Seems to be a duplicate of this pull request zotero/translators#622

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment