simple API to allow external base lookups for MARC records. Uses perl's ZOOM module to handle the insanely ugly Z39.50 protocol
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
perl api4marc.pl GET /
perl api4marc.pl daemon [-l host:port]
Parameters:
- apikey (secret)
- base (loc|...)
- format (normarc|usmarc)
- maxRecords: 10
- query params (in prioritized order)
- isbn
- ean
- title
- author
Response:
- marcxml collection
Logs by default to ./log/[env].log