From 4a8831b929f42d2bddb9b76706c6cc6e34ea57c3 Mon Sep 17 00:00:00 2001 From: Frank Bennett Date: Thu, 21 Jun 2012 19:36:52 +0900 Subject: [PATCH] Refresh citeproc-js version 1.0.349 --- chrome/content/zotero/xpcom/citeproc.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js index 0abbf84d0..18af89421 100644 --- a/chrome/content/zotero/xpcom/citeproc.js +++ b/chrome/content/zotero/xpcom/citeproc.js @@ -6719,9 +6719,10 @@ CSL.NameOutput.prototype._isRomanesque = function (name) { if (!ret && name.given && name.given.match(CSL.STARTSWITH_ROMANESQUE_REGEXP)) { ret = 1; } - if (ret == 2 && name.multi && name.multi.main) { - var top_locale = name.multi.main.slice(0, 2); - if (!top_locale && this.Item.language) { + if (ret == 2) { + if (name.multi && name.multi.main) { + var top_locale = name.multi.main.slice(0, 2); + } else if (this.Item.language) { top_locale = this.Item.language.slice(0, 2); } if (["ja", "zh"].indexOf(top_locale) > -1) {