From f387a9b4ea5e70ff084f9f6e7aed27aa6ecf5af2 Mon Sep 17 00:00:00 2001 From: David Cook Date: Wed, 9 Aug 2023 01:06:05 +0000 Subject: [PATCH] Bug 34502: Remove useless SEARCH_RESULT.localimage This patch removes a useless Template Toolkit tag. To test: 0. Apply the patch 1. Go to http://localhost:8081/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=LocalCoverImages 2. Change to "Show" 3. Go to http://localhost:8081/cgi-bin/koha/catalogue/detail.pl?biblionumber=29 4. Upload an image 5. Go to http://localhost:8081/cgi-bin/koha/catalogue/search.pl?q=test 6. Note that the local cover image appears even without the TT tag --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index 78cec6a337..231eec76d3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -464,7 +464,7 @@ [% IF ( CoverImagePlugins || AmazonCoverImages || LocalCoverImages || IntranetCoce || ( SyndeticsCovers ) || (Koha.Preference('CustomCoverImages') && Koha.Preference('CustomCoverImagesURL')) ) %]
- [% IF ( LocalCoverImages ) %][% SEARCH_RESULT.localimage | html %] + [% IF ( LocalCoverImages ) %]