LP1655158 Patron Search by Date of Birth
authorblake <blake@mobiusconsortium.org>
Wed, 9 Aug 2017 14:28:41 +0000 (14:28 +0000)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 18 Sep 2017 00:13:20 +0000 (20:13 -0400)
commitfc2cd9bfeb9a1ef73cda5402c1332899daec85f7
tree632f590ef324bb1cb34342969559b8296cd69520
parent45b35ac9e355643d45bb390b08a45458583d1167
LP1655158 Patron Search by Date of Birth

Adds three UI boxes to the WBSC "Show Extra" patron search. One for the year, month and day.
The javascript on the page is altered to deliver group "4" to the backend. Local javascript
strips out non-numeric user entered data. The backend is updated to handle the new group.
SQL is genereated using the DATE_PART postgres function.

1. Open the web based staff client and browse to the patron search UI.
2. Click the show more down arrow button. Notice the lack of birth date field.
3. Apply the patch, repeat step one. Notice the addition of birth date boxes.
4. Type 1975 into the birth year box and press enter. Notice search results.
5. Try searching for partial names and partial birthdates.
6. Try entering non-numeric data into the birth date boxes.
7. Try searching for patrons without including the dob. Try with only the dob. Try a mix.

Signed-off-by: blake <blake@mobiusconsortium.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm
Open-ILS/src/templates/staff/circ/patron/t_search.tt2
Open-ILS/web/js/ui/default/staff/circ/patron/app.js