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 <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2022-12-23 11:05:01 +00:00 committed by Tomas Cohen Arazi
parent 1bd3f2cc1b
commit 4d2a3d58b4
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 14 additions and 1 deletions

View File

@ -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