commit 0dbf5b20f325140e572925c1ca8e0f6e4f545791
parent 5959bbd87e897ce79d7a75c818c86a81ac629ee5
Author: Dan Stillman <dstillman@zotero.org>
Date: Sun, 8 Nov 2015 01:05:01 -0500
Merge pull request #870 from Juris-M/z4.0-clipboard-copy-fix
Prevent duplicate items when copying citations to clipboard
Diffstat:
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/fileInterface.js b/chrome/content/zotero/fileInterface.js
@@ -439,6 +439,7 @@ var Zotero_File_Interface = new function() {
// add text (or HTML source)
if(!asHTML) {
+ cslEngine = style.getCiteProc(locale);
var bibliography = Zotero.Cite.makeFormattedBibliographyOrCitationList(cslEngine, items, "text", asCitations);
}
var str = Components.classes["@mozilla.org/supports-string;1"].
diff --git a/chrome/content/zotero/xpcom/quickCopy.js b/chrome/content/zotero/xpcom/quickCopy.js
@@ -375,6 +375,7 @@ Zotero.QuickCopy = new function() {
var style = Zotero.Styles.get(format.id);
var cslEngine = style.getCiteProc(locale);
var html = Zotero.Cite.makeFormattedBibliographyOrCitationList(cslEngine, items, "html");
+ cslEngine = style.getCiteProc(locale);
var text = Zotero.Cite.makeFormattedBibliographyOrCitationList(cslEngine, items, "text");
}