From 15f26e44da4f7eadd9c4533df776981026fbb6be Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 3 Apr 2013 12:58:29 -0400 Subject: [PATCH] Recognize container-title-short as journal abbreviation --- chrome/content/zotero/xpcom/style.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/style.js b/chrome/content/zotero/xpcom/style.js index 7676e9dde..93badc1cb 100644 --- a/chrome/content/zotero/xpcom/style.js +++ b/chrome/content/zotero/xpcom/style.js @@ -430,7 +430,8 @@ Zotero.Style = function(arg) { '/csl:style/csl:info[1]/csl:category', Zotero.Styles.ns)) if(category.hasAttribute("term"))]; this._class = doc.documentElement.getAttribute("class"); - this._usesAbbreviation = !!Zotero.Utilities.xpath(doc, '//csl:text[@form="short"][@variable="container-title"][1]', + this._usesAbbreviation = !!Zotero.Utilities.xpath(doc, + '//csl:text[(@variable="container-title" and @form="short") or (@variable="container-title-short")][1]', Zotero.Styles.ns).length; this._hasBibliography = !!doc.getElementsByTagName("bibliography").length; this._version = doc.documentElement.getAttribute("version");