From e30c892cc08fd1f231a4444a77cda709a0ed270f 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 --- .../intranet-tmpl/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 b247706..3ee5e4f 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 @@ -2,6 +2,7 @@ [% USE ItemTypes %] [% USE Branches %] [% USE AuthorisedValues %] +[% USE Koha %] [% INCLUDE 'doc-head-open.inc' %] Koha › Circulation › Holds queue [% INCLUDE 'doc-head-close.inc' %] @@ -83,12 +84,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 %] -- 1.9.1