fixes:938 - conditionals on locators don't work in CSL

A typo in the JS referred to the wrong variable
This commit is contained in:
Julian Onions 2008-02-27 10:14:09 +00:00
parent 9ba9cf50c3
commit a620e08b7b

View File

@ -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