<<

NAME

Koha::Hold - Koha Hold object class

API

Class Methods

age

returns the number of days since a hold was placed, optionally using the calendar

my $age = $hold->age( $use_calendar );

suspend_hold

my $hold = $hold->suspend_hold( $suspend_until_dt );

resume

my $hold = $hold->resume();

delete

$hold->delete();

set_waiting

is_found

Returns true if hold is a waiting or in transit

is_waiting

Returns true if hold is a waiting hold

is_in_transit

Returns true if hold is a in_transit hold

is_cancelable_from_opac

Returns true if hold is a cancelable hold

Holds may be only canceled if they are not found.

This is used from the OPAC.

is_at_destination

Returns true if hold is waiting and the hold's pickup branch matches the hold item's holding branch

biblio

Returns the related Koha::Biblio object for this hold

item

Returns the related Koha::Item object for this Hold

branch

Returns the related Koha::Library object for this Hold

borrower

Returns the related Koha::Patron object for this Hold

is_suspended

my $bool = $hold->is_suspended();

cancel

my $cancel_hold = $hold->cancel();

Cancel a hold: - The hold will be moved to the old_reserves table with a priority=0 - The priority of other holds will be updated - The patron will be charge (see ExpireReservesMaxPickUpDelayCharge) if the charge_cancel_fee parameter is set - a CANCEL HOLDS log will be done if the pref HoldsLog is on

_move_to_old

my $is_moved = $hold->_move_to_old;

Move a hold to the old_reserve table following the same pattern as Koha::Patron->move_to_deleted

type

AUTHORS

Kyle M Hall <kyle@bywatersolutions.com> Jonathan Druart <jonathan.druart@bugs.koha-community.org> Martin Renvoize <martin.renvoize@ptfs-europe.com>

<<