diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js index 49d9913bfb..e84a87d825 100644 --- a/chrome/content/zotero/tools/testTranslators/translatorTester.js +++ b/chrome/content/zotero/tools/testTranslators/translatorTester.js @@ -100,6 +100,11 @@ Zotero_TranslatorTester._sanitizeItem = function(item, forSave) { } } + // try to convert to JSON and back to get rid of undesirable undeletable elements; this may fail + try { + item = JSON.parse(JSON.stringify(item)); + } catch(e) {}; + // remove fields to be ignored for(var j=0, n=Zotero_TranslatorTester_IGNORE_FIELDS.length; j