diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 783afa414..490162027 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -590,7 +590,7 @@ Zotero.Item.prototype.setType = function(itemTypeID, loadIn) { if (loadIn) { this._itemDataLoaded = false; } - else { + else if(oldItemTypeID) { this._markFieldChange('itemType', Zotero.ItemTypes.getName(oldItemTypeID)); if (!this._changedPrimaryData) { this._changedPrimaryData = {}; diff --git a/chrome/content/zotero/xpcom/rdf/init.js b/chrome/content/zotero/xpcom/rdf/init.js index c92275d23..c3e063057 100644 --- a/chrome/content/zotero/xpcom/rdf/init.js +++ b/chrome/content/zotero/xpcom/rdf/init.js @@ -19,7 +19,8 @@ var $rdf = { }, log: { debug: Zotero.debug, - warn: Zotero.debug + warn: Zotero.debug, + error: Zotero.debug } }; diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index 38b9f5da2..dba25677d 100644 --- a/chrome/content/zotero/xpcom/translation/translate.js +++ b/chrome/content/zotero/xpcom/translation/translate.js @@ -2258,6 +2258,8 @@ Zotero.Translate.IO = { throw "DOMParser error: loading data into data store failed"; } + nodes.normalize(); + return nodes; },