From 79b2be14ac4ec8940ca7e5e5f50452e3a60d1462 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 16 Jun 2025 21:42:40 +0000 Subject: [PATCH] Bug 40221: Replace layout tables for component part display This patch updates the display of component parts on the bibliographic detail pages in both the staff interface and OPAC. Table markup isn't necessary to display simple rows of content. To test, apply the patch and locate a record in the catalog with component parts. (See Bug 11175 for sample record). Look at the detail page for the record, under the components tab, in both the OPAc and staff interface. In both cases the information should be clearly displayed. Sponsored-by: Athens County Public Libraries --- .../bootstrap/en/modules/opac-detail.tt | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index c761be0ac5e..9f379839568 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -39,6 +39,17 @@ [% END %] [% Asset.css("lib/Chocolat/css/chocolat.css") | $raw %] [% INCLUDE 'doc-head-close.inc' %] +[% FILTER collapse %] + +[% END %] [% BLOCK cssinclude %][% END %] [% INCLUDE 'bodytag.inc' bodyid='opac-detail' bodyclass='scrollto' %] @@ -664,13 +675,9 @@ [% IF ComponentParts && ComponentParts.size %] [% WRAPPER tab_panel tabname="components" %]
- - [% FOR PART IN ComponentParts %] - - - - [% END %] -
[% PART | $raw %]
+ [% FOR PART IN ComponentParts %] +
[% PART | $raw %]
+ [% END %] [% IF ComponentParts.size == Koha.Preference('MaxComponentRecords') %]

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

[% END %] -- 2.39.5