www

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

commit 6703679d9f32d0e66a15a907e71cdb7574a9a511
parent e87c236c47c21adc5659992d1d1c85cbf915bbdd
Author: Simon Kornblith <simon@simonster.com>
Date:   Fri,  1 Apr 2011 21:07:51 +0000

use tags instead of attributes for configOptions and displayOptions


Diffstat:
Mchrome/content/zotero/xpcom/schema.js | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js @@ -1437,7 +1437,10 @@ Zotero.Schema = new function(){ for each(var attr in ["configOptions", "displayOptions"]) { try { - metadata[attr] = JSON.parse(xmlnode.getAttribute(attr)); + var tags = xmlnode.getElementsByTagName(attr); + if(tags.length && tags[0].firstChild) { + metadata[attr] = JSON.parse(tags[0].firstChild.nodeValue); + } } catch(e) { Zotero.logError("Invalid JSON for "+attr+" in new version of "+metadata.label+" ("+translatorID+") from repository"); return;