Bug 38981: Directly use the opac-image link

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2025-03-12 15:44:11 +01:00 committed by Katrin Fischer
parent 545ff24dd0
commit 4eececb330
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -10,7 +10,7 @@
[% IF ( OPACLocalCoverImages && SEARCH_RESULT.has_local_cover_image ) %]
<div class="cover-image local-coverimg">
<a href="/cgi-bin/koha/opac-image.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]">
<span class="[% SEARCH_RESULT.biblionumber | html %]" id="local-thumbnail-[% SEARCH_RESULT.biblionumber | html %]" data-link="/cgi-bin/koha/opac-image.pl?biblionumber=[% SEARCH_RESULT.biblionumber | html %]"></span>
<img src="/cgi-bin/koha/opac-image.pl?thumbnail=1&biblionumber=[% SEARCH_RESULT.biblionumber | uri %]" alt="Local cover image" />
</a>
<div class="hint">Local cover image</div>
</div>