Fix importing Citavi annotations in some cases
This commit is contained in:
parent
0695154661
commit
cff02b04a0
1 changed files with 4 additions and 1 deletions
|
@ -9,6 +9,9 @@ const parseCitavi5Quads = (quadsRaw) => {
|
|||
const ImportCitaviAnnotatons = async (translation) => {
|
||||
const IDMap = translation._itemSaver._IDMap;
|
||||
const ZU = translation._sandboxZotero.Utilities;
|
||||
|
||||
// stream might be closed by now, re-init to make sure getXML() works
|
||||
translation._io.init('xml/dom');
|
||||
const doc = translation._sandboxZotero.getXML();
|
||||
const isCitavi5 = ZU.xpathText(doc, '//CitaviExchangeData/@Version').startsWith('5');
|
||||
var annotationNodes = ZU.xpath(doc, '//Annotations/Annotation');
|
||||
|
|
Loading…
Reference in a new issue