From 37e1245aafb8d4246b173e713123cca44ec0cb72 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 2 Jul 2010 06:09:46 +0000 Subject: [PATCH] Closes #1691, Update Zotero.QuickCopy.getContentFromItems() for new citation API Thanks to Frank for the patch --- chrome/content/zotero/xpcom/quickCopy.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/quickCopy.js b/chrome/content/zotero/xpcom/quickCopy.js index 696b70acc6..2bb1262acb 100644 --- a/chrome/content/zotero/xpcom/quickCopy.js +++ b/chrome/content/zotero/xpcom/quickCopy.js @@ -397,9 +397,17 @@ Zotero.QuickCopy = new function() { if (modified) { var citation = {citationItems:[{id:item.id} for each(item in items)], properties:{}}; this.session.style.setOutputFormat("html"); - var html = csl.appendCitationCluster(citation, true)[0][1]; + var html = csl.processCitationCluster( + citation, + [], [], + CSL.ASSUME_ALL_ITEMS_REGISTERED + )[1][0][1]; this.session.style.setOutputFormat("text"); - var text = csl.appendCitationCluster(citation, true)[0][1]; + var text = csl.processCitationCluster( + citation, + [], [], + CSL.ASSUME_ALL_ITEMS_REGISTERED + )[1][0][1]; } else { var html = Zotero.Cite.makeFormattedBibliography(csl, "html"); var text = Zotero.Cite.makeFormattedBibliography(csl, "text");