<<

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

Returns true if hold is a cancelable hold

Holds may be canceled if they not found, or are found and waiting. A hold found but in transit cannot be canceled.

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>

<<
https://perldoc.koha-community.org/v17.11.05/Koha/Hold.html
perldoc.koha-community.org
crawl=CC-MAIN-2022-21
7329
application/http; msgtype=response
sha1:GVMFCOWP6ZRX4FNWIY5SKOW5FQLEUIKT
<urn:uuid:9ccf2877-6d51-4eec-9701-8f353faf18bb>
2022-05-21T21:55:01Z
67.220.127.145
text/html
sha1:XBUEFHAERBZAUIKNE4N62KWIBXWLBBCD
<urn:uuid:c712a06a-262b-479a-8f53-b1832a0b039e>
https://perldoc.koha-community.org/v17.11.05/Koha/Hold.html
response
<urn:uuid:ab6fb1a7-1e67-4d04-8074-806542a3ee5e>
isPartOf: CC-MAIN-2022-21
publisher: Common Crawl
description: Wide crawl of the web for May 2022
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-200
software: Apache Nutch 1.18 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.3-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/