Koha RESTful api

2.2k views Asked by At

I've been looking around the internet for information on Koha ILS restful api but I haven't found anything concrete. There is this link which talks about its HTTP API: http://wiki.koha-community.org/wiki/Koha_/svc/_HTTP_API but there are no examples and I'm quite confused with the MARCXML format required.

What I want to do is use this API to create biblio records into a remote Koha ILS system. If I understand correctly, using these services I can create records (probably using a JSON-to-MARC convert tool) but will I be able to also upload pdf files of each record in BASE64 format? It doesn't look like this is possible using this API although I'm not really sure.

2

There are 2 answers

1
Saiful On BEST ANSWER

The HTTP API available in Koha is a well-established protocol, called SRU, for searching library catalogs. This is protocol is meant only for searching, not for updating records.

Secondly, even though SRU 2.0 provides option for transmission of records in JSON format, most implementations do not support it yet.

Coming back to your use case, Koha cannot store PDF documents. It is a process automation tool in a library for physical collections, which deals only with metadata records. For storing digital documents you should look for document management solutions, such as DSpace, or smaller and easier Omeka. DSpace provides its own REST API for searching as well as supports SWORD protocol for uploading documents.

0
Joel Coehoorn On

I'm quite confused with the MARCXML format required.

MARC is format specific to libraries designed to standardize the way different libraries (and library software platforms) encode information and metadata for items like books, so that records can be interoperable. It's especially important for things like interlibrary loans, multi-library searching, importing information from new publishers for new acquisistions, etc.

If you've ever worked the HL7 records in the healthcare industry, or EDI documents elsewhere, it's kind of like that.

There are several "flavors" of marc. Marc21 and Unimarc (marc with unicode) are two common examples. Marcxml is a flavor that is a (somewhat) more modern take on marc so standard xml parsers can more easily handle and ingest or export valid records.