From 2db8d6287205e0508035d73aaa0bbe8021e4e601 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 2f17db5377e..99c2a7a5a4d 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