Only in zotero-trunk/chrome/content: .svn
Only in zotero-trunk/chrome/content/zotero/bindings: .svn
diff -u -w -r zotero-trunk/chrome/content/zotero/fileInterface.js zotero-run/chrome/content/zotero/fileInterface.js
|
old
|
new
|
|
| 419 | 419 | getService(Components.interfaces.nsIClipboard); |
| 420 | 420 | |
| 421 | 421 | var style = Zotero.Styles.get(style).csl; |
| 422 | | style.updateItems([item.id for each(item in items)]); |
| 423 | 422 | var citation = {"citationItems":[{id:item.id} for each(item in items)], properties:{}}; |
| 424 | 423 | |
| 425 | 424 | // add HTML |
| 426 | | style.setOutputFormat("html"); |
| 427 | | var bibliography = style.appendCitationCluster(citation, true)[0][1]; |
| | 425 | var bibliography = style.previewCitationCluster(citation, [], [], "html"); |
| 428 | 426 | var str = Components.classes["@mozilla.org/supports-string;1"]. |
| 429 | 427 | createInstance(Components.interfaces.nsISupportsString); |
| 430 | 428 | str.data = bibliography; |
| … |
… |
|
| 433 | 431 | |
| 434 | 432 | // add text (or HTML source) |
| 435 | 433 | if(!asHTML) { |
| 436 | | style.setOutputFormat("text"); |
| 437 | | var bibliography = style.appendCitationCluster(citation, true)[0][1]; |
| | 434 | var bibliography = style.previewCitationCluster(citation, [], [], "text"); |
| 438 | 435 | } |
| 439 | 436 | var str = Components.classes["@mozilla.org/supports-string;1"]. |
| 440 | 437 | createInstance(Components.interfaces.nsISupportsString); |