From f74440902bea90bfa7acf550012607bcd28066b9 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 14 Mar 2011 21:01:25 +0000 Subject: [PATCH] Switch to Zotero.Cite.makeFormattedBibliographyOrCitationList() from Zotero.Cite.makeFormattedBibliography() for Quick Copy bib copy, because that's what clipboard copying uses. Fixes 'false' from Bluebook style with makeFormattedBibliography() --- chrome/content/zotero/xpcom/quickCopy.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/xpcom/quickCopy.js b/chrome/content/zotero/xpcom/quickCopy.js index dce2eb2f5..5d775fc54 100644 --- a/chrome/content/zotero/xpcom/quickCopy.js +++ b/chrome/content/zotero/xpcom/quickCopy.js @@ -385,17 +385,17 @@ Zotero.QuickCopy = new function() { return content; } - var csl = Zotero.Styles.get(format).csl; - csl.updateItems([item.id for each(item in items)]); - // Copy citations if shift key pressed if (modified) { + var csl = Zotero.Styles.get(format).csl; + csl.updateItems([item.id for each(item in items)]); var citation = {citationItems:[{id:item.id} for each(item in items)], properties:{}}; var html = csl.previewCitationCluster(citation, [], [], "html"); var text = csl.previewCitationCluster(citation, [], [], "text"); } else { - var html = Zotero.Cite.makeFormattedBibliography(csl, "html"); - var text = Zotero.Cite.makeFormattedBibliography(csl, "text"); + var style = Zotero.Styles.get(format); + var html = Zotero.Cite.makeFormattedBibliographyOrCitationList(style, items, "html"); + var text = Zotero.Cite.makeFormattedBibliographyOrCitationList(style, items, "text"); } return {text:(contentType == "html" ? html : text), html:html};