Bug 18392: use KohaTable for circ rules to allow export of matrix
authorNick Clemens <nick@bywatersolutions.com>
Wed, 13 Apr 2022 19:10:43 +0000 (19:10 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 21 Apr 2022 06:43:15 +0000 (20:43 -1000)
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>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt

index 0ee352f..26db3f1 100644 (file)
     [% 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"] }
                 "aaSortingFixed": [ [0,'asc'], [1,'asc'], [2,'asc'], [3,'asc'] ],
                 "bPaginate": false,
                 "bAutoWidth": false
-            }));
+            });
         });
 
         function clear_edit(){