Bugzilla – Attachment 188810 Details for
Bug 40995
Patron search autocomplete adds extraneous spacing and punctuation when patron lacks surname
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40995: (follow-up) pass invert_name in patron autocomplete
Bug-40995-follow-up-pass-invertname-in-patron-auto.patch (text/plain), 1.29 KB, created by
Nick Clemens (kidclamp)
on 2025-10-31 11:18:05 UTC
(
hide
)
Description:
Bug 40995: (follow-up) pass invert_name in patron autocomplete
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2025-10-31 11:18:05 UTC
Size:
1.29 KB
patch
obsolete
>From c45975285d4a8186b49198e71f068a45aafed106 Mon Sep 17 00:00:00 2001 >From: CJ Lynce <cj.lynce@westlakelibrary.org> >Date: Mon, 13 Oct 2025 19:58:21 +0000 >Subject: [PATCH] Bug 40995: (follow-up) pass invert_name in patron > autocomplete > >Passes invert_name flag to patron_to_html to restore previous >format in patron autocomplete. > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >index 345e4e25fb0..7cb0924693e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >@@ -800,7 +800,10 @@ function patron_autocomplete(node, options) { > .append( > "" + > (item.link ? '<a href="' + item.link + '">' : "<a>") + >- $patron_to_html(item, { display_cardnumber: true }) + >+ $patron_to_html(item, { >+ display_cardnumber: true, >+ invert_name: true, >+ }) + > " " + > (item.date_of_birth > ? $date(item.date_of_birth) + >-- >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 40995
:
187739
|
187745
|
187843
|
187850
|
188808
|
188809
| 188810