Bug 33428: (follow-up): Default to searching 'standard' fields

Before this patch set, a search for patrons from article requests or
reserves would search the attributes by default. They were not considered
'standard' searches, however.

This patch simply defaults to searching the 'standard' fields unless a value is passed

To test:
1 - Apply other patches
2 - Have patrons with searchable attributes
3 - From a title, click the holds or artickle requests tab
4 - Search for the attribute values and confirm patrons are not returned
5 - Apply this patch
6 - Search again, patrons are now returned

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Nick Clemens 2023-08-18 11:16:44 +00:00 committed by Tomas Cohen Arazi
parent bfdee70f24
commit 384f9282e1
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -319,7 +319,7 @@
let filters = [];
let search_type = $("#searchtype_filter").val() || "contains";
let search_fields = $("#searchfieldstype_filter").val();
let search_fields = $("#searchfieldstype_filter").val() || "standard";
let pattern = $("#search_patron_filter").val();
filters = buildPatronSearchQuery(