From a0086293e6fa86541be075a31e2cb9846a5c3a95 Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Sat, 18 Jan 2014 13:44:40 +1300 Subject: [PATCH] Bug 5739 - Show the barcode of the waiting item on the circulation page To test: 1. place a hold for a borrower 2. mark the hold waiting for that borrower 3. view that borrower's circulation page 4. without the patch, no barcode will be displayed under "hold waiting for..." With it, the barcode will be linked to the item. Signed-off-by: Jonathan Druart Amended patch: fix qa issues (tabs and trailing spaces) Signed-off-by: Kyle M Hall --- circ/circulation.pl | 1 + .../prog/en/modules/circ/circulation.tt | 3 ++- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index e02b569..34d48ff 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -409,6 +409,7 @@ if ($borrowernumber) { $getWaitingReserveInfo{itemtype} = $itemtypeinfo->{'description'}; $getWaitingReserveInfo{author} = $getiteminfo->{'author'}; $getWaitingReserveInfo{itemcallnumber} = $getiteminfo->{'itemcallnumber'}; + $getWaitingReserveInfo{barcode} = $getiteminfo->{'barcode'}; $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 d1a36ae..e1dc4a9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -631,7 +631,8 @@ No patron matched [% message %]

Holds waiting:

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