Fixes #1727, PATCH: Trim whitespace from RIS TY field to correctly identify types

And pushed to clients. Changed String.trim() to Zotero.Utilities.trim(), since String.trim() isn't supported in Fx3.0
This commit is contained in:
Dan Stillman 2010-09-28 21:39:47 +00:00
parent 7f12d2c095
commit aed441e152

View file

@ -8,7 +8,7 @@
"maxVersion":"",
"priority":100,
"inRepository":true,
"lastUpdated":"2010-09-13 08:15:39"
"lastUpdated":"2010-09-28 21:40:00"
}
Zotero.configure("dataMode", "line");
@ -109,7 +109,10 @@ function processTag(item, tag, value) {
item[inputFieldMap[tag]] = value;
} else if(tag == "TY") {
// look for type
// trim the whitespace that some providers (e.g. ProQuest) include
value = Zotero.Utilities.trim(value);
// first check typeMap
for(var i in typeMap) {
if(value == typeMap[i]) {