Fix noteType type issues when talking to js-ctypes libs
Reported https://forums.zotero.org/discussion/65496/zotero-5-185-bug-cant-insert-field
This commit is contained in:
parent
32b1769f2f
commit
a76493f60d
|
@ -3141,12 +3141,17 @@ Zotero.Integration.DocumentData.prototype.unserializeXML = function(xmlData) {
|
||||||
|
|
||||||
this.prefs[name] = value;
|
this.prefs[name] = value;
|
||||||
}
|
}
|
||||||
if(this.prefs["storeReferences"] === undefined) this.prefs["storeReferences"] = false;
|
try {
|
||||||
if(this.prefs["automaticJournalAbbreviations"] === undefined) this.prefs["automaticJournalAbbreviations"] = false;
|
this.prefs.noteType = parseInt(noteType);
|
||||||
|
} catch (e) {
|
||||||
|
this.prefs.noteType = 0;
|
||||||
|
}
|
||||||
|
if (this.prefs["storeReferences"] === undefined) this.prefs["storeReferences"] = false;
|
||||||
|
if (this.prefs["automaticJournalAbbreviations"] === undefined) this.prefs["automaticJournalAbbreviations"] = false;
|
||||||
this.zoteroVersion = doc.documentElement.getAttribute("zotero-version");
|
this.zoteroVersion = doc.documentElement.getAttribute("zotero-version");
|
||||||
if(!this.zoteroVersion) this.zoteroVersion = "2.0";
|
if (!this.zoteroVersion) this.zoteroVersion = "2.0";
|
||||||
this.dataVersion = doc.documentElement.getAttribute("data-version");
|
this.dataVersion = doc.documentElement.getAttribute("data-version");
|
||||||
if(!this.dataVersion) this.dataVersion = 2;
|
if (!this.dataVersion) this.dataVersion = 2;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user