From 81ef88e6fa11dab3e3d1173761d0382d540beccb Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Date: Thu, 9 Feb 2023 17:32:19 +0000
Subject: [PATCH] Bug 29822: Use the modal

As requested by Katrin.. switch to the modal and expose all fields from
the borrowers database table

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>
---
 .../en/modules/admin/preferences/patrons.pref | 19 ++++---------------
 1 file changed, 4 insertions(+), 15 deletions(-)

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 360ebf8463..52eef0e462 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
@@ -56,22 +56,11 @@ Patrons:
            class: integer
          - results per page in the staff interface.
      -
-         - "Comma separated list defining the default fields to be used during a patron search using the \"standard\" option in the patrons or circulation module:"
+         - "Pipe 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
-           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"
+           type: modalselect
+           source: borrowers
+           exclusions: anonymized|auth_method|autorenew_checkouts|date_renewed|dateenrolled|dateexpiry|lang|lastseen|login_attempts|overdrive_auth_token|password|password_expiration_date|primary_contact_method|gonenoaddress|lost|debarred|debarredcomment|branchcode|categorycode|flags|guarantorid|relationship|privacy|privacy_guarantor_checkouts|privacy_guarantor_fines|pronouns|secret|sms_provider_id|updated_on|checkprevcheckout
          - "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.30.2