From 5f769adb34f712b65521479e1acc5bfa24dae72f Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sun, 28 Aug 2022 11:14:46 +0200 Subject: [PATCH] Bug 31333: (QA follow-up) Add the new check to OPAC result list When no result is found and at the bottom of the result list the option to make a purchase suggestion is displayed. This also needs to use the new check. Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt index b8e0d4844a..c47962d22c 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -549,11 +549,11 @@ [% END # / IF total %] [%# Display "Not finding what you're looking for" for suggestion or ILL %] - [% IF Koha.Preference( 'suggestion' ) == 1 && ( Koha.Preference( 'AnonSuggestions' ) == 1 || loggedinusername ) || ( Koha.Preference( 'ILLModule' ) == 1 && loggedinusername ) %] + [% IF suggestion && ( Koha.Preference( 'AnonSuggestions' ) == 1 || loggedinusername ) || ( Koha.Preference( 'ILLModule' ) == 1 && loggedinusername ) %]
Not finding what you're looking for?
    - [% IF Koha.Preference( 'suggestion' ) == 1 %] + [% IF suggestion %] [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
  • Make a purchase suggestion
  • [% ELSIF loggedinusername %] -- 2.39.5