]> git.koha-community.org Git - koha.git/commit
Bug 25031: (QA follow-up) Improve handling of one or fewer images
authorOwen Leonard <oleonard@myacpl.org>
Wed, 17 Jun 2020 21:45:00 +0000 (21:45 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 24 Jul 2020 12:09:30 +0000 (14:09 +0200)
commitfa8c57e55d3f3cc027bc6e9d0fdf8dad81555453
treef8d81753e88a70f3792e27bd3463c2702ddda650
parent6b6cea9d64f255cce481012a30a0ae3298e160b2
Bug 25031: (QA follow-up) Improve handling of one or fewer images

This patch addresses a few issues raised during QA:

1. If there are no images, avoid the momentary appearance of an empty
   borered box. The class controlling the appearance of the box is now
   added after initialization.
2. If there is only one image, remove the control for switching
   between covers.
3. Add "preventDefault" to cover naviation click handler.
4. Correct translation function in localcovers.js.

This patch modifies SCSS, so rebuilding the staff client CSS is
necessary for testing.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
koha-tmpl/intranet-tmpl/prog/js/localcovers.js