From 4f2583f1df6ec0da802e937d56fabe392a355047 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 6 Nov 2008 08:59:30 +0000 Subject: [PATCH] Fix a few bugs in csl.js --- chrome/content/zotero/xpcom/csl.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/csl.js b/chrome/content/zotero/xpcom/csl.js index 5ac4017d38..1edb7abb7b 100644 --- a/chrome/content/zotero/xpcom/csl.js +++ b/chrome/content/zotero/xpcom/csl.js @@ -30,10 +30,10 @@ Zotero.CSL = function(csl) { // See https://bugzilla.mozilla.org/show_bug.cgi?id=330572 default xml namespace = "http://purl.org/net/xbiblio/csl"; with ({}); - if(typeof csl != "XML") { + if(typeof csl != "xml") { this._csl = new XML(Zotero.CSL.Global.cleanXML(csl)); } else { - this._csl = CSL; + this._csl = csl; } // initialize CSL @@ -306,7 +306,7 @@ Zotero.CSL.prototype.formatBibliography = function(itemSet, format) { if(!itemSet.items.length) return ""; - var hangingIndent = !!(context.option.(@name == "hanging-indent").@value == "true"); + var hangingIndent = context.option.(@name == "hanging-indent").@value == "true"; var secondFieldAlign = context.option.(@name == "second-field-align").@value.toString(); var lineSpacing = context.option.(@name == "line-spacing").@value.toString(); lineSpacing = (lineSpacing === "" ? 1 : parseInt(lineSpacing, 10));