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 ) {
|
if ( $run_report ) {
|
||||||
# XXX GetHoldsQueueItems() does not support $itemtypeslimit!
|
# XXX GetHoldsQueueItems() does not support $itemtypeslimit!
|
||||||
my $items = GetHoldsQueueItems($branchlimit, $itemtypeslimit);
|
my $items = GetHoldsQueueItems($branchlimit, $itemtypeslimit);
|
||||||
|
for my $item ( @$items ) {
|
||||||
|
$item->{patron} = Koha::Patrons->find( $item->{borrowernumber} );
|
||||||
|
}
|
||||||
$template->param(
|
$template->param(
|
||||||
branchlimit => $branchlimit,
|
branchlimit => $branchlimit,
|
||||||
total => scalar @$items,
|
total => scalar @$items,
|
||||||
|
|
|
@ -151,11 +151,11 @@
|
||||||
[% END %]
|
[% END %]
|
||||||
</td>
|
</td>
|
||||||
<td class="hq-patron">
|
<td class="hq-patron">
|
||||||
[% IF Koha.Preference('HidePatronName') %]
|
<p>
|
||||||
<p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% itemsloo.borrowernumber %]#reserves">[% itemsloo.cardnumber %]</a></p>
|
[% INCLUDE 'patron-title.inc' patron=itemsloo.patron hide_patron_infos_if_needed=1 link_to="circulation_reserves" %]
|
||||||
[% ELSE %]
|
</p>
|
||||||
<p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% itemsloo.borrowernumber %]#reserves">[% itemsloo.surname %], [% itemsloo.firstname %] ([% itemsloo.cardnumber %])</a></p>
|
[% UNLESS Koha.Preference('HidePatronName') %]
|
||||||
<p>[% itemsloo.phone %]</p>
|
<p>[% itemsloo.patron.phone %]</p>
|
||||||
[% END %]
|
[% END %]
|
||||||
</td>
|
</td>
|
||||||
<td class="hq-sendto">[% Branches.GetName( itemsloo.pickbranch ) %]</td>
|
<td class="hq-sendto">[% Branches.GetName( itemsloo.pickbranch ) %]</td>
|
||||||
|
|
Loading…
Reference in a new issue