View | Details | Raw Unified | Return to bug 22515
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (-4 / +2 lines)
Lines 309-318 Link Here
309
                                    [% IF Koha.Preference( 'OpacTopissue' ) == 1 %]<li><a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a></li>[% END %]
309
                                    [% IF Koha.Preference( 'OpacTopissue' ) == 1 %]<li><a href="/cgi-bin/koha/opac-topissues.pl">Most popular</a></li>[% END %]
310
                                    [% IF Koha.Preference('SearchEngine') == 'Elasticsearch' && Koha.Preference( 'OpacBrowseSearch' ) == 1 %]<li><a href="/cgi-bin/koha/opac-browse.pl">Browse search</a></li>[% END %]
310
                                    [% IF Koha.Preference('SearchEngine') == 'Elasticsearch' && Koha.Preference( 'OpacBrowseSearch' ) == 1 %]<li><a href="/cgi-bin/koha/opac-browse.pl">Browse search</a></li>[% END %]
311
                                    [% IF Koha.Preference( 'suggestion' ) == 1 %]
311
                                    [% IF Koha.Preference( 'suggestion' ) == 1 %]
312
                                        [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
312
                                        [% IF Koha.Preference( 'AnonSuggestions' ) == 1 || Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 %]
313
                                            <li><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a></li>
313
                                            <li><a href="/cgi-bin/koha/opac-suggestions.pl?suggested_by_anyone=1">Purchase suggestions</a></li>
314
                                        [% ELSIF ( ( Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 ) ) %]
315
                                            <li><a href="/cgi-bin/koha/opac-suggestions.pl">Purchase suggestions</a></li>
316
                                        [% END %]
314
                                        [% END %]
317
                                    [% END %]
315
                                    [% END %]
318
                                    [% Koha.Preference('OpacMoreSearches') | $raw %]
316
                                    [% Koha.Preference('OpacMoreSearches') | $raw %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt (-4 / +15 lines)
Lines 393-402 Link Here
393
                                    [% END %]
393
                                    [% END %]
394
                                </form>
394
                                </form>
395
                            [% ELSE %]
395
                            [% ELSE %]
396
                                [% UNLESS Koha.Preference( 'OPACViewOthersSuggestions' ) or loggedinusername %]
396
                                [% IF Koha.Preference( 'OPACViewOthersSuggestions' ) %]
397
                                    <p>You are not authorized to see pending purchase suggestions.</p>
397
                                    [% IF ( loggedinusername ) %]
398
                                        [% IF ( suggested_by_anyone ) %]
399
                                            <p>There are no pending purchase suggestions.</p>
400
                                        [% ELSE %]
401
                                            <p>You have no pending purchase suggestions. <a href="/cgi-bin/koha/opac-suggestions.pl?suggested_by_anyone=1">View all suggestions</a></p>
402
                                        [% END %]
403
                                    [% ELSE %]
404
                                        <p>There are no pending purchase suggestions.</p>
405
                                    [% END %]
398
                                [% ELSE %]
406
                                [% ELSE %]
399
                                    <p>There are no pending purchase suggestions.</p>
407
                                    [% IF ( loggedinusername ) %]
408
                                        <p>You have no pending purchase suggestions.</p>
409
                                    [% ELSE %]
410
                                        <p>You are not authorized to see pending purchase suggestions.</p>
411
                                    [% END %]
400
                                [% END %]
412
                                [% END %]
401
                                [% IF ( loggedinusername || ( Koha.Preference( 'AnonSuggestions' ) == 1 ) ) %]
413
                                [% IF ( loggedinusername || ( Koha.Preference( 'AnonSuggestions' ) == 1 ) ) %]
402
                                    [% IF ( Koha.Preference('MaxTotalSuggestions') != ''  && patrons_total_suggestions_count >= Koha.Preference('MaxTotalSuggestions') ) %]
414
                                    [% IF ( Koha.Preference('MaxTotalSuggestions') != ''  && patrons_total_suggestions_count >= Koha.Preference('MaxTotalSuggestions') ) %]
403
- 

Return to bug 22515