commit 15f26e44da4f7eadd9c4533df776981026fbb6be
parent 20e94b493e28dea2f099803012ffe1644c4b6835
Author: Simon Kornblith <simon@simonster.com>
Date: Wed, 3 Apr 2013 12:58:29 -0400
Recognize container-title-short as journal abbreviation
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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");