Bug 36966: Fix data-link for local cover images

This patch fixes the data-link so that the "edit" link at the
bottom of the lightbox viewer correctly takes the user to
the editor interface for the local cover image

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit e0e179f806)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
David Cook 2024-05-29 07:26:18 +00:00 committed by Lucas Gass
parent 5d40de56b3
commit 3ece9f1381
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@
row.cover_image_ids.forEach(id => {
node += '<div class="cover-image local-coverimg">';
node += '<a href="/cgi-bin/koha/catalogue/image.pl?imagenumber=%s" title="%s">'.format(id, _("Local cover image"));
node += '<img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=%s" alt="%s" />'.format(id, _("Local cover image"));
node += '<img src="/cgi-bin/koha/catalogue/image.pl?thumbnail=1&imagenumber=%s" data-link="/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=%s&imagenumber=%s" alt="%s" />'.format(id, row.biblio_id, id, _("Local cover image"));
node += '</a>';
node += '</div>';
});