Bug 18392: use KohaTable for circ rules to allow export of matrix

To test:
1 - Define some circ rules
2 - View them, note the appearance
3 - Apply patch
4 - Reload and note change of header
5 - Use the new button to export, try various formats
6 - Test the filter and export

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Nick Clemens 2022-04-13 19:10:43 +00:00 committed by Fridolin Somers
parent aa1def3180
commit 7f636b36fc

View file

@ -1200,9 +1200,10 @@
[% Asset.js("js/admin-menu.js") | $raw %]
[% INCLUDE 'datatables.inc' %]
[% INCLUDE 'calendar.inc' %]
[% INCLUDE 'columns_settings.inc' %]
<script>
$(document).ready(function() {
$("#default-circulation-rules").dataTable($.extend(true,{},dataTablesDefaults, {
KohaTable("default-circulation-rules", {
"aoColumnDefs": [
{ "bVisible": false, "aTargets": [ 0,2 ] },
{ "bSortable": false, "aTargets": ["_all"] }
@ -1210,7 +1211,7 @@
"aaSortingFixed": [ [0,'asc'], [1,'asc'], [2,'asc'], [3,'asc'] ],
"bPaginate": false,
"bAutoWidth": false
}));
});
});
function clear_edit(){