]> git.koha-community.org Git - koha.git/commit
Bug 16316 - Limit patron search to surname
authorMagnus Enger <magnus@libriotech.no>
Thu, 21 Apr 2016 12:58:11 +0000 (14:58 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 29 Apr 2016 15:53:24 +0000 (15:53 +0000)
commit9060c5275fb9bab226f33cbb7414caedfcee3e20
tree292a2ad379184ef9d8252065abd1f4f83735f638
parent6d7aa51a401b9a427ac143e53a8f898c15065eb6
Bug 16316 - Limit patron search to surname

This patch makes it possible to limit a patron search to
search just for surnames.

To test:
- Apply the patch
- Add two patrons, called e.g. "John Doe" and "Doe John"
- Go to Patrons in the Intranet
- Make sure you have selected "Search fields" = Standard
- Search for "john" and verify both patrons show up
- Search for "doe" and verify both patrons show up
- Set "Search fields" = Surname and search for "john".
  "Doe John" should show up, but not "John Doe".
- Set "Search fields" = Surname and search for "doe".
  "John Doe" should show up, but not "Doe John".

Update: Revised the last point in the test plan.

Sponsored-by: Alingsås Public Library, Sweden
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Utils/DataTables/Members.pm
koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc
koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt