<<

NAME

Koha::ILL::Backend::Standard - Koha ILL Backend: Standard

SYNOPSIS

Koha ILL implementation for the "Standard" backend .

DESCRIPTION

Overview

We will be providing the Abstract interface which requires we implement the following methods: - create -> initial placement of the request for an ILL order - confirm -> confirm placement of the ILL order (No-op in Standard) - cancel -> request an already 'confirm'ed ILL order be cancelled - status_graph -> return a hashref of additional statuses - name -> return the name of this backend - metadata -> return mapping of fields from requestattributes

On the Standard backend

The Standard backend is a simple backend that is supposed to act as a fallback. It provides the end user with some mandatory fields in a form as well as the option to enter additional fields with arbitrary names & values.

API

Class Methods

new

my $backend = Koha::ILL::Backend::Standard->new;

name

Return the name of this backend.

capabilities

    $capability = $backend->capabilities($name);

Return the sub implementing a capability selected by NAME, or 0 if that capability is not implemented.

metadata

Return a hashref containing canonical values from the key/value illrequestattributes store. We may want to ignore certain values that we do not consider to be metadata

status_graph

This backend provides no additional actions on top of the core_status_graph.

create

  my $response = $backend->create({ params => $params });

We just want to generate a form that allows the end-user to associate key value pairs in the database.

edititem

confirm

  my $response = $backend->confirm({ params => $params });

Confirm the placement of the previously "selected" request (by using the 'create' method).

In the Standard backend we only want to display a bit of text to let staff confirm that they have taken the steps they need to take to "confirm" the request.

cancel

  my $response = $backend->cancel({ params => $params });

We will attempt to cancel a request that was confirmed.

In the Standard backend this simply means displaying text to the librarian asking them to confirm they have taken all steps needed to cancel a confirmed request.

migrate

Migrate a request into or out of this backend.

illview

   View and manage an ILL request

_get_requested_partners

_set_requested_partners

_validate_borrower

_get_custom

_prepare_custom

_get_request_details

    my $request_details = _get_request_details($params, $other);

Return the illrequestattributes for a given request

_get_core_string

Return a comma delimited, quoted, string of core field keys

_get_core_fields

Return a hashref of core fields

add_request

Add an ILL request

_openurl_to_ill

Take a hashref of OpenURL parameters and return those same parameters but transformed to the ILL schema

create_api

Create a local submission from data supplied via an API call

_can_create_request

Given the parameters we've been passed, should we create the request

_standard_request2biblio

Given supplied metadata from a Standard request, create a basic biblio record and return its ID

_set_suppression

    _set_suppression($record);

Take a MARC::Record object and set it to be suppressed

AUTHORS

Alex Sassmannshausen <alex.sassmannshausen@ptfs-europe.com> Martin Renvoize <martin.renvoize@ptfs-europe.com> Andrew Isherwood <andrew.isherwood@ptfs-europe.com>

<<