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:
parent
7f12d2c095
commit
aed441e152
1 changed files with 5 additions and 2 deletions
|
@ -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]) {
|
||||
|
|
Loading…
Reference in a new issue