Browse Source

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

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
17.11.x
Michael Andrew Cabus 7 years ago
committed by Jonathan Druart
parent
commit
4d1a11b85f
  1. 2
      koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt

2
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>

Loading…
Cancel
Save