]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP1655158 Patron Search by Date of Birth user/blake/LP1655158_patron_search_by_date_of_birth
authorblake <blake@mobiusconsortium.org>
Thu, 31 Aug 2017 20:33:17 +0000 (20:33 +0000)
committerblake <blake@mobiusconsortium.org>
Thu, 31 Aug 2017 20:33:17 +0000 (20:33 +0000)
commit335ee2e1ea8e3944cc2409184ec3d1d43ea263ff
treee072ef58d5292d1ee0c877a7659c7f89ad1dc1d9
parentf1e2631e2cf586d906cf9fe0f971274045b8d243
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/share/t_patron_search_form.tt2
Open-ILS/web/js/ui/default/staff/services/patron_search.js
docs/RELEASE_NOTES_NEXT/Circulation/lp1655158_search_by_dob_NOTES.adoc [new file with mode: 0755]