Bug 18403: Use patron-title.inc when hidepatronname is used [SPECIFIC for view_holdsqueue]
Same that the previous patch but for the holds queue Signed-off-by: Signed-off-by: Jon McGowan <jon.mcgowan@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
fa54100dff
commit
ea15f3112b
2 changed files with 8 additions and 5 deletions
|
@ -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,
|
||||
|
|
|
@ -151,11 +151,11 @@
|
|||
[% 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>
|
||||
|
|
Loading…
Reference in a new issue