Bugzilla – Attachment 183423 Details for
Bug 40221
Replace layout tables for component part display
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40221: Replace layout tables for component part display
Bug-40221-Replace-layout-tables-for-component-part.patch (text/plain), 2.81 KB, created by
Owen Leonard
on 2025-06-23 17:46:18 UTC
(
hide
)
Description:
Bug 40221: Replace layout tables for component part display
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2025-06-23 17:46:18 UTC
Size:
2.81 KB
patch
obsolete
>From 79b2be14ac4ec8940ca7e5e5f50452e3a60d1462 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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 %] >+ <style> >+ .component_part { >+ padding: 0.5rem 0.9rem; >+ border-bottom: 1px solid #bcbcbc; >+ } >+ .component_part:nth-child(2n + 1) { >+ background-color: #f3f4f4; >+ } >+ </style> >+[% END %] > </head> > [% BLOCK cssinclude %][% END %] > [% INCLUDE 'bodytag.inc' bodyid='opac-detail' bodyclass='scrollto' %] >@@ -664,13 +675,9 @@ > [% IF ComponentParts && ComponentParts.size %] > [% WRAPPER tab_panel tabname="components" %] > <div class="content_set"> >- <table> >- [% FOR PART IN ComponentParts %] >- <tr> >- <td> [% PART | $raw %] </td> >- </tr> >- [% END %] >- </table> >+ [% FOR PART IN ComponentParts %] >+ <div class="component_part"> [% PART | $raw %] </div> >+ [% END %] > [% IF ComponentParts.size == Koha.Preference('MaxComponentRecords') %] > <p>Only [% ComponentParts.size | html %] results are shown: <a href="/cgi-bin/koha/opac-search.pl?q=[% ComponentPartsQuery | url %]">show all component parts</a></p> > [% END %] >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40221
: 183423