From bc34d55ef01bc540afacf2f064d9ec781c27ca13 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 29 Feb 2024 16:53:18 +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 --- 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 ab24a9304e2..91a166d7820 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js +++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js @@ -520,6 +520,7 @@ function patron_autocomplete(node, options) { + (item.surname ? item.surname.escapeHtml() : "") + ", " + (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.44.0