Troubleshooting unAPI and MARC
I'm working on implementing unAPI for a project and have pre-existing marc records for most of the content. How can I get Zotero to recognize the content?
I can tell that it's hitting my unAPI view and it's requesting content for the application/marc content, but then nothing happens. I never get a prompt to select which records I want to import. What does the marc record need to look like? Are there any examples I can refer to, or can I manually try importing to see what's going wrong?
I'm getting the marc records as marcxml, but I'm using pymarc so I should be able to serialize the record in whatever form is needed.
I can tell that it's hitting my unAPI view and it's requesting content for the application/marc content, but then nothing happens. I never get a prompt to select which records I want to import. What does the marc record need to look like? Are there any examples I can refer to, or can I manually try importing to see what's going wrong?
I'm getting the marc records as marcxml, but I'm using pymarc so I should be able to serialize the record in whatever form is needed.
If anyone has advice on troubleshooting this kind of thing in the future, I'm still interested to hear it.
MARC translator https://github.com/zotero/translators/blob/master/MARC.js
contain test data. unAPI expects the old-school, machine-readable MARC format, though it would be trivially easy (I think about 3 lines of code) to add marcxml support to our unAPI import and I'd be very happy to take pull requests. Should be fairly self-explanatory:
https://github.com/zotero/translators/blob/master/unAPI.js