commit b1e9a83f4e1d4692d39cb4308738f7c59c743f5e
parent 9160cff264fa90b577f8ea76d1a061f367efcd7c
Author: Dan Stillman <dstillman@zotero.org>
Date: Sun, 26 Jul 2009 10:32:01 +0000
Fix RDF import error on empty notes (pushed to 2.0 clients)
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/translators/RDF.js b/translators/RDF.js
@@ -8,7 +8,7 @@
"maxVersion":"",
"priority":100,
"inRepository":true,
- "lastUpdated":"2009-05-27 05:25:00"
+ "lastUpdated":"2009-07-26 10:20:00"
}
Zotero.configure("dataMode", "rdf");
@@ -500,7 +500,8 @@ function importItem(newItem, node, type) {
if(newItem.itemType == "note") {
// add note for standalone
- newItem.note = getFirstResults(node, [rdf+"value", n.dc+"description"], true);
+ var note = getFirstResults(node, [rdf+"value", n.dc+"description"], true);
+ newItem.note = note ? note : "";
}
/** TAGS **/