@@ -, +, @@ suggestions - Item detail page - Search result page - Masthead under the 'Library catalogue' search box - Item detail page - Search result page - Masthead under the 'Library catalogue' search box --- C4/Auth.pm | 4 +++- koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 2 +- opac/opac-suggestions.pl | 8 +++++--- 4 files changed, 10 insertions(+), 6 deletions(-) --- a/C4/Auth.pm +++ a/C4/Auth.pm @@ -501,7 +501,9 @@ sub get_template_and_user { # Decide if the patron can make suggestions in the OPAC my $can_make_suggestions; - if ( C4::Context->userenv && C4::Context->userenv->{'number'} ) { + if ( C4::Context->preference('Suggestion') && C4::Context->preference('AnonSuggestions') ) { + $can_make_suggestions = 1; + } elsif ( C4::Context->userenv && C4::Context->userenv->{'number'} ) { $can_make_suggestions = Koha::Patrons->find(C4::Context->userenv->{'number'})->category->can_make_suggestions; } --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -329,7 +329,7 @@ Browse search [% END %] - [% IF Koha.Preference( 'suggestion' ) == 1 %] + [% IF suggestion %] [% IF Koha.Preference( 'AnonSuggestions' ) == 1 || Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 %]