From 3e8470c1e7b91656ed2bdb9471b5b81f43793b00 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 - OPAC 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 Signed-off-by: Noah Tremblay Signed-off-by: Jonathan Druart --- .../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 086a42e6864..56fdecc9fdb 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.34.1