From af1f1f7424150449a732150ba07393a4ed4fd815 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 17 Apr 2024 12:33:24 +0200 Subject: [PATCH] Bug 36614: Restore 'phone' on the main patron search It disappeared at some point (history is tricky here, I didn't manage to track down what happened, it's a mess) This patch adds a phone column after the "name and address" one. It's hidden by default. Signed-off-by: Caroline Cyr La Rose Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer (cherry picked from commit d4bea3f9c84d97225efc0e07d7f6b9390d86d0d8) Signed-off-by: Fridolin Somers --- admin/columns_settings.yml | 3 +++ koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 560451e137..a550c98f0f 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -1046,6 +1046,9 @@ modules: columnname: cardnumber - columnname: name + - + columnname: phone + is_hidden: 1 - columnname: dateofbirth - diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt index 6b2c11d17b..6281bb45d2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt @@ -10,7 +10,7 @@ [% PROCESS 'patronfields.inc' %] [% SET libraries = Branches.all %] [% SET categories = Categories.all.unblessed %] -[% SET columns = ['cardnumber', 'name-address', 'dateofbirth', 'branch', 'category', 'dateexpiry', 'checkouts', 'account_balance', 'borrowernotes', 'action'] %] +[% SET columns = ['cardnumber', 'name-address', 'phone', 'dateofbirth', 'branch', 'category', 'dateexpiry', 'checkouts', 'account_balance', 'borrowernotes', 'action'] %] [% SET searchtype = searchtype || Koha.Preference('DefaultPatronSearchMethod') %] [% PROCESS 'patron-search.inc' %] [% INCLUDE 'doc-head-open.inc' %] -- 2.39.5