From ab5c810dacd224444b4ee6f492715aa6027d33ab Mon Sep 17 00:00:00 2001 From: Aleisha Amohia 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 Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart --- 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 db570b32a1..7b0f9849a5 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 ) %] + [% FOREACH header IN item_header_loop %] [% END %] + + [% FOREACH item IN item_loop %] [% FOREACH sf_code IN item_subfield_codes %] @@ -148,6 +151,7 @@ [% END %] [% END %] +
Holdings
[% header %]
[% ELSE %]

No items available.

-- 2.39.5