From 92cb17716931ff68e963acf04361be29dff3b80e Mon Sep 17 00:00:00 2001 From: Lucas Gass 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 Signed-off-by: Tomas Cohen Arazi (cherry picked from commit a6c77f664c6b21b3d7c9ee4590a8b8b21a18a9b2) Signed-off-by: Fridolin Somers --- 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 3fc507e4ee..196c7fdb4a 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js +++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js @@ -493,6 +493,7 @@ function patron_autocomplete(node, options) { + (item.link ? "" : "") + (item.surname ? item.surname.escapeHtml() : "") + ", " + (item.firstname ? item.firstname.escapeHtml() : "") + + " " + (item.middle_name ? item.middle_name.escapeHtml() : "") + cardnumber.escapeHtml() + " " + (item.date_of_birth -- 2.39.5