From 202cf958fccaabc4bd4732a1a42013415176e5ed Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 19 Apr 2024 17:33:05 +0000 Subject: [PATCH] Bug 36204: Add othernames field to PatronAutoComplete display To test: 1. APPLY PATCH 2. Make sure PatronAutoComplete is on. 3. Find or add othernames to a patron record. 4. Search for that patron and make sure othernames properly displays in the dropdown. 5. Add a middle name to that patron and search again, make sure the display looks good. 6. Remove the othernames field and search again, make sure the display looks good. Signed-off-by: Tomas Cohen Arazi Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js index 4080b1d7f5..30f0ce7019 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js +++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js @@ -608,6 +608,8 @@ function patron_autocomplete(node, options) { (item.firstname ? item.firstname.escapeHtml() : "") + " " + (item.middle_name ? item.middle_name.escapeHtml() : "") + + " " + + (item.other_name ? item.other_name.escapeHtml() : "") + cardnumber.escapeHtml() + " " + (item.date_of_birth -- 2.39.5