reopens #1772, RDF translator loses creators linked via a symbol [patch]

revert changes to RDF.js, since they break import of >1 creator
This commit is contained in:
Simon Kornblith 2011-02-02 06:08:31 +00:00
parent a9132a2be2
commit ab07d02de0

View file

@ -68,17 +68,10 @@ function handleCreators(newItem, creators, creatorType) {
return; return;
} }
if(typeof(creators[0]) != "string") { if(typeof(creators[0]) != "string") { // see if creators are in a container
// see if creators are in a container, but if they don't seem to be,
// then we don't attempt to extract them.
try { try {
var newCreators = Zotero.RDF.getContainerElements(creators[0]); var creators = Zotero.RDF.getContainerElements(creators[0]);
} catch (e) { } catch(e) {}
Zotero.debug("Exception caught in Zotero.RDF.getContainerElements");
}
if (creators.length === newCreators.length) {
creators = newCreators;
}
} }
if(typeof(creators[0]) == "string") { // support creators encoded as strings if(typeof(creators[0]) == "string") { // support creators encoded as strings
@ -636,4 +629,4 @@ function doImport() {
newCollection.complete(); newCollection.complete();
} }
} }
} }