From 1fc532d659f5a59578dafae4a553d4f461991bf8 Mon Sep 17 00:00:00 2001 From: Sam Lau Date: Tue, 11 Jun 2024 16:39:05 +0000 Subject: [PATCH] Bug 37047: Make Patron Bookings table visible from Patrons Checkout page This patch makes it so that the patron bookings table loads properly from teh checkout page. Previously, it was only loading correctly from the details page. To test: 1. Create an item bookable. 2. Book an item for a patron. 3. Go to the patron's checkout page. 4. See they have a Booking (1) in their tab. 5. Click this tab, but nothing appears. 6. Apply patch, restart_all 7. See they still have a Booking (1) in their tab. 8. Click this tab, table loads as expected. Signed-off-by: Pedro Amorim --- .../prog/en/modules/circ/circulation.tt | 104 ++++++++++++++++++ 1 file changed, 104 insertions(+) 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 3c9c6cfcb9..cdd9e14a59 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -986,6 +986,7 @@ [% END %] +[% INCLUDE modals/cancel_booking.inc %] [% MACRO jsinclude BLOCK %] [% INCLUDE 'datatables.inc' %] @@ -1026,10 +1027,113 @@ [% END %] [% Asset.js("js/holds.js") | $raw %] [% INCLUDE 'calendar.inc' %] + [% Asset.js("js/cancel_booking_modal.js") | $raw %] + [% INCLUDE 'js-biblio-format.inc' %]