Fix citeproc engine variable name in rtfScan.jsx
This commit is contained in:
parent
fa95de396d
commit
59969d1a7b
1 changed files with 3 additions and 3 deletions
|
@ -465,7 +465,7 @@ var Zotero_RTFScan = new function() {
|
||||||
// load style and create ItemSet with all items
|
// load style and create ItemSet with all items
|
||||||
var zStyle = Zotero.Styles.get(document.getElementById("style-listbox").value)
|
var zStyle = Zotero.Styles.get(document.getElementById("style-listbox").value)
|
||||||
var locale = document.getElementById("locale-menu").value;
|
var locale = document.getElementById("locale-menu").value;
|
||||||
var style = zStyle.getCiteProc(locale, 'rtf');
|
var cslEngine = zStyle.getCiteProc(locale, 'rtf');
|
||||||
var isNote = zStyle.class == "note";
|
var isNote = zStyle.class == "note";
|
||||||
|
|
||||||
// create citations
|
// create citations
|
||||||
|
@ -499,7 +499,7 @@ var Zotero_RTFScan = new function() {
|
||||||
Zotero.debug(itemIDs);
|
Zotero.debug(itemIDs);
|
||||||
|
|
||||||
// prepare the list of rendered citations
|
// prepare the list of rendered citations
|
||||||
var citationResults = style.rebuildProcessorState(cslCitations, "rtf");
|
var citationResults = cslEngine.rebuildProcessorState(cslCitations, "rtf");
|
||||||
|
|
||||||
// format citations
|
// format citations
|
||||||
var contentArray = [];
|
var contentArray = [];
|
||||||
|
@ -536,7 +536,7 @@ var Zotero_RTFScan = new function() {
|
||||||
|
|
||||||
// add bibliography
|
// add bibliography
|
||||||
if(zStyle.hasBibliography) {
|
if(zStyle.hasBibliography) {
|
||||||
var bibliography = Zotero.Cite.makeFormattedBibliography(style, "rtf");
|
var bibliography = Zotero.Cite.makeFormattedBibliography(cslEngine, "rtf");
|
||||||
bibliography = bibliography.substring(5, bibliography.length-1);
|
bibliography = bibliography.substring(5, bibliography.length-1);
|
||||||
// fix line breaks
|
// fix line breaks
|
||||||
var linebreak = "\r\n";
|
var linebreak = "\r\n";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue