Bug 7097: HidePatronName not hiding on issue history
HidePatronName wasn't being respected on a titles Checkout History tab. This patch exports the preference to the template (if set), and then toggles the display between patron cardnumber (if 'on') or the name (if 'off') To test: Enable HidePatronName Go to the Checkout History tab of an item that has been checked out before You should see the patron's cardnumber instead of their surname, firstname Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> (cherry picked from commit5fde469429) Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com> (cherry picked from commitaac43adb01) Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
parent
80ccf4a110
commit
64b18c97bb
|
|
@ -45,6 +45,10 @@ my $params = $query->Vars;
|
|||
my $biblionumber = $params->{'biblionumber'};
|
||||
my $itemnumber = $params->{'itemnumber'};
|
||||
|
||||
if (C4::Context->preference("HidePatronName")) {
|
||||
$template->param(HidePatronName => 1);
|
||||
}
|
||||
|
||||
my ($issues,$biblio,$barcode);
|
||||
if ($itemnumber){
|
||||
$issues=GetItemIssues($itemnumber);
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
<tbody>
|
||||
[% FOREACH issue IN issues %]
|
||||
[% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
|
||||
<td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% issue.borrowernumber %]">[% issue.surname %][% IF ( issue.firstname ) %], [% issue.firstname %][% END %]</a></td>
|
||||
<td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% issue.borrowernumber %]">[% IF HidePatronName %][% issue.cardnumber %][% ELSE %][% issue.surname %][% IF ( issue.firstname ) %], [% issue.firstname %][% END %][% END %]</a></td>
|
||||
<td>[% IF ( issue.barcode ) %]
|
||||
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% issue.biblionumber %]&itemnumber=[% issue.itemnumber %]">[% issue.barcode %]</a>
|
||||
[% ELSE %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue