Recalls history
+ + [% IF RECALLS.count %] +Title | +Placed on | +Expires on | +Pickup location | +Status | +Cancel | +
---|---|---|---|---|---|
+ + [% RECALL.biblio.title %] + [% FOREACH s IN RECALL.biblio.subtitles %] + [% s %] + [% END %] + [% RECALL.item.enumchron %] + + [% RECALL.biblio.author %] + | ++ + Recall date: + [% RECALL.recalldate | $KohaDates %] + + | ++ [% IF ( RECALL.is_waiting ) %] + [% IF ( RECALL.expirationdate ) %] + + Expiration: + [% RECALL.expirationdate | $KohaDates %] + + [% ELSE %] + + Expiration: + Never expires + + [% END %] + [% ELSIF ( RECALL.has_expired && RECALL.expirationdate ) %] + + Expiration: + [% RECALL.expirationdate | $KohaDates %] + + [% ELSE %] + - + [% END %] + | ++ Pick up location: + [% RECALL.branch.branchname %] + | ++ Status: + [% IF ( RECALL.is_requested ) %] + Requested + [% ELSIF ( RECALL.is_waiting ) %] + Ready for pickup + [% ELSIF ( RECALL.has_expired ) %] + Expired + [% ELSIF ( RECALL.is_cancelled ) %] + Cancelled + [% END %] + | ++ [% IF ( !RECALL.cancellationdate && ( RECALL.is_requested || RECALL.is_overdue ) ) %] + + [% END %] + | + [% END %] +
Expires on | Pickup location | Status | -Cancel | +Cancel | @@ -840,20 +840,16 @@ Using this account is not recommended because some parts of Koha will not functi Requested [% ELSIF ( RECALL.is_waiting ) %] Ready for pickup - [% ELSIF ( RECALL.has_expired ) %] - Expired [% END %]- [% IF ( !RECALL.cancellationdate ) %] + [% IF ( !RECALL.cancellationdate && ( RECALL.is_requested || RECALL.is_overdue ) ) %] - [% ELSE %] - Cancelled [% END %] | [% END %] @@ -1001,7 +997,7 @@ Using this account is not recommended because some parts of Koha will not functi return confirmDelete(MSG_CONFIRM_CANCEL_RECALL); }); - var dTables = $("#checkoutst,#holdst,#overduest,#opac-user-relative-issues-table"); + var dTables = $("#checkoutst,#holdst,#overduest,#opac-user-relative-issues-table,#recalls-table"); dTables.each(function(){ var thIndex = $(this).find("th.psort").index(); $(this).dataTable($.extend(true, {}, dataTablesDefaults, { --- a/members/moremember.pl +++ a/members/moremember.pl @@ -255,7 +255,7 @@ if ( $data->{dateofbirth} ) { # BUILD HTML # show all recalls and reserves of this borrower, and the position of the reservation .... if ($borrowernumber) { - my $recalls = Koha::Recalls->search({ borrowernumber => $borrowernumber }); + my $recalls = Koha::Recalls->search({ borrowernumber => $borrowernumber, status => { '=', ['R','W'] } }); $template->param( holds_count => Koha::Database->new()->schema()->resultset('Reserve') ->count( { borrowernumber => $borrowernumber } ), --- a/members/recallshistory.pl +++ a/members/recallshistory.pl @@ -0,0 +1,53 @@ +#!/usr/bin/perl + +# Copyright 2017 Aleisha Amohia
---|