commit 911160524c2a74021dca8cdb909a392f1bdde35a
parent 0b8d772ad8e83a2acff8ad58895ee1656b8bac64
Author: Dan Stillman <dstillman@zotero.org>
Date: Thu, 12 Nov 2009 07:21:30 +0000
Fix constraint order importing RDF files (from Zotero 1.0?) with child items in collections
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/translators/RDF.js b/translators/RDF.js
@@ -8,7 +8,7 @@
"maxVersion":"",
"priority":100,
"inRepository":true,
- "lastUpdated":"2009-07-26 10:20:00"
+ "lastUpdated":"2009-11-12 07:20:00"
}
Zotero.configure("dataMode", "rdf");
@@ -118,6 +118,11 @@ function processCollection(node, collection) {
// for collections, process recursively
collection.children.push(processCollection(child));
} else {
+ if(isPart(child)) {
+ Zotero.debug("Not adding child item <" + Zotero.RDF.getResourceURI(child) + "> to collection", 2);
+ continue;
+ }
+
// all other items are added by ID
collection.children.push({id:Zotero.RDF.getResourceURI(child), type:"item"});
}