From c64f56d31be6ea7b2a5c56cb554854df487eb723 Mon Sep 17 00:00:00 2001 From: Avram Lyon Date: Sun, 3 Apr 2011 19:42:10 +0000 Subject: [PATCH] Trans: Changes to author case in Readability --- translators/Readability.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/translators/Readability.js b/translators/Readability.js index 35bfa05fb6..76e4beed7d 100644 --- a/translators/Readability.js +++ b/translators/Readability.js @@ -8,7 +8,7 @@ "priority": 100, "inRepository": "0", "translatorType": 4, - "lastUpdated": "2011-03-26 17:16:55" + "lastUpdated": "2011-04-03 17:16:55" } /* @@ -64,6 +64,9 @@ function doWeb(doc, url){ if (author) { var auts = author.textContent.split(" and "); for (var i in auts) { + if(auts[i].toUpperCase() == auts[i]) { + auts[i] = Zotero.Utilities.capitalizeTitle(auts[i].toLowerCase(), true) + } item.creators.push(Zotero.Utilities.cleanAuthor(auts[i],"author")); } }