From 5fdfed6747a36f3dea12fa80e8663dce7a27be30 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 Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart (cherry picked from commit 63c49e1f89c298d6b385729fbfd9d30c7674a33a) Signed-off-by: Fridolin Somers --- 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.39.5