@@ -, +, @@ suggestions the search bar. - Logged in user, OPACViewOthersSuggestions off - No logged in user, OPACViewOthersSuggestions on - No logged in user, OPACViewOthersSuggestions off --- koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc | 6 ++---- .../opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 18 +++++++++++++++--- 2 files changed, 17 insertions(+), 7 deletions(-) --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -309,10 +309,8 @@ [% IF Koha.Preference( 'OpacTopissue' ) == 1 %]
  • Most popular
  • [% END %] [% IF Koha.Preference('SearchEngine') == 'Elasticsearch' && Koha.Preference( 'OpacBrowseSearch' ) == 1 %]
  • Browse search
  • [% END %] [% IF Koha.Preference( 'suggestion' ) == 1 %] - [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %] -
  • Purchase suggestions
  • - [% ELSIF ( ( Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 ) ) %] -
  • Purchase suggestions
  • + [% IF Koha.Preference( 'AnonSuggestions' ) == 1 || Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 %] +
  • Purchase suggestions
  • [% END %] [% END %] [% Koha.Preference('OpacMoreSearches') | $raw %] --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -393,10 +393,22 @@ [% END %] [% ELSE %] - [% UNLESS Koha.Preference( 'OPACViewOthersSuggestions' ) or loggedinusername %] -

    You are not authorized to see pending purchase suggestions.

    + [% IF Koha.Preference( 'OPACViewOthersSuggestions' ) %] + [% IF ( loggedinusername ) %] + [% IF ( suggested_by_anyone ) %] +

    There are no pending purchase suggestions.

    + [% ELSE %] +

    You have no pending purchase suggestions. View all suggestions

    + [% END %] + [% ELSE %] +

    There are no pending purchase suggestions.

    + [% END %] [% ELSE %] -

    There are no pending purchase suggestions.

    + [% IF ( loggedinusername ) %] +

    You have no pending purchase suggestions.

    + [% ELSE %] +

    You are not authorized to see pending purchase suggestions.

    + [% END %] [% END %] [% IF ( loggedinusername || ( Koha.Preference( 'AnonSuggestions' ) == 1 ) ) %] [% IF ( Koha.Preference('MaxTotalSuggestions') != '' && patrons_total_suggestions_count >= Koha.Preference('MaxTotalSuggestions') ) %] --