Bugzilla – Attachment 155392 Details for
Bug 34719
Middle name doesn't show on autocomplete
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34719: Add middle_name to patron autocomplete
Bug-34719-Add-middlename-to-patron-autocomplete.patch (text/plain), 1.44 KB, created by
Matt Blenkinsop
on 2023-09-08 10:15:51 UTC
(
hide
)
Description:
Bug 34719: Add middle_name to patron autocomplete
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2023-09-08 10:15:51 UTC
Size:
1.44 KB
patch
obsolete
>From e4ab8034acd8c20068d793d47223888bc9ca6531 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 7 Sep 2023 21:19:26 +0000 >Subject: [PATCH] Bug 34719: Add middle_name to patron autocomplete > >To test: >1. Apply patch and clear browser cache. >2. Find some patrons with middle_name populated or add new patrons with a middle_name. >3. Make sure PatronAutoComplete is on >4. Try searching for a part of one of the patron's names who has a middle_name. >5. It should appear in the autocomplete dropdown > >Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >--- > koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >index 29aabe5162..3f62a2f6c0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >@@ -495,6 +495,7 @@ function patron_autocomplete(node, options) { > + (item.link ? "<a href=\"" + item.link + "\">" : "<a>") > + (item.surname ? item.surname.escapeHtml() : "") + ", " > + (item.firstname ? item.firstname.escapeHtml() : "") >+ + " " + (item.middle_name ? item.middle_name.escapeHtml() : "") > + cardnumber.escapeHtml() > + " <small>" > + (item.date_of_birth >-- >2.37.1 (Apple Git-137.1)
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 34719
:
155344
| 155392