Bugzilla – Attachment 68457 Details for
Bug 18949
OPAC MARC details holdings table is not styled with thead
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18949: Adding thead tags to OPAC MARC details holdings table
Bug-18949-Adding-thead-tags-to-OPAC-MARC-details-h.patch (text/plain), 2.63 KB, created by
Nick Clemens (kidclamp)
on 2017-10-24 12:05:15 UTC
(
hide
)
Description:
Bug 18949: Adding thead tags to OPAC MARC details holdings table
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2017-10-24 12:05:15 UTC
Size:
2.63 KB
patch
obsolete
>From 3a9532656439724bb43d2366e36c133fe055159b Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Mon, 17 Jul 2017 22:22:55 +0000 >Subject: [PATCH] Bug 18949: Adding thead tags to OPAC MARC details holdings > table > >So that it can be styled alongside other tables in the OPAC. > >To test: >1) Log into staff side >2) Find OPACUserCSS syspref and add the following CSS: >th, >.table-bordered>thead>tr:first-child>th { >color: red; >} >3) Log into the OPAC >4) Go to your fines, your search history, your reading history etc - >notice all of these table's headings are styled with red text >5) Go to the detail page of an item, then the MARC view. >Notice this table's headings are now styled with red text >6) Apply patch and refresh page >7) Your holdings table should now have red headings. >(You can delete the CSS from OPACUserCSS if you'd like.) > >Sponsored-by: Catalyst IT > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-MARCdetail.tt | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-MARCdetail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-MARCdetail.tt >index db570b3..7b0f984 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-MARCdetail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-MARCdetail.tt >@@ -136,11 +136,14 @@ > [% IF ( item_header_loop ) %] > <table id="items" class="table table-bordered table-condensed table-striped"> > <caption>Holdings</caption> >+ <thead> > <tr> > [% FOREACH header IN item_header_loop %] > <th>[% header %]</th> > [% END %] > </tr> >+ </thead> >+ <tbody> > [% FOREACH item IN item_loop %] > <tr> > [% FOREACH sf_code IN item_subfield_codes %] >@@ -148,6 +151,7 @@ > [% END %] > </tr> > [% END %] >+ </tbody> > </table> > [% ELSE %] > <p>No items available.</p> >-- >2.1.4
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 18949
:
65087
|
65391
| 68457