@@ -, +, @@ suggestions - Set the OPACViewOthersSuggestions preference to "Show" - Log in to the OPAC as a user who hasn't submitted any suggestions - Go to the suggestions page (with "?suggested_by_anyone=1" appended to the URL if necessary, see Bug 22515). - In the table of suggetions, there should be no titles with a checkbox in the first column. - At the bottom of the table there should be no "Delete selected" button. - Log in to the OPAC as a user with suggestions. - Return to the suggestions page and view all suggestions. - There should be titles with corresponding checkboxes and the "Delete selected" button should appear at the bottom. --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -256,6 +256,7 @@ [% IF ( deleted ) %]
The selected suggestions have been deleted.
[% END %] [% IF ( suggestions_loop ) %] + [% SET can_delete_suggestion = 0 %]
@@ -321,6 +322,7 @@ [% IF ( loggedinusername ) %] [% IF ( suggestions_loo.showcheckbox ) %] + [% SET can_delete_suggestion = 1 %] [% END %] @@ -386,7 +388,7 @@ - [% IF ( loggedinusername ) %] + [% IF ( loggedinusername && can_delete_suggestion ) %]
--