Bugzilla – Attachment 65391 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]
[SIGNED-OFF] Bug 18949: Adding thead tags to OPAC MARC details holdings table
SIGNED-OFF-Bug-18949-Adding-thead-tags-to-OPAC-MAR.patch (text/plain), 2.59 KB, created by
Owen Leonard
on 2017-08-01 12:02:03 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 18949: Adding thead tags to OPAC MARC details holdings table
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2017-08-01 12:02:03 UTC
Size:
2.59 KB
patch
obsolete
>From c8a120d688a53237d41db3fb2aced7492bff705f Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Mon, 17 Jul 2017 22:22:55 +0000 >Subject: [PATCH] [SIGNED-OFF] 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> >--- > 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 1f0680e..720e647 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