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: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
83a823aec5
commit
6589fff9ea
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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>");
|
||||
|
|
|
|||
Loading…
Reference in New Issue