Merge pull request #870 from Juris-M/z4.0-clipboard-copy-fix

Prevent duplicate items when copying citations to clipboard
This commit is contained in:
Dan Stillman 2015-11-08 01:05:01 -05:00
commit 0dbf5b20f3
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)
if(!asHTML) {
cslEngine = style.getCiteProc(locale);
var bibliography = Zotero.Cite.makeFormattedBibliographyOrCitationList(cslEngine, items, "text", asCitations);
}
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 cslEngine = style.getCiteProc(locale);
var html = Zotero.Cite.makeFormattedBibliographyOrCitationList(cslEngine, items, "html");
cslEngine = style.getCiteProc(locale);
var text = Zotero.Cite.makeFormattedBibliographyOrCitationList(cslEngine, items, "text");
}