www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 4a475ff3aa9b73d010a532ecb41cb5fa7793c0e9
parent 2b8a5ba0b71ffd5b1ea56ff93ef4fbdbb7a9e210
Author: fbennett <biercenator@gmail.com>
Date:   Sun,  1 Nov 2015 11:00:37 +0900

Prevent duplicate items when copying citations to clipboard

Diffstat:
Mchrome/content/zotero/fileInterface.js | 1+
Mchrome/content/zotero/xpcom/quickCopy.js | 1+
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"); }