From 6703679d9f32d0e66a15a907e71cdb7574a9a511 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Fri, 1 Apr 2011 21:07:51 +0000 Subject: [PATCH] use tags instead of attributes for configOptions and displayOptions --- chrome/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 index b4e580efbd..68598b5163 100644 --- 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;