From 890cc610426a00872e3a687ef54071b707191049 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 24 Sep 2021 13:37:15 +0000 Subject: [PATCH] Bug 29104: Add date expiry column to patron search borrower table Test plan: 1. Apply patch 2. The new dateexpiry column will be hidden by default, go to table settings and expose it (table_borrowers) 3. Do a patron search that will return multiple patrons, you should see the date expiry column 4. Make the date displays correctly right with different dateformats 5. Make sure that the column, and other columns in that table, can be correctly hidden via table settings --- admin/columns_settings.yml | 3 +++ .../prog/en/includes/circ-patron-search-results.inc | 2 ++ 2 files changed, 5 insertions(+) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 16516b3452..7ecc788b81 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -1130,6 +1130,9 @@ modules: - columnname: phone is_hidden: 1 + - + columnname: dateexpiry + is_hidden: 1 returns: checkedintable: diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc index a69466eb01..ffbb08f3eb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc @@ -9,6 +9,7 @@ Library Address Primary phone + Date expiry @@ -37,6 +38,7 @@ [% borrower.address | html %] [% borrower.phone | html %] + [% borrower.dateexpiry | html %] [% END %] -- 2.20.1