From e925fe98b03034d0331842d7e2dd77b6086762e0 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 24 Jun 2024 17:37:43 +0000 Subject: [PATCH] Bug 16721: Add table configuration to serial claims table This patch adds table configuration options to the serial claims table, including the option to set a default sort column. The patch also moves the table column filter row to the top, which I think is more standard in the staff interface. To test, apply the patch and restart services. - You'll need to have subscription issues which are missing, claimed, or late. - Go to Serials -> Claims, and select a vendor. - In the table of missing issues, confirm that all DataTable controls work correctly: Column visibility, export, and configuration options. - Confirm that you can use Administration -> Table settings -> Serials -> Claims to hide columns by default or set the default order. - Confirm that the column header filter forms work correctly. Sponsored-by: Athens County Public Libraries Signed-off-by: Michaela Sieber Signed-off-by: Martin Renvoize --- admin/columns_settings.yml | 30 +++++++++++++++++++ .../prog/en/modules/serials/claims.tt | 10 +++---- 2 files changed, 35 insertions(+), 5 deletions(-) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 368bd08b113..6fbf5dd276b 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -2422,6 +2422,36 @@ modules: columnname: link serials: + claims: + claimst: + default_sort_order: 7 + columns: + - + columnname: selection + cannot_be_toggled: 1 + cannot_be_modified: 1 + - + columnname: vendor + - + columnname: library + - + columnname: title + - + columnname: issn + - + columnname: issue_number + - + columnname: status + - + columnname: since + - + columnname: publication_date + - + columnname: claims_count + - + columnname: claim_date + - + columnname: notes subscription-detail: orders: columns: diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt index 15a199cd75b..203707b1d1b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt @@ -5,6 +5,7 @@ [% USE Branches %] [% USE KohaDates %] [% PROCESS 'i18n.inc' %] +[% USE TablesSettings %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] ' + _("Check all") + "</input>"); -- 2.51.0