From 650a8d8a64561bedc424bb6cd0ee83b7c10ffa79 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 30 Mar 2026 09:51:06 +0200 Subject: [PATCH] Bug 42278: Tidy all script tags - circ In order to tidy all the script tags of the .tt files we isolate the interpolation of Template::Toolkit variables in a separate script tag. This patch focuses on the circulation module. The 4 main changes are in the following files: * circulation.tt As expected this one is messy to test, we need to look at the diff and make sure the different features linked with the variables moved at still working correctly (yes, it's vague!) * circulation_batch_checkouts.tt On the batch checkout table the due date hidden input should have the value of the return date high demand items. * overdue.tt On the overdue report view, the "Return claims" column must be hidden if ClaimReturnedLostValue is not set. * transfers_to_send.tt The transfers to send view should show all libraries Signed-off-by: Paul Derscheid Signed-off-by: Jan Kissig Signed-off-by: Pedro Amorim --- .../prog/en/modules/circ/article-requests.tt | 2 +- .../prog/en/modules/circ/branchtransfers.tt | 2 +- .../prog/en/modules/circ/circulation.tt | 84 +++++++++++-------- .../circ/circulation_batch_checkouts.tt | 20 ++--- .../prog/en/modules/circ/curbside_pickups.tt | 2 +- .../prog/en/modules/circ/overdue.tt | 11 ++- .../prog/en/modules/circ/pendingbookings.tt | 2 +- .../prog/en/modules/circ/pendingreserves.tt | 2 +- .../prog/en/modules/circ/request-article.tt | 2 +- .../prog/en/modules/circ/reserveratios.tt | 2 +- .../prog/en/modules/circ/returns.tt | 2 +- .../prog/en/modules/circ/transfers_to_send.tt | 11 +-- .../en/modules/circ/transferstoreceive.tt | 2 +- .../prog/en/modules/circ/view_holdsqueue.tt | 2 +- .../prog/en/modules/circ/waitingreserves.tt | 2 +- 15 files changed, 82 insertions(+), 66 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt index a3e7eb5e3f..3583141829 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt @@ -523,7 +523,7 @@ [% MACRO jsinclude BLOCK %] [% INCLUDE 'datatables.inc' %] - diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index f5218f6ac0..ef36ee8b69 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -1128,7 +1128,7 @@ [% PROCESS 'modal-claims.inc' %] [% PROCESS 'modal-claims-js' %] [% INCLUDE 'js-date-format.inc' %] - [% Asset.js("js/pages/circulation.js") | $raw %] [% IF Koha.Preference('ClaimReturnedLostValue') || Koha.Preference('BundleLostValue') %] @@ -1165,25 +1188,18 @@ [% INCLUDE 'js-biblio-format.inc' %] [% Asset.js("js/hold-group.js") | $raw %] - [% END %] - [% IF NOT checkout_info.IMPOSSIBLE && ( CAN_user_circulate_force_checkout || checkout_info.HIGHHOLDS ) && ( checkout_info.RESERVED || checkout_info.RESERVE_WAITING || checkout_info.TRANSFERRED || checkout_info.PROCESSING ) %]
  • This item is on hold for another patron. The hold will be overridden, but not cancelled.
  • @@ -352,10 +343,19 @@ [% MACRO jsinclude BLOCK %] [% INCLUDE 'calendar.inc' %] [% INCLUDE 'datatables.inc' %] - + [% INCLUDE 'calendar.inc' %] [% INCLUDE 'datatables.inc' %] - +