From 2ff5cf976c39d5d0759492a078f0623575bcdc31 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 18 May 2023 14:52:58 +0100 Subject: [PATCH] Bug 29002: Fix 'Place booking' for cat pages We added the 'Place booking' option to the cat-toolbar, but it require includes for select2 and calendar which weren't present everywhere.. This patch corrects that. Signed-off-by: Martin Renvoize Signed-off-by: Janet McGowan Signed-off-by: Caroline Cyr La Rose Signed-off-by: Laurence Rault Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt | 7 +------ .../intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt | 3 +++ .../intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt | 3 +++ .../intranet-tmpl/prog/en/modules/catalogue/imageviewer.tt | 3 +++ .../prog/en/modules/catalogue/labeledMARCdetail.tt | 3 +++ .../intranet-tmpl/prog/en/modules/catalogue/moredetail.tt | 3 +++ 6 files changed, 16 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt index 52834a6aab..a0b61bc34d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt @@ -36,11 +36,7 @@
-
-
- -
-
+ [% INCLUDE 'cat-toolbar.inc' %]

Bookings for [% INCLUDE 'biblio-title-head.inc' %]

@@ -56,7 +52,6 @@
- [% INCLUDE modals/place_booking.inc %] [% MACRO jsinclude BLOCK %] [% Asset.js("lib/dayjs/dayjs.min.js") | $raw %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt index 29dfc33b09..b2e706b3ca 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt @@ -85,7 +85,10 @@ [% MACRO jsinclude BLOCK %] [% INCLUDE 'catalog-strings.inc' %] + [% INCLUDE 'calendar.inc' %] + [% INCLUDE 'select2.inc' %] [% Asset.js("js/catalog.js") | $raw %] + [% Asset.js("js/place_booking_modal.js") | $raw %] [% Asset.js("js/browser.js") | $raw %] [% IF ( Koha.Preference('CatalogConcerns') ) %]