Bug 35010: In record checkout history do not show anonymous patron link
In a biblio record checkout history, when a checkout is anonymized the patron id has been replaced by anonymous patron id. In this case we should not show anonymous patron link. It looks like a real patron did this checkout. Test plan : 1) Set an existing patron id in system preference 'AnonymousPatron' 2) Perform anonymisation on old checkouts (or edit database manually) 3) Look at a record checkout history with old checkouts => You see 'Anonymized' for anonymized checkouts 4) Set system preference 'AnonymousPatron' empty 5) Look at same record checkout history => Check no error Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
b4f928003e
commit
dad04bbf0a
|
|
@ -67,12 +67,17 @@
|
|||
<th>Checkin on</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
[% SET anonymous_patron_id = Koha.Preference('AnonymousPatron') || 0 %]
|
||||
[% FOREACH checkout IN checkouts %]
|
||||
<tr>
|
||||
[% IF show_patron_column %]
|
||||
<td>
|
||||
[% IF checkout.patron %][%# Not set for deleted patron records %]
|
||||
[% INCLUDE 'patron-title.inc' patron => checkout.patron hide_patron_infos_if_needed=1 %]
|
||||
[% IF checkout.patron.id == anonymous_patron_id %]
|
||||
<em>Anonymized</em>
|
||||
[% ELSE %]
|
||||
[% INCLUDE 'patron-title.inc' patron => checkout.patron hide_patron_infos_if_needed=1 %]
|
||||
[% END %]
|
||||
[% END %]
|
||||
</td>
|
||||
[% END %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue