<<

NAME

Koha::REST::V1::Checkins

API

Methods

get_availability

add

hold_confirmation

POST /checkins/{checkin_id}/hold_confirmation

hold_cancellation

POST /checkins/{checkin_id}/hold_cancellation

transfer_confirmation

POST /checkins/{checkin_id}/transfer_confirmation

transfer_cancellation

POST /checkins/{checkin_id}/transfer_cancellation

recall_confirmation

POST /checkins/{checkin_id}/recall_confirmation

Internal methods

_get_actionable_checkin

    my $checkin = $c->_get_actionable_checkin($action) or return;

Returns the checkin from the checkin_id path parameter if the follow-up $action can be performed on it. Otherwise it renders the error response and returns undef:

_render_checkin_response

Renders the standard checkin response, with the URI of the action performed as the Location header. The query string is left out, as it carries the action token.

_render_transfer_finished

Renders the 409 response for a transfer that has already arrived or has been cancelled.

_validate_library

    return unless $c->_validate_library( { library_id => $library_id, path => $path } );

Renders an error and returns false if the library does not exist (400), or if the user cannot act on it (403). The same rule applies to the x-koha-library header: when IndependentBranches is enabled, only superlibrarians can act on a library other than their own.

<<