From 7449e727cc144e93200722ac55b6c8f307286302 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 22 Nov 2024 08:36:38 +0100 Subject: [PATCH] Bug 38484: Remove unused USE and SET And tidy --- .../prog/en/modules/circ/pendingreserves.tt | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt index 6da9f47985a..8769a5be973 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt @@ -1,5 +1,4 @@ [% USE raw %] -[% USE To %] [% USE Asset %] [% USE Koha %] [% USE KohaDates %] @@ -322,22 +321,21 @@ } $(document).ready(function() { - [% SET libraries = Branches.all %] - let filters_options = { - [5] : (table_dt) => get_options(table_dt.column(5)), - [10] : (table_dt) => get_options(table_dt.column(10)), - [11] : (table_dt) => get_options(table_dt.column(11)), - [15] : (table_dt) => get_options(table_dt.column(15)), - }; + let filters_options = { + [5] : (table_dt) => get_options(table_dt.column(5)), + [10] : (table_dt) => get_options(table_dt.column(10)), + [11] : (table_dt) => get_options(table_dt.column(11)), + [15] : (table_dt) => get_options(table_dt.column(15)), + }; - var table_settings = [% TablesSettings.GetTableSettings('circ', 'holds', 'holds-to-pull', 'json') | $raw %]; - var holdst = KohaTable("holdst", { - "pagingType": "full_numbers", - "columnDefs": [ - { "orderable": false, "searchable": false, "targets": [ 'NoSort' ] }, - ], - }, table_settings, true, null, filters_options); + var table_settings = [% TablesSettings.GetTableSettings('circ', 'holds', 'holds-to-pull', 'json') | $raw %]; + var holdst = KohaTable("holdst", { + "pagingType": "full_numbers", + "columnDefs": [ + { "orderable": false, "searchable": false, "targets": [ 'NoSort' ] }, + ], + }, table_settings, true, null, filters_options); }); [% END %] -- 2.34.1