From a6c77f664c6b21b3d7c9ee4590a8b8b21a18a9b2 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 --- 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 ? "" : "") + (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