From a620e08b7b0191d413124ea4357c7d5351e29c3f Mon Sep 17 00:00:00 2001 From: Julian Onions Date: Wed, 27 Feb 2008 10:14:09 +0000 Subject: [PATCH] fixes:938 - conditionals on locators don't work in CSL A typo in the JS referred to the wrong variable --- chrome/content/zotero/xpcom/cite.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/cite.js b/chrome/content/zotero/xpcom/cite.js index a57066072..3a1900f00 100644 --- a/chrome/content/zotero/xpcom/cite.js +++ b/chrome/content/zotero/xpcom/cite.js @@ -1310,7 +1310,7 @@ Zotero.CSL.prototype._processElements = function(item, element, formattedString, } else if(attribute == "locator") { exists = citationItem && citationItem.locator && (citationItem.locatorType == variables[j] - || (!citation.locatorType && variables[j] == "page")); + || (!citationItem.locatorType && variables[j] == "page")); } else { // attribute == "position" if(variables[j] == "first") { exists = !citationItem