Bugzilla – Attachment 183256 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.79 KB, created by
David Nind
on 2025-06-14 08:43:52 UTC
(
hide
)
Description:
Bug 40000: Show that a patron is the anonymous in patrons search
Filename:
MIME Type:
Creator:
David Nind
Created:
2025-06-14 08:43:52 UTC
Size:
1.79 KB
patch
obsolete
>From f9fb9ed8fb988e9e9c0a61f792b69f2c875cc298 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 > >Signed-off-by: David Nind <david@davidnind.com> >--- > 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.39.5
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