NAME
Catmandu::Store::Adlib -Retrieve items from a Adlib instance
SYNOPSIS
# From the command line
catmandu export Adlib to YAML --id 1234 --endpoint http://test2.adlibsoft.com --username foo --password bar --database collect.inf
# From a Catmandu Fix
lookup_in_store(
object_priref,
Adlib,
endpoint: http://test2.adlibsoft.com,
username: foo,
password: bar,
database: collect.inf
)
# From Perl code
use Catmandu;
my $store = Catmandu->store('Adlib',
username => 'foo',
password => 'bar',
endpoint => 'http://test2.adlibsoft.com',
database => 'collect.inf'
)->bag;
my $item = $store->get('1234');
DESCRIPTION
Catmandu::Store::Adlib allows the use of Adlib as a store in Catmandu.
CONFIGURATION
endpoint
url
of the Adlib API. Do not include the api/wwwopac
part; the query builder will append it automatically.
database
Name of the database (as configured in adlibweb.xml) you want to query.
username
Name of a user that can be used to query the API. Only Basic Authentication is currently supported.
password
Password for the user.
METHODS
new(%configuration)
Create a new Catmandu::Store::CA
get($id)
Retrieve a record identified by $id
. Note that $id
is the priref, not the object_number.
add($data)
Not supported.
update($id, $data)
Not supported.
delete($id)
Not supported.
each()
List all items in the instance and iterate over them one at the time. Returns a single object.
AUTHOR
Pieter De Praetere <pieter@packed.be>
COPYRIGHT
Copyright 2017- PACKED vzw, VKC vzw
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.