From a8f3d8cfd58f7af9f5b8a13790a1fe320329f33b Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 10 Nov 2014 20:23:45 +0100 Subject: [PATCH] Bug 12359: Add HidePatronName functionality to the holds queue This changes the Holds Queue page to not show the patron's name and phone number, but only the cardnumber, when HidePatronName is set to 'Don't show' This also changes the link to the patron account to use the borrowernumber instead of the cardnumber, which seems more consistent. Fixes a tiny capitalization error: Only item... To test: - Look at the holds queue page with holds displayed - Toggle HidePatronName system preference and observe the change - Make sure the link works correctly Signed-off-by: Katrin Fischer Rebased 2016-10-16 Signed-off-by: Chris Kirby Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- .../prog/en/modules/circ/view_holdsqueue.tt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt index 67f3fc432f..549b563ba1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt @@ -3,6 +3,7 @@ [% USE Branches %] [% USE AuthorisedValues %] [% USE ColumnsSettings %] +[% USE Koha %] [% INCLUDE 'doc-head-open.inc' %] Koha › Circulation › Holds queue [% INCLUDE 'doc-head-close.inc' %] @@ -173,12 +174,19 @@ $(document).ready(function() { [% itemsloo.enumchron %] [% IF ( itemsloo.item_level_request ) %] - Only Item: [% itemsloo.barcode %] + Only item: [% itemsloo.barcode %] [% ELSE %] [% itemsloo.barcode %] or any available [% END %] -

[% itemsloo.surname %], [% itemsloo.firstname %] ([% itemsloo.cardnumber %])

[% itemsloo.phone %]

+ + [% IF Koha.Preference('HidePatronName') %] +

[% itemsloo.cardnumber %]

+ [% ELSE %] +

[% itemsloo.surname %], [% itemsloo.firstname %] ([% itemsloo.cardnumber %])

+

[% itemsloo.phone %]

+ [% END %] + [% Branches.GetName( itemsloo.pickbranch ) %] [% itemsloo.reservedate | $KohaDates %] [% itemsloo.notes %] -- 2.39.5