From aea0d44d2c80cb1ebc1e7c1ac489bfadf7669abb Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 2 Jan 2024 20:11:28 +0000 Subject: [PATCH] Bug 35648: Allow sorting of patron categories in Overdue notice/status triggers This patch adds a basic DataTables configuration to the table of patron categories on the Overdue notice/status triggers page. The table can be sorted by patron category and can be filtered. To test, apply the patch and go to Tools -> Overdue notice/status triggers. - Confirm that the table of patron categories is sorted by default by patron category - Other columns should not be sortable - You should see a search field above the table which works to filter by patron category. Signed-off-by: Lucas Gass --- .../prog/en/modules/tools/overduerules.tt | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt index a13d78a3d6..f345332d0f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt @@ -82,13 +82,13 @@ [% WRAPPER tab_panels %] [% FOR tab IN tabs %] [% WRAPPER tab_panel tabname=tab.id %] - +
- - - - + + + + [% FOREACH mtt IN message_transport_types %] [% NEXT IF mtt == 'itiva' AND !Koha.Preference('TalkingTechItivaPhoneNotification') %] [% NEXT IF mtt == 'phone' AND !Koha.Preference('PhoneNotification') %] @@ -175,6 +175,7 @@ [% MACRO jsinclude BLOCK %] [% Asset.js("js/tools-menu.js") | $raw %] + [% INCLUDE 'datatables.inc' %] [% END %] -- 2.30.2
 DelayLetterRestrictPatron categoryDelayLetterRestrict