From 48547f2eb6271dcb971eea251c5d0fb4f3145c3f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 7 Oct 2025 11:20:14 +0200 Subject: [PATCH] Bug 38739: Fix tools/batch_modify_holds.tt --- .../en/modules/tools/batch_modify_holds.tt | 1116 ++++++++--------- 1 file changed, 552 insertions(+), 564 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_modify_holds.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_modify_holds.tt index 21953f3faeb..8cfb026dc95 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_modify_holds.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_modify_holds.tt @@ -42,627 +42,615 @@ [% END #/ WRAPPER breadcrumbs %] [% END #/ WRAPPER sub-header.inc %] -
-
-
-
- [% IF view == "cud-form" %] -

Batch modify holds

- - - [% ELSIF view == "report" %] -

Modified holds

-
-
- - - - - - - - - - - - - - - - - [% FOREACH hold IN updated_holds_obj %] - - - - - - - - - - - +[% WRAPPER "main-container.inc" aside="tools-menu" %] + [% IF view == "cud-form" %] +

Batch modify holds

+ + + [% ELSIF view == "report" %] +

Modified holds

+
+
+
TitlePatronPickup locationPriorityExpiration dateStatusSuspendedSuspended untilNotes
[% INCLUDE 'biblio-title.inc' biblio=hold.biblio link = 1 %][% INCLUDE 'patron-title.inc' invert_name=1 patron=hold.borrower hide_patron_infos_if_needed=1 link_to="circulation_reserves" %][% hold.branch.branchname | html %][% hold.priority | html %][% hold.expirationdate | $KohaDates %] - [% IF hold.found == 'F' %] - Fulfilled - [% ELSIF hold.cancellationdate %] - Cancelled - [% ELSIF hold.found == 'W' %] - [% IF hold.cancellation_requests.count == 0 %] - Waiting - [% ELSE %] - Cancelled - [% END %] - [% ELSIF hold.found == 'T' %] - In transit - [% ELSE %] - Pending - [% END %] - [% IF hold.suspend %]Yes[% ELSE %]No[% END %][% IF hold.suspend_until %][% hold.suspend_until | $KohaDates %][% ELSE %]-[% END %][% hold.reservenotes | html %]
+ + + + + + + + + + + + + + + + [% FOREACH hold IN updated_holds_obj %] + + + + + + + -
TitlePatronPickup locationPriorityExpiration dateStatusSuspendedSuspended untilNotes
[% INCLUDE 'biblio-title.inc' biblio=hold.biblio link = 1 %][% INCLUDE 'patron-title.inc' invert_name=1 patron=hold.borrower hide_patron_infos_if_needed=1 link_to="circulation_reserves" %][% hold.branch.branchname | html %][% hold.priority | html %][% hold.expirationdate | $KohaDates %] + [% IF hold.found == 'F' %] + Fulfilled + [% ELSIF hold.cancellationdate %] + Cancelled + [% ELSIF hold.found == 'W' %] + [% IF hold.cancellation_requests.count == 0 %] + Waiting + [% ELSE %] + Cancelled + [% END %] + [% ELSIF hold.found == 'T' %] + In transit + [% ELSE %] + Pending [% END %] -
-
- -
- Return to batch hold modification -
-
- - [% END %] - - -
+ + [% IF hold.suspend %]Yes[% ELSE %]No[% END %] + [% IF hold.suspend_until %][% hold.suspend_until | $KohaDates %][% ELSE %]-[% END %] + [% hold.reservenotes | html %] + + [% END %] + + +
+ +
+ Return to batch hold modification +
- -
- + + [% END %] + - [% MACRO jsinclude BLOCK %] - [% Asset.js("js/tools-menu.js") | $raw %] - [% INCLUDE 'calendar.inc' %] - [% INCLUDE 'datatables.inc' %] - [% INCLUDE 'select2.inc' %] - [% INCLUDE 'js-biblio-format.inc' %] - [% INCLUDE 'js-patron-format.inc' %] - [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %] - - [% END %] - [% INCLUDE 'intranet-bottom.inc' %] -
+ //Modified holds table + var table_settings = [% TablesSettings.GetTableSettings( 'circ', 'holds', 'modified_holds', 'json' ) | $raw %]; + $("#modified_holds").kohaTable({ + pagingType: "full", + autoWidth: false + }, table_settings); + + }); + +[% END %] +[% INCLUDE 'intranet-bottom.inc' %] -- 2.34.1