Bug 40593: Restore searchable columns to the suggestions table

This patch adds search functionality to the following columns: Suggester category, Patron reason, Library, Fund, Status.

Test plan:
1) Add some suggestions and navigate to the suggestions page
2) Use the search bar to search for data in any of the columns mentioned above.
3) It will not filter the results based on those columns
4) Apply patch and hard refresh
5) Use the search bar again, this time it should return results

Signed-off-by: Ludovic <ludovic.julien@inlibro.com>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit a1fc548519)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Matt Blenkinsop 2025-08-19 10:27:59 +01:00 committed by Paul Derscheid
parent f39c370980
commit a3c8166dae
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 5 additions and 5 deletions

View File

@ -1387,7 +1387,7 @@
},
{
data: "suggester.category.name",
searchable: false,
searchable: true,
orderable: true,
render: function (data, type, row, meta) {
return escape_str(row.suggester ? row.suggester.category.name : '');
@ -1403,7 +1403,7 @@
},
{
data: "patron_reason",
searchable: false,
searchable: true,
orderable: true,
render: function (data, type, row, meta) {
return escape_str(row._strings.patron_reason.str ? row._strings.patron_reason.str : '');
@ -1463,7 +1463,7 @@
},
{
data: "library.name",
searchable: false,
searchable: true,
orderable: true,
render: function (data, type, row, meta) {
return escape_str(row.library?.name ? row.library.name : '');
@ -1471,7 +1471,7 @@
},
{
data: "fund.name",
searchable: false,
searchable: true,
orderable: true,
render: function (data, type, row, meta) {
return escape_str(row.fund?.name ? row.fund.name : '');
@ -1487,7 +1487,7 @@
},
{
data: "status",
searchable: false,
searchable: true,
orderable: true,
render: function (data, type, row, meta) {
let node = '';