From cab4e345e10908c439b6de12a87b31acaf9c797d Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 9 May 2022 15:22:16 +0000 Subject: [PATCH] Bug 30721: Markup error in detail page's component parts tab This patch adds a missing to the bibliographic detail page template in the section for showing component parts. Some comments are added to clarify the markup structure. To test you should have a record in your catalog with component parts. Bug 11175 provides one you can import if necessary: https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78023 To see the error, go to the staff interface, locate the record in question and view the detail page. Under the Components tag, scroll to the bottom. You will see content from "later" tabs at the bottom, e.g. "There is no order for this bibliographic record" or "No images have been uploaded for this bibliograhpic record yet." Apply the patch and reload the page. The tabs should still look correct, and now the tab content should be correctly isolated. --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 054d3b97b7..cb6b22e709 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -708,7 +708,8 @@ Note that permanent location is a code, and location may be an authval. [% IF ComponentParts.size == Koha.Preference('MaxComponentRecords')%]

Only [% ComponentParts.size | html %] results are shown: show all component parts

[% END %] - + + [% END %] -- 2.30.2