Bugzilla – Attachment 187850 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.23 KB, created by
CJ Lynce
on 2025-10-13 20:05:23 UTC
(
hide
)
Description:
Bug 40995: (follow-up) pass invert_name in patron autocomplete
Filename:
MIME Type:
Creator:
CJ Lynce
Created:
2025-10-13 20:05:23 UTC
Size:
1.23 KB
patch
obsolete
>From cff32f6cde3394871a68eba28973a586fa9fed3b 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. >--- > 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 34b41c62d6..13eccbfbcf 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >@@ -801,7 +801,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