]> git.koha-community.org Git - koha.git/commit
bug_6253: Unified member Search()
authorSrdjan Jankovic <srdjan@catalyst.net.nz>
Thu, 22 Sep 2011 14:43:12 +0000 (09:43 -0500)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Tue, 25 Oct 2011 23:32:30 +0000 (19:32 -0400)
commita82959ed04aa15bb8bf1c56ed0f384885ba39f90
treee7b2e36361a1c11379a9f83faec93fb18d4e8aa1
parent1c0334d0fa24caeddfa1342d6c0d7f770ac3880f
bug_6253: Unified member Search()

Removed SearchMembers() and replaced with more generic Search()
Amended Search() to try cardnumber first
Replaced SearchMembers() calls with Search()
Replaced SELECT with Search() where appropriate
C4::SQLHelper:
- added support for '' key for search filter.
- when passing an array to filter, join with OR (rather than AND)
- added support for key => [val1, val2] in filter
- did not document - there was no input documentation to start with,
  and SQLHelper should be replaced with something better anyway

Signed-off-by: Liz Rea <lrea@nekls.org>
(again - testing merge issue)
The functionality of the patch seems to be maintained with Biblibre's changes.

I tested the following:
Extended attribute searching: works
3 part name searching: works
2 part name searching: works
1 part name searching: works

From:
mainpage.pl
members-home.pl
Patron search limited by branch: Works
Patron search limited by patron category: works
Ordering by cardnumber instead of surname: works
The "Check Out" field in the masthead.

Circ Autocomplete is not reliably functional at this time, but the problem appears to predate this patch.
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 18b8991cf1832a0ee79a526e6438b51fdb4f3208)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
13 files changed:
C4/Members.pm
C4/Members/Attributes.pm
C4/SQLHelper.pm
admin/aqbudget_owner_search.pl
circ/circulation.pl
circ/ysearch.pl
members/guarantor_search.pl
members/member.pl
patroncards/members-search.pl
reserve/request.pl
t/db_dependent/Koha.t
t/db_dependent/Members.t
t/db_dependent/lib/KohaTest/Members.pm