Bug 28178: Display the correct image in the image viewer
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 19 Apr 2021 10:11:36 +0000 (12:11 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 30 Apr 2021 08:38:17 +0000 (10:38 +0200)
commit106e9e10e96eb1fca1ed77831b67192a63d68043
tree28182d302c9f3c626c0aaa321a344faa19b40ed2
parente78a027a148dc44ab41d1f3ac0d06a959f99bc22
Bug 28178: Display the correct image in the image viewer

When there are several images attached to a bibliographic record, one can click
an image and see it in the image viewer. But the first image is always displayed.

Test plan:
0. Turn on LocalCoverImages and AllowMultipleCovers
1. Attach at least two images to a bibliographic record
2. Go to the detail page, click the "Images" tab and click the second
image.
=> With this patch applied you should see the image you selected

Sponsored-by: Gerhard Sondermann Dialog e.K. (presseplus.de, presseshop.at, presseshop.ch)
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 3dc9855b461a598487f2e7395a95f092f1f3e1c9)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
catalogue/imageviewer.pl
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/imageviewer.tt