diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt
index 97b0f4a64b..98d5a19ab7 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt
@@ -68,7 +68,9 @@
[% END %]
-
+ [% SET table_id = closed ? "closed_subscriptions" : "opened_subscriptions" %]
+
+
[% END # /BLOCK subscriptions_table %]
@@ -311,6 +292,7 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'calendar.inc' %]
[% INCLUDE 'datatables.inc' %]
+ [% INCLUDE 'columns_settings.inc' %]
@@ -343,24 +325,15 @@
}
$(document).ready(function() {
- var osrlt = $("#opened_panel table").dataTable($.extend(true, {}, dataTablesDefaults, {
- "pagingType": "full",
- "order": [[ 2, "asc" ]],
- "columnDefs": [
- { "orderable": false, "searchable": false, "targets": [ 'NoSort' ] },
- { "type": "anti-the", "targets": [ 'anti-the'] }
- ]
- }));
+ var osrlt = KohaTable("opened_subscriptions", {
+ pagingType: "full",
+ order: [[2, "asc"]],
+ }, null, true);
- var csrlt = $("#closed_panel table").dataTable($.extend(true, {}, dataTablesDefaults, {
- // FIXME sort function of additional_fields!
- "order": [[ 2, "asc" ]],
- "pagingType": "full",
- "columnDefs": [
- { "orderable": false, "targets": [ 'NoSort' ] },
- { "type": "anti-the", "targets": [ 'anti-the'] }
- ]
- }));
+ var csrlt = KohaTable("closed_subscriptions", {
+ order: [[2, "asc"]],
+ pagingType: "full",
+ }, null, true);
var manarlt = $("#mana_results_datatable").dataTable($.extend(true, {}, dataTablesDefaults, {
"pagingType": "full",