Bug 35010: In record checkout history do not show anonymous patron link
authorFridolin Somers <fridolin.somers@biblibre.com>
Mon, 9 Oct 2023 08:57:29 +0000 (22:57 -1000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 10 Oct 2023 12:22:34 +0000 (09:22 -0300)
commitdad04bbf0a1915930a95bdb3fea73f47602be884
tree2a7261fc034b8dc2008e908a8e1b24a8916973e9
parentb4f928003eac4bcd5d1c778cda7b346151782d45
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>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt