Koha::Recall - Koha Recall Object class
my $biblio = $recall->biblio;
Returns the related Koha::Biblio object for this recall.
my $item = $recall->item;
Returns the related Koha::Item object for this recall.
my $patron = $recall->patron;
Returns the related Koha::Patron object for this recall.
my $library = $recall->library;
Returns the related Koha::Library object for this recall.
my $checkout = $recall->checkout;
Returns the related Koha::Checkout object for this recall.
if ( $recall->requested ) [% IF recall.requested %]
Return true if recall status is requested.
if ( $recall->waiting ) [% IF recall.waiting %]
Return true if recall is awaiting pickup.
if ( $recall->overdue ) [% IF recall.overdue %]
Return true if recall is overdue to be returned.
if ( $recall->in_transit ) [% IF recall.in_transit %]
Return true if recall is in transit.
if ( $recall->expired ) [% IF recall.expired %]
Return true if recall has expired.
if ( $recall->cancelled ) [% IF recall.cancelled %]
Return true if recall has been cancelled.
if ( $recall->fulfilled ) [% IF recall.fulfilled %]
Return true if the recall has been fulfilled.
my $expirationdate = $recall->calc_expirationdate; $recall->update({ expirationdate => $expirationdate });
Calculate the expirationdate to set based on circulation rules and system preferences.
my ( $recall, $dotransfer, $messages ) = $recall->start_transfer({ item => $item_object });
Set the recall as in transit.
$recall->revert_transfer;
If a transfer is cancelled, revert the recall to requested.
$recall->set_waiting( { expirationdate => $expirationdate, item => $item_object } );
Set the recall as waiting and update expiration date. Notify the recall requester.
$recall->revert_waiting;
Revert recall waiting status.
if ( $recall->should_be_overdue ) { $recall->set_overdue; }
Return true if this recall should be marked overdue
$recall->set_overdue;
Set a recall as overdue when the recall has been requested and the borrower who has checked out the recalled item is late to return it. This can be done manually by the library or by cronjob. The interface is either 'INTRANET' or 'COMMANDLINE' for logging purposes.
$recall->set_expired({ interface => 'INTRANET' });
Set a recall as expired. This may be done manually or by a cronjob, either when the borrower that placed the recall takes more than RecallsMaxPickUpDelay number of days to collect their item, or if the specified expirationdate passes. The interface is either 'INTRANET' or 'COMMANDLINE' for logging purposes.
$recall->set_cancelled;
Set a recall as cancelled. This may be done manually, either by the borrower that placed the recall, or by the library.
$recall->set_fulfilled;
Set a recall as finished. This should only be called when the item allocated to a recall is checked out to the borrower who requested the recall.
Returns a map of column name to string representations including the string.