Error Pica Translator (SWB)

Normally, the Pica translator works fine for the union library catalogue SWB, but I have problems with exactly this item:

http://swb.bsz-bw.de/DB=2.1/PPNSET?PPN=271688513&INDEXSET=1

There is an error, if I try to save it (Error Report ID 154841005). I guess that the error occurs very early in the translator (maybe some problems with COinS?).
  • Can anyone reproduce the error on the particular page?
  • https://github.com/zotero/zotero/pull/536

    But I'm a little puzzled why this causes the translator to fail. The PICA translator has code in place to prevent exactly this scenario
    https://github.com/zotero/translators/blob/master/Library%20Catalog%20%28PICA%29.js#L70
    and I don't know why it doesn't kick in
  • I didn't trigger the error (was testing it post-patch and was too lazy to revert changes), but my guess is that the error was getting thrown from the parseContextObject call from outside the try-catch. The first round inside the try-catch was placing an institutional author with no first name into creators and the second pass was tripping on it. I removed the second call, since it's unnecessary.
Sign In or Register to comment.