Koha RESTful api [英] Koha RESTful api

查看:45
本文介绍了Koha RESTful api的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在互联网上寻找有关 Koha ILS restful api 的信息,但我没有找到任何具体的信息.有这个链接谈论它的 HTTP API:http://wiki.koha-community.org/wiki/Koha_/svc/_HTTP_API 但没有示例,我对所需的 MARCXML 格式很困惑.

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.

我想做的是使用此 API 将书目记录创建到远程 Koha ILS 系统中.如果我理解正确,使用这些服务我可以创建记录(可能使用 JSON-to-MARC 转换工具),但我还能以 BASE64 格式上传每条记录的 pdf 文件吗?尽管我不太确定,但使用此 API 似乎无法实现.

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.

推荐答案

Koha 中可用的 HTTP API 是一个完善的协议,称为 SRU,用于搜索图书馆目录.此协议仅用于搜索,不用于更新记录.

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.

其次,即使 SRU 2.0 提供了以 JSON 格式传输记录的选项,大多数实现尚不支持.

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

回到您的用例,Koha 无法存储 PDF 文档.它是物理馆藏图书馆中的流程自动化工具,仅处理元数据记录.为了存储数字文档,您应该寻找文档管理解决方案,例如 DSpace,或更小更简单的 欧米卡.DSpace 提供了自己的 REST API 用于搜索并支持 SWORD 协议,用于上传文档.

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.

这篇关于Koha RESTful api的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆