Skip to content

Commit

Permalink
Preload potential abbrevs data in integration.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Feb 18, 2018
1 parent b0ab85f commit a6fc0bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chrome/content/zotero/xpcom/integration.js
Expand Up @@ -1599,6 +1599,10 @@ Zotero.Integration.Session.prototype._updateCitations = async function () {
} else {
citationsPost = citations.slice(citationToFieldIdxMapping[index]+1);
}

if (Zotero.CiteProc.CSL.preloadAbbreviations) {
await Zotero.CiteProc.CSL.preloadAbbreviations(this.style, citation);
}

Zotero.debug("Integration: style.processCitationCluster("+citation.toSource()+", "+citationsPre.toSource()+", "+citationsPost.toSource());
let [info, newCitations] = this.style.processCitationCluster(citation, citationsPre, citationsPost);
Expand Down

0 comments on commit a6fc0bb

Please sign in to comment.