From f0b597bdb2fb3f299dfb0134779f8ac274027da9 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 13 May 2024 14:43:53 +0100 Subject: [PATCH] Bug 35961: Add missing includes This patch adds the missing includes for the 'Catalog concerns' modal on opac-MARCdetail and opac-ISBDdetail views. Signed-off-by: David Nind Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer (cherry picked from commit c2154173af06efaf007e0cdf444f885275d61f1b) Signed-off-by: Fridolin Somers (cherry picked from commit e90c544841efed6cf31ec8433f2e79161a07095f) Signed-off-by: Lucas Gass --- .../opac-tmpl/bootstrap/en/modules/opac-ISBDdetail.tt | 10 +++++++++- .../opac-tmpl/bootstrap/en/modules/opac-MARCdetail.tt | 7 +++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-ISBDdetail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-ISBDdetail.tt index 936960f6bd..feab04d6c1 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-ISBDdetail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-ISBDdetail.tt @@ -44,5 +44,13 @@ +[% IF Koha.Preference('OpacCatalogConcerns') %] + [% INCLUDE 'modals/catalog_concern.inc' %] +[% END %] + [% INCLUDE 'opac-bottom.inc' %] -[% BLOCK jsinclude %][% END %] +[% BLOCK jsinclude %] + [% IF Koha.Preference('OpacCatalogConcerns') %] + [% Asset.js("js/modals/catalog_concern.js") | $raw %] + [% END %] +[% END %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-MARCdetail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-MARCdetail.tt index 392ca0b3ac..f908a7e1dd 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-MARCdetail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-MARCdetail.tt @@ -173,8 +173,15 @@ +[% IF Koha.Preference('OpacCatalogConcerns') %] + [% INCLUDE 'modals/catalog_concern.inc' %] +[% END %] + [% INCLUDE 'opac-bottom.inc' %] [% BLOCK jsinclude %] +[% IF Koha.Preference('OpacCatalogConcerns') %] + [% Asset.js("js/modals/catalog_concern.js") | $raw %] +[% END %]