Bugzilla – Attachment 62021 Details for
Bug 18403
Hide patron information if not part of the logged in user library group
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18403: Use patron-title.inc when hidepatronname is used [SPECIFIC for view_holdsqueue]
Bug-18403-Use-patron-titleinc-when-hidepatronname-.patch (text/plain), 2.44 KB, created by
Jonathan Druart
on 2017-04-10 21:33:17 UTC
(
hide
)
Description:
Bug 18403: Use patron-title.inc when hidepatronname is used [SPECIFIC for view_holdsqueue]
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-04-10 21:33:17 UTC
Size:
2.44 KB
patch
obsolete
>From 20a7bc8357d6e69d44971506b3cac11063a0a0d4 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 5 Apr 2017 17:25:13 -0300 >Subject: [PATCH] Bug 18403: Use patron-title.inc when hidepatronname is used > [SPECIFIC for view_holdsqueue] > >Same that the previous patch but for the holds queue >--- > circ/view_holdsqueue.pl | 3 +++ > .../intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt | 10 +++++----- > 2 files changed, 8 insertions(+), 5 deletions(-) > >diff --git a/circ/view_holdsqueue.pl b/circ/view_holdsqueue.pl >index 72457e0..933ea89 100755 >--- a/circ/view_holdsqueue.pl >+++ b/circ/view_holdsqueue.pl >@@ -53,6 +53,9 @@ my $itemtypeslimit = $params->{'itemtypeslimit'}; > if ( $run_report ) { > # XXX GetHoldsQueueItems() does not support $itemtypeslimit! > my $items = GetHoldsQueueItems($branchlimit, $itemtypeslimit); >+ for my $item ( @$items ) { >+ $item->{patron} = Koha::Patrons->find( $item->{borrowernumber} ); >+ } > $template->param( > branchlimit => $branchlimit, > total => scalar @$items, >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 aa3d4cd..3c40459 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 >@@ -182,11 +182,11 @@ $(document).ready(function() { > [% END %] > </td> > <td class="hq-patron"> >- [% IF Koha.Preference('HidePatronName') %] >- <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% itemsloo.borrowernumber %]#reserves">[% itemsloo.cardnumber %]</a></p> >- [% ELSE %] >- <p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% itemsloo.borrowernumber %]#reserves">[% itemsloo.surname %], [% itemsloo.firstname %] ([% itemsloo.cardnumber %])</a></p> >- <p>[% itemsloo.phone %]</p> >+ <p> >+ [% INCLUDE 'patron-title.inc' patron=itemsloo.patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %] >+ </p> >+ [% UNLESS Koha.Preference('HidePatronName') %] >+ <p>[% itemsloo.patron.phone %]</p> > [% END %] > </td> > <td class="hq-sendto">[% Branches.GetName( itemsloo.pickbranch ) %]</td> >-- >2.9.3
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18403
:
62010
|
62011
|
62012
|
62013
|
62014
|
62015
|
62016
|
62017
|
62018
|
62019
|
62020
|
62021
|
62022
|
62023
|
62024
|
62025
|
62026
|
62027
|
62028
|
62029
|
62030
|
62031
|
62032
|
62033
|
62302
|
62303
|
62830
|
62831
|
62832
|
62833
|
62834
|
62835
|
62836
|
62837
|
62838
|
62839
|
62840
|
62841
|
62842
|
62843
|
62844
|
62845
|
62846
|
62847
|
62848
|
62849
|
62850
|
62851
|
62852
|
62853
|
62854
|
62855
|
71392
|
71394
|
71500
|
71501
|
71502
|
71503
|
71504
|
71505
|
71506
|
71507
|
71508
|
71509
|
71510
|
71511
|
71512
|
71513
|
71514
|
71515
|
71516
|
71517
|
71518
|
71519
|
71520
|
71521
|
71522
|
71523
|
71524
|
71525
|
71526
|
71527
|
71528
|
71529
|
71530
|
71767