From a1e74cf66cfb5680b11b00636e7fdbf2718e1ce7 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Tue, 29 Apr 2025 15:22:15 +0100 Subject: [PATCH] Bug 39775: Restore filtering to the serials claims table This patch implements the 'add_filters' argument for kohaTable() to restore filtering to the serials claims table Test plan: 1) Navigate to Serials and then Claims (if prompted to create a notice, please do this) 2) If you have no claims listed, return to the serials page and create a new serial (the details of this aren't too important) 3) Return to the serials claims page, try to use one of the filters at the bottom of the table 4) Nothing will happen and the table won't filter 5) Apply patch 6) Hard refresh the browser 7) The filters will now be at the top of the table and should work Signed-off-by: Jonathan Druart Signed-off-by: David Nind --- .../prog/en/modules/serials/claims.tt | 34 ++++++------------- 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt index aa6e6f770d..172ab160bc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt @@ -133,24 +133,6 @@ [% END # /FOREACH missingissue %] - - - - - - - - - - - - - - [% FOR field IN additional_fields_for_subscription %] - - [% END %] - - @@ -238,12 +220,16 @@ var sTable; $(document).ready(function () { enableSelectedActions(); - sTable = $("#claimst").kohaTable({ - dom: "t", - order: [[7, "asc"]], - columnDefs: [{ sortable: false, targets: ["no-sort"] }], - paging: false, - }); + sTable = $("#claimst").kohaTable( + { + dom: "t", + order: [[7, "asc"]], + columnDefs: [{ sortable: false, targets: ["no-sort"] }], + paging: false, + }, + null, + true + ); // Checkboxes : Select All / None $("span.checkall").html(' ' + _("Check all") + ""); -- 2.39.5