From 031804495f16670bf38c08946b14d649eb9452ca 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. --- .../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 9ea2bea534..2237480b83 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." - - "Show the following fields from the items database table as columns on the statistics tab on the patron record: " -- 2.39.1