zotero / translation-server

A Node.js-based server to run Zotero translators
Other
122 stars 51 forks source link

More XPath weirdness #25

Closed dstillman closed 6 years ago

dstillman commented 6 years ago

If I do npm start and then ./translate_search 9781421402833, I get this:

(3)(+0000000): Translate: Could not find a result using Library of Congress ISBN -- trying next translator

…and a small amount of metadata.

If I run translate_search again without restarting the server, the LoC ISBN translator succeeds and I get much more data. Same for subsequent runs.

This line in MARCXML.js is returning different results for the different runs — a length of 0 and 1, respectively — despite the exact same XML going into the parseFromString() above.