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 <michaela.sieber@kit.edu>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
This commit is contained in:
Owen Leonard 2024-06-24 17:37:43 +00:00 committed by Laura_Escamilla
parent dbadb00d7b
commit 96c13a6f54
No known key found for this signature in database
GPG Key ID: 56A7626A071C052F
2 changed files with 35 additions and 5 deletions

View File

@ -2402,6 +2402,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:

View File

@ -5,6 +5,7 @@
[% USE Branches %]
[% USE KohaDates %]
[% PROCESS 'i18n.inc' %]
[% USE TablesSettings %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title
@ -220,15 +221,14 @@
var sTable;
$(document).ready(function () {
enableSelectedActions();
var table_settings = [% TablesSettings.GetTableSettings( "serials", "claims", "claimst", "json" ) | $raw %];
sTable = $("#claimst").kohaTable(
{
dom: "t",
autowidth: false,
order: [[7, "asc"]],
paging: false,
},
null,
true
);
orderCellsTop: true
}, table_settings, 1);
// Checkboxes : Select All / None
$("span.checkall").html('<input type="checkbox" name="CheckAll"> ' + _("Check all") + "</input>");