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

--- Comment #4 from David Nind <[email protected]> ---
Created attachment 201116
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201116&action=edit
Bug 42915: Fix holds table filtering by patron name and cardnumber

This patch adds a new searchData attribute to the patron column
definition for the holds table. The data attribute needs to be
the cardnumber for the API to work, so this allows searching on multiple
fields.

It modifies datatables.js build_query() function to use searchData if it exists
or else it falls back to using the data attribute.

To test:
1. Have holds on a bib for different patrons and pickup locations
2. Try filtering by a patron name or pickup location
3. See 'No matching records found'
4. Apply patch and repeat step 2
5. Filtering by patron name works!
6. Confirm filtering by cardnumber still works too

Sponsored-by: CLAMS
Signed-off-by: David Nind <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to