From 5a09093414adb2838d8ab7cc45351e10d166c8c3 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 23 Dec 2022 11:05:01 +0000 Subject: [PATCH] Bug 29822: Update 'DefaultPatronSearchFields' to a select list This patch updates the `DefaultPatronSearchFields` preference from freetext expecting a comma delimited list of borrower fields to a multi-select with a sensible list of fields available. I opted to not use the Modal approach with all borrower fields listed as I felt it made more sense to only expose a more limited subset of the fields available to us. Signed-off-by: David Nind Signed-off-by: Martin Renvoize --- .../en/modules/admin/preferences/patrons.pref | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref index 32cd34f706..360ebf8463 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref @@ -58,7 +58,20 @@ Patrons: - - "Comma separated list defining the default fields to be used during a patron search using the \"standard\" option in the patrons or circulation module:" - pref: DefaultPatronSearchFields - class: multi + multiple: + firstname: "First name" + middle_name: "Middle name" + surname: "Last name" + othernames: "Other names" + cardnumber: "Cardnumber" + userid: "Username" + email: "Primary email" + emailpro: "Secondary email" + phone: "Primary phone" + phonepro: "Secondary phone" + mobile: "Mobile phone" + smsalertnumber: "Secondary mobile phone" + zipcode: "ZIP/Postal code" - "If empty Koha will default to \"firstname,middle_name,surname,othernames,cardnumber,userid\". Additional fields added to this preference will be added as search options in the dropdown menu on the patron search page." - - pref: DefaultPatronSearchMethod -- 2.41.0