Bugzilla – Attachment 183063 Details for
Bug 40000
Show that a patron is the anonymous in patrons search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40000: Show that a patron is the anonymous in patrons search
Bug-40000-Show-that-a-patron-is-the-anonymous-in-p.patch (text/plain), 1.74 KB, created by
Fridolin Somers
on 2025-06-06 09:31:42 UTC
(
hide
)
Description:
Bug 40000: Show that a patron is the anonymous in patrons search
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2025-06-06 09:31:42 UTC
Size:
1.74 KB
patch
obsolete
>From 7f7116373354e4f6ee8aebdfce9a9f80d15747c9 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Fri, 6 Jun 2025 11:26:11 +0200 >Subject: [PATCH] Bug 40000: Show that a patron is the anonymous in patrons > search > >Show patron is the anonymous in patrons search. >Display uses class 'circ-hlt' to show bold red text. >Can be hidden using class 'patron_is_anonymous'. > >Test plan : >1) Create a new user "John Doe" >2) Add its borrowernumber in system preference 'AnonymousPatron' >3) Perform a search on letter 'd' >4) Check you see in table a text 'This is the anonymous patron' only on this patron >--- > koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >index 85184bdc6a..f64240e3c4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >@@ -606,6 +606,9 @@ > if ( row.email ) { > r += "<li class=\"patron_email\">" + _("Email: ") + "<a href='mailto:" + encodeURIComponent(row.email) + "'>" + escape_str(row.email) + "</a></li>"; > } >+ if ( patron_id === "[% Koha.Preference('AnonymousPatron') %]" ) { >+ r += "<li class=\"patron_is_anonymous\"><span class=\"circ-hlt\">" + _("This is the anonymous patron") + "</span></li>"; >+ } > r += '</ul></div>' > > return r; >-- >2.43.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 40000
:
183063
|
183064
|
183256
|
183258
|
183263