From 81640bcc2fe19eaf6c5d9c3f8649c8d5c63b30e0 Mon Sep 17 00:00:00 2001 From: Julian Onions Date: Fri, 30 Nov 2007 09:43:42 +0000 Subject: [PATCH] Fix for bug #849, allows locator to be tested in an statement. --- chrome/content/zotero/xpcom/cite.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/cite.js b/chrome/content/zotero/xpcom/cite.js index 3374d20ce..4f64d9eba 100644 --- a/chrome/content/zotero/xpcom/cite.js +++ b/chrome/content/zotero/xpcom/cite.js @@ -1197,7 +1197,11 @@ Zotero.CSL.prototype._processElements = function(item, element, formattedString, var variables = newChild["@"+attribute].toString().split(" "); for(var j=0; !done && j 0 + } + else if(Zotero.CSL._dateVariables[variables[j]]) { // getDate not false/undefined var exists = !!item.getDate(variables[j]); } else if(Zotero.CSL._namesVariables[variables[j]]) {