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 <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 63c49e1f89)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
3a841a3a74
commit
5fdfed6747
|
|
@ -288,10 +288,6 @@
|
|||
[% SET can_delete_suggestion = 0 %]
|
||||
<form action="/cgi-bin/koha/opac-suggestions.pl" class="form-inline" id="search_suggestions_form" method="get">
|
||||
<div class="form-row">
|
||||
<div class="col-auto my-1">
|
||||
<label class="sr-only" for="title">Search for:</label>
|
||||
<input class="form-control form-control-sm" type="text" name="title" placeholder="Search suggestions" id="title" value="[% title | html %]" />
|
||||
</div>
|
||||
[% IF Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 %]
|
||||
[% IF loggedinusername %]
|
||||
<div class="col-auto my-1">
|
||||
|
|
@ -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 %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue