From 84b6d8c5eee01e01743bf070a0facf449df97028 Mon Sep 17 00:00:00 2001 From: Aurimas Vinckevicius Date: Thu, 19 Sep 2013 14:05:38 -0500 Subject: [PATCH] If abbreviation is same as key, it's still valid See http://forums.zotero.org/discussion/32000/overriding-automatic-abbreviations/ --- chrome/content/zotero/xpcom/cite.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/xpcom/cite.js b/chrome/content/zotero/xpcom/cite.js index d912fcb5e..3a6712873 100644 --- a/chrome/content/zotero/xpcom/cite.js +++ b/chrome/content/zotero/xpcom/cite.js @@ -450,10 +450,8 @@ Zotero.Cite.getAbbreviation = new function() { } } - if(!abbreviation || abbreviation === key) { - Zotero.debug("No abbreviation found for "+key); - return; - } + if(!abbreviation) abbreviation = key; //this should never happen, but just in case + Zotero.debug("Abbreviated "+key+" as "+abbreviation); // Add to jurisdiction object