https://github.com/Vesihiisi/Biblioteksdata is probably quite messy, which will become obvious when running T227558
IIRC the way it was developed was:
- create a single-item mode, which got the data directly from the API. Used LIBRIS URI as identifier
- after we got a database dump, the code had to be rewritten slightly to use it. There were some very minor differences in how the Json was structured
Look into this, and restructure it accordingly, so that both modes are functional
- Single item -- using Libris URI, from API
- Batch -- using list of Libris Edition ID's, from database dump