Bugzilla – Attachment 155254 Details for
Bug 34723
opac-imageviewer.pl not showing thumbnails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34723: Show thumbnails on opac-imageviewer.pl when imagenumber not provided
Bug-34723-Show-thumbnails-on-opac-imageviewerpl-wh.patch (text/plain), 1.75 KB, created by
David Cook
on 2023-09-06 06:30:08 UTC
(
hide
)
Description:
Bug 34723: Show thumbnails on opac-imageviewer.pl when imagenumber not provided
Filename:
MIME Type:
Creator:
David Cook
Created:
2023-09-06 06:30:08 UTC
Size:
1.75 KB
patch
obsolete
>From 7fdc3f628d6c634a25f556eb8a324b67ea26a69d Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Wed, 6 Sep 2023 06:28:45 +0000 >Subject: [PATCH] Bug 34723: Show thumbnails on opac-imageviewer.pl when > imagenumber not provided > >This patch fixes a method call in the opac-imageviewer.pl so that thumbnails >correctly appear. > >Test plan: >0. Apply the patch >1. Go to >http://localhost:8081/cgi-bin/koha/admin/preferences.pl?tab=&op=search&searchfield=localcover >2. Change both *LocalCoverImages sysprefs to "Show" >3. Go to >http://localhost:8081/cgi-bin/koha/admin/preferences.pl?tab=&op=search&searchfield=AllowMultipleCovers >4. Change "AllowMultipleCovers" to "Allow" >5. Click "Images (0)" tab >6. Download or make two JPEG images >7. Upload the images >8. Go to http://localhost:8080/cgi-bin/koha/opac-imageviewer.pl?biblionumber=29 >9. See one large image in the centre and two smaller thumbnails on the right side >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-imageviewer.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-imageviewer.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-imageviewer.tt >index 597d88c360..788c25ad8a 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-imageviewer.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-imageviewer.tt >@@ -83,7 +83,7 @@ > </div> <!-- / .span12 --> > > [% IF OPACLocalCoverImages == 1 %] >- [% IF images.count %] >+ [% IF images.size %] > <div class="col-lg-3"> > <div id="thumbnails"> > [% FOREACH image IN images %] >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34723
:
155254
|
155298
|
155518