Prevent duplicate items when copying citations to clipboard

This commit is contained in:
fbennett 2015-11-01 11:00:37 +09:00
parent 2b8a5ba0b7
commit 4a475ff3aa
2 changed files with 2 additions and 0 deletions

View file

@ -439,6 +439,7 @@ var Zotero_File_Interface = new function() {
// add text (or HTML source) // add text (or HTML source)
if(!asHTML) { if(!asHTML) {
cslEngine = style.getCiteProc(locale);
var bibliography = Zotero.Cite.makeFormattedBibliographyOrCitationList(cslEngine, items, "text", asCitations); var bibliography = Zotero.Cite.makeFormattedBibliographyOrCitationList(cslEngine, items, "text", asCitations);
} }
var str = Components.classes["@mozilla.org/supports-string;1"]. var str = Components.classes["@mozilla.org/supports-string;1"].

View file

@ -375,6 +375,7 @@ Zotero.QuickCopy = new function() {
var style = Zotero.Styles.get(format.id); var style = Zotero.Styles.get(format.id);
var cslEngine = style.getCiteProc(locale); var cslEngine = style.getCiteProc(locale);
var html = Zotero.Cite.makeFormattedBibliographyOrCitationList(cslEngine, items, "html"); var html = Zotero.Cite.makeFormattedBibliographyOrCitationList(cslEngine, items, "html");
cslEngine = style.getCiteProc(locale);
var text = Zotero.Cite.makeFormattedBibliographyOrCitationList(cslEngine, items, "text"); var text = Zotero.Cite.makeFormattedBibliographyOrCitationList(cslEngine, items, "text");
} }