[Koha-bugs] [Bug 20346] Patron filtering resulting in new search rather than filtering existing results

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 7 06:25:32 CET 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20346

--- Comment #1 from Alex Buckley <alexbuckley at catalyst.net.nz> ---
Created attachment 72496
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=72496&action=edit
Bug 20346 - Server side patron filtering implemented

Server side (in the svc/members/search file) perl logic for filtering
results returned from patron searches checks all patron data fields for
a match with the filter value.

This filtering works in the following steps: when filtering is initiated
the original search using the original search query is run again and
then the filter value is used to filter the resulting data, thereby
using both the search and filter values to easily find a patron.

The submitted filter value is automatically checked against
every patron value in every patron record returned from the search and
so there is no need for a specific data value to be
selected with the select dropdown box id=searchfieldstype_filter and so
that select dropdown has been removed due to this redundancy.

This filter works for both filtering based on finding a match containing
the filter value and, filtering based on finding a match starting with
the filter value.

Test plan:
1. Go to /members/members-home.pl and create 4 users. Make them all have
the same first and last name but vary the homebranch, email addresses
and dates of birth

2. Perform a search by writing in the first and last name combination
shared by the 4 users and you should get 4 results

3. Filter by writing in the email adrr

Sponsored-By: Catalyst IT

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list