From 4e98dc8c02de3d42a98f64f7ecd432fedb79337a Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 22 Mar 2007 14:20:05 +0000 Subject: [PATCH] - closes #566, chicago note-with-bibliography style does not allow generation of a bibliography - closes #547, Add ECL license header to Word plugin --- chrome/content/zotero/xpcom/cite.js | 2 ++ chrome/content/zotero/xpcom/integration.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/cite.js b/chrome/content/zotero/xpcom/cite.js index 54983cd18..3b980cace 100644 --- a/chrome/content/zotero/xpcom/cite.js +++ b/chrome/content/zotero/xpcom/cite.js @@ -84,6 +84,7 @@ Zotero.CSL = function(csl) { // load class defaults this.class = this._csl["@class"].toString(); + this.hasBibliography = true; Zotero.debug("CSL: style class is "+this.class); this._defaults = new Object(); @@ -103,6 +104,7 @@ Zotero.CSL = function(csl) { if(!this._bib) { Zotero.debug("CSL: using citation element for bibliography"); this._bib = this._cit; + this.hasBibliography = false; } } diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 610dfa354..e562d263e 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -530,7 +530,7 @@ Zotero.Integration.SOAP = new function() { 'chrome,modal'+(Zotero.isMac ? '' : ',popup'), io); session.setStyle(io.style); - return [sessionID, io.style, session.style.class]; + return [sessionID, io.style, session.style.class, session.style.hasBibliography ? "1" : "0"]; } }