From 77ecfce0fe01349e7a9e6da6c7bd764f082fd9e7 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 6 Jul 2010 17:42:41 +0000 Subject: [PATCH] Addresses #1691, Update Zotero.QuickCopy.getContentFromItems() for new citation API Frank's latest patch, but drag-and-drop is still broken for me on OS X. Need to see if this is just my working copy. --- chrome/content/zotero/xpcom/quickCopy.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/chrome/content/zotero/xpcom/quickCopy.js b/chrome/content/zotero/xpcom/quickCopy.js index 2bb1262ac..cacede824 100644 --- a/chrome/content/zotero/xpcom/quickCopy.js +++ b/chrome/content/zotero/xpcom/quickCopy.js @@ -396,18 +396,8 @@ Zotero.QuickCopy = new function() { // Copy citations if shift key pressed if (modified) { var citation = {citationItems:[{id:item.id} for each(item in items)], properties:{}}; - this.session.style.setOutputFormat("html"); - var html = csl.processCitationCluster( - citation, - [], [], - CSL.ASSUME_ALL_ITEMS_REGISTERED - )[1][0][1]; - this.session.style.setOutputFormat("text"); - var text = csl.processCitationCluster( - citation, - [], [], - CSL.ASSUME_ALL_ITEMS_REGISTERED - )[1][0][1]; + 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");