<<

NAME

Koha::Illrequest::Availability - Koha ILL Availability Searching

SYNOPSIS

Object-oriented class that provides availability searching via availability plugins

DESCRIPTION

This class provides the ability to identify and fetch API services that can be used to search for item availability

API

Class Methods

new

    my $availability = Koha::Illrequest::Logger->new($metadata);

Create a new Koha::Illrequest::Availability object. We also store the metadata to be used for searching

get_services

    my $services = Koha::Illrequest::Availability->get_services($params);

Given our metadata, iterate plugins with the right method and check if they can service our request and, if so, return an arrayref of services. Optionally accept a hashref specifying additional filter parameters

prep_metadata

    my $prepared = Koha::Illrequest::Availability->prep_metadata($metadata);

Given our metadata, return a string representing that metadata that can be passed in a URL (encoded in JSON then Base64 encoded)

AUTHOR

Andrew Isherwood <andrew.isherwood@ptfs-europe.com>

<<