From b83aa162f5db3fbc05fc2be84e63c85da93a319b Mon Sep 17 00:00:00 2001 From: Hammat Wele Date: Thu, 11 Sep 2025 23:19:10 +0000 Subject: [PATCH] Bug 36154: (follow-up) fix column alignment when no cover source enabled (Local, Custom, or Plugin) --- .../prog/en/modules/virtualshelves/shelves.tt | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt index 8022bfae9b2..5b6b617405c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -355,21 +355,23 @@ [% itemsloo.description | html %] [% END %] - [% IF LocalCoverImages && itemsloo.biblio_object.cover_images.count > 0 %] - - - Local cover image - - [% ELSIF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') && (custom_cover_image_url = itemsloo.biblio_object.custom_cover_image_url) %] - - [% IF custom_cover_image_url %] - - Custom cover image - [% END %] - - [% ELSE %] - - + [% IF ( CoverImagePlugins || LocalCoverImages || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL'))) %] + [% IF LocalCoverImages && itemsloo.biblio_object.cover_images.count > 0 %] + + + Local cover image + + [% ELSIF Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL') && (custom_cover_image_url = itemsloo.biblio_object.custom_cover_image_url) %] + + [% IF custom_cover_image_url %] + + Custom cover image + [% END %] + + [% ELSE %] + + + [% END %] [% END %] [% IF ( itemsloo.XSLTBloc ) %] -- 2.34.1