From 94dddab40689e06c4c133ca86ee841f5dbe7c0c5 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 15 Jan 2021 11:16:26 +0100 Subject: [PATCH] Bug 27047: Fix suggestions filtering at the OPAC There is a "Search" input box that appears to be broken for... ever? This patch replaces it with the DataTables filtering. Test plan: Create some suggestions, go to your suggestion list at the OPAC Confirm that the filtering now works correctly --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt index c5d8ef650d..929d7094a5 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -288,10 +288,6 @@ [% SET can_delete_suggestion = 0 %]
-
- - -
[% IF Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 %] [% IF loggedinusername %]
@@ -484,6 +480,7 @@ $(function() { $("#suggestt").dataTable($.extend(true, {}, dataTablesDefaults, { "order": [[ 1, "asc" ]], + "dom": '<"top"<"table_entries"><"table_controls"f>>t', "autoWidth": false, "columnDefs": [ [% IF ( loggedinusername ) %]{ "targets": [ 0 ], "sortable": false, "searchable": false }[% END %] -- 2.20.1