Koha::Hold - Koha Hold object class
returns the number of days since a hold was placed, optionally using the calendar
my $age = $hold->age( $use_calendar );
my $hold = $hold->suspend_hold( $suspend_until_dt );
my $hold = $hold->resume();
$hold->delete();
$hold->set_processing;
Mark the hold as in processing.
Returns true if hold is waiting, in transit or in processing
Returns true if hold is a waiting hold
Returns true if hold is a in_transit hold
Returns true if hold is a in_processing hold
Returns true if hold is a cancelable hold
Holds may be only canceled if they are not found.
This is used from the OPAC.
Returns true if hold is waiting and the hold's pickup branch matches the hold item's holding branch
Returns the related Koha::Biblio object for this hold
Returns the related Koha::Patron object for this hold
Returns the related Koha::Item object for this Hold
Returns the related Koha::Library object for this Hold
Returns the related Koha::Desk object for this Hold
Returns the related Koha::Patron object for this Hold
my $bool = $hold->is_suspended();
my $cancel_hold = $hold->cancel( { [ charge_cancel_fee => 1||0, ] [ cancellation_reason => $cancellation_reason, ] } );
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 - The canceled hold will have the cancellation reason added to old_reserves.cancellation_reason if one is passed in - a CANCEL HOLDS log will be done if the pref HoldsLog is on
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
This method returns the mapping for representing a Koha::Hold object on the API.
Kyle M Hall <kyle@bywatersolutions.com> Jonathan Druart <jonathan.druart@bugs.koha-community.org> Martin Renvoize <martin.renvoize@ptfs-europe.com>