From 8bae2c99165db6918591f406c2771d6c77ae4e78 Mon Sep 17 00:00:00 2001 From: Adrien Saurat Date: Mon, 31 Dec 2012 15:03:44 +0100 Subject: [PATCH] Bug 9332: Display call number in "Holds waiting" notice When checking out from a patron page, a notice "Holds waiting" appears if a biblio (on hold) is waiting for this borrower. This patch adds the call number information to this warning. Signed-off-by: Owen Leonard Nice little improvement, thanks. Signed-off-by: Jonathan Druart Signed-off-by: Jared Camins-Esakov --- circ/circulation.pl | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index 3d24a4a21d..bdf036231b 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -372,6 +372,7 @@ if ($borrowernumber) { $getWaitingReserveInfo{biblionumber} = $getiteminfo->{'biblionumber'}; $getWaitingReserveInfo{itemtype} = $itemtypeinfo->{'description'}; $getWaitingReserveInfo{author} = $getiteminfo->{'author'}; + $getWaitingReserveInfo{itemcallnumber} = $getiteminfo->{'itemcallnumber'}; $getWaitingReserveInfo{reservedate} = format_date( $num_res->{'reservedate'} ); $getWaitingReserveInfo{waitingat} = GetBranchName( $num_res->{'branchcode'} ); $getWaitingReserveInfo{waitinghere} = 1 if $num_res->{'branchcode'} eq $branch; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index 9af072f21c..fb9e46ef1f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -692,7 +692,7 @@ No patron matched [% message %]

Holds waiting:

[% FOREACH WaitingReserveLoo IN WaitingReserveLoop %]
    -
  • [% WaitingReserveLoo.title |html %] ([% WaitingReserveLoo.itemtype %]), [% IF ( WaitingReserveLoo.author ) %]by [% WaitingReserveLoo.author %][% END %] Hold placed on [% WaitingReserveLoo.reservedate %]. +
  • [% WaitingReserveLoo.title |html %] ([% WaitingReserveLoo.itemtype %]), [% IF ( WaitingReserveLoo.author ) %]by [% WaitingReserveLoo.author %][% END %] [% IF ( WaitingReserveLoo.itemcallnumber ) %][[% WaitingReserveLoo.itemcallnumber %]] [% END %]Hold placed on [% WaitingReserveLoo.reservedate %]. [% IF ( WaitingReserveLoo.waitingat ) %]
    [% IF ( WaitingReserveLoo.waitinghere ) %][% ELSE %][% END %]Waiting at [% WaitingReserveLoo.waitingat %] [% END %] -- 2.39.5