From b3014db35b89c2dae720663139cb3bc4e73eb1b6 Mon Sep 17 00:00:00 2001 From: Michael Andrew Cabus <michael@bywatersolutons.com> Date: Tue, 23 May 2017 15:43:10 +0000 Subject: [PATCH] Bug 18354 Adding item type attribute to cover image div this adds item type so we can do things with javascript To Test 1.) Do a search on OPAC 2.) Inspect element to confirm item type is not present 3.) Apply patch 4.) Do a search on OPAC to confirm item type is present as a class --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt index b5e05b9..1e3b4da 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -222,7 +222,7 @@ [% # Cell 4: Search result details and controls %] <td class="bibliocol"> - <div class="coverimages"> + <div class="coverimages [% SEARCH_RESULT.itemtype %] "> <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]"> [% IF ( OPACLocalCoverImages ) %] <span title="[% SEARCH_RESULT.biblionumber |url %]" class="[% SEARCH_RESULT.biblionumber %]" id="local-thumbnail[% loop.count %]"></span> -- 2.1.4