www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit ab07d02de0dd3b59707d90016fce9a2b86b2053d
parent a9132a2be25ad1978398f31f61b44b7547e3b699
Author: Simon Kornblith <simon@simonster.com>
Date:   Wed,  2 Feb 2011 06:08:31 +0000

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

revert changes to RDF.js, since they break import of >1 creator


Diffstat:
Mtranslators/RDF.js | 16+++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)

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