From 80d6f2cc6d138b8e09b895fbdde256344308e960 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 5 Dec 2019 13:19:20 +0100 Subject: [PATCH] Bug 21270: Display "Make an Interlibrary loan request" even if "suggestions" is turned off Test plan: - Turn off "suggestions" - Turn on "ILLModule" => When logged in you should see the "Make an Interlibrary loan request" - Turn on "suggestions" - Turn off "ILLModule" => When logged in you should see the "Make a purchase suggestion" - Turn on "suggestions" - Turn on "ILLModule" => When logged in you should see both links. - Turn off "suggestions" - Turn off "ILLModule" => You should not see the "Not finding what you're looking for?" block - Turn on "suggestions" - Turn on AnonSuggestions => You should see the "Make a purchase suggestion" even when logged out Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson (cherry picked from commit 0e1d6ffcf7fac1894abc097fa37f2704b22ca4d9) Signed-off-by: Lucas Gass (cherry picked from commit 391378996527cecd01e2367b15833c3872a69f3b) Signed-off-by: Hayley Mapley --- .../opac-tmpl/bootstrap/en/modules/opac-results.tt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 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 68b1e2f861..f0f14f9288 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -575,14 +575,15 @@ [% END # / IF total %] - [% IF Koha.Preference( 'suggestion' ) == 1 && ( Koha.Preference( 'AnonSuggestions' ) == 1 || loggedinusername ) %] + [%# 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 ) %]
Not finding what you're looking for?
    - [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %] -
  • Make a purchase suggestion
  • - [% ELSE %] - [% IF ( loggedinusername ) %] + [% IF Koha.Preference( 'suggestion' ) == 1 %] + [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %] +
  • Make a purchase suggestion
  • + [% ELSIF loggedinusername %]
  • Make a purchase suggestion
  • [% END %] [% END %] -- 2.39.5