Bugzilla – Attachment 156724 Details for
Bug 35010
In record checkout history should not show anonymous patron link
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35010: In record checkout history do not show anonymous patron link
Bug-35010-In-record-checkout-history-do-not-show-a.patch (text/plain), 2.20 KB, created by
Fridolin Somers
on 2023-10-09 09:02:29 UTC
(
hide
)
Description:
Bug 35010: In record checkout history do not show anonymous patron link
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2023-10-09 09:02:29 UTC
Size:
2.20 KB
patch
obsolete
>From 58bac47acb42c6c7620fe17424b68b134f425ec8 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Sun, 8 Oct 2023 22:57:29 -1000 >Subject: [PATCH] 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 >--- > .../prog/en/modules/catalogue/issuehistory.tt | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt >index 37c03921eb..3c85ffcbcd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt >@@ -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 %] >-- >2.42.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35010
:
156724
|
156729
|
156760