https://github.com/digibib/api4marc
API for looking up MARC records from external bases Z3950/SRU
https://github.com/digibib/api4marc
Last synced: about 1 year ago
JSON representation
API for looking up MARC records from external bases Z3950/SRU
- Host: GitHub
- URL: https://github.com/digibib/api4marc
- Owner: digibib
- License: mit
- Created: 2014-05-15T09:04:34.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2016-11-28T08:43:24.000Z (over 9 years ago)
- Last Synced: 2024-04-14T18:14:01.883Z (over 2 years ago)
- Language: Perl
- Size: 11.7 KB
- Stars: 1
- Watchers: 13
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# api4marc
simple API to allow external base lookups for MARC records.
Uses perl's ZOOM module to handle the insanely ugly Z39.50 protocol
## INSTALL (ubuntu)
sudo apt-get install libmarc-xml-perl libnet-z3950-zoom-perl libmojolicious-perl libyaml-perl libswitch-perl
copy config.yaml.example to config.yaml and add bases, apikey and appsecret
## USE
### Test route
perl api4marc.pl GET /
### Start as daemon
perl api4marc.pl daemon [-l host:port]
## API
Parameters:
* apikey (secret)
* base (loc|...)
* format (normarc|usmarc)
* maxRecords: 10
* query params (in prioritized order)
* isbn
* ean
* title
* author
Response:
* marcxml collection
## LOGGING
Logs by default to ./log/[env].log