commit c64f56d31be6ea7b2a5c56cb554854df487eb723
parent 6b9681943f78b5840da1633af9601e92b5efb134
Author: Avram Lyon <ajlyon@gmail.com>
Date: Sun, 3 Apr 2011 19:42:10 +0000
Trans: Changes to author case in Readability
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git 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"));
}
}