From 911160524c2a74021dca8cdb909a392f1bdde35a Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 12 Nov 2009 07:21:30 +0000 Subject: [PATCH] Fix constraint order importing RDF files (from Zotero 1.0?) with child items in collections --- translators/RDF.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/translators/RDF.js b/translators/RDF.js index b0acde348..93cb24ecb 100644 --- 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"}); }