From 71a7e84c3eb3fd34d8775b5eecaeae4f4afd906c 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 --- admin/columns_settings.yml | 28 +++++++++ .../prog/en/modules/serials/claims.tt | 60 ++++++++++--------- 2 files changed, 60 insertions(+), 28 deletions(-) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 154b66ae17..9d2b232ce5 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -2082,6 +2082,34 @@ 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 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 acdd24c0d5..83f6a4631e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt @@ -3,6 +3,7 @@ [% USE AuthorisedValues %] [% USE Branches %] [% USE KohaDates %] +[% USE TablesSettings %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% IF ( supplierid ) -%] Claims for [% suppliername | html %] › [% END %] Claims › Serials › Koha @@ -99,7 +100,23 @@ Claims count Claim date [% FOR field IN additional_fields_for_subscription %] - [% field.name | html %] + [% field.name | html %] + [% END %] + + + + + + + + + + + + + + [% FOR field IN additional_fields_for_subscription %] + [% END %] @@ -107,9 +124,9 @@ [% FOREACH missingissue IN missingissues %] - [% UNLESS missingissue.cannot_claim %] - - [% END %] + [% UNLESS missingissue.cannot_claim %] + + [% END %] [% missingissue.name | html %] @@ -143,24 +160,6 @@ [% END # /FOREACH missingissue %] - - - - - - - - - - - - - - [% FOR field IN additional_fields_for_subscription %] - - [% END %] - - @@ -294,20 +293,25 @@ [% MACRO jsinclude BLOCK %] [% INCLUDE 'calendar.inc' %] [% INCLUDE 'datatables.inc' %] + [% INCLUDE 'columns_settings.inc' %]