| Summary: | Search for year of birth | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Christian Stelzenmüller <christian.stelzenmueller> |
| Component: | Patrons | Assignee: | Bugs List <koha-bugs> |
| Status: | NEW --- | QA Contact: | Testopia <testopia> |
| Severity: | enhancement | ||
| Priority: | P5 - low | CC: | gmcharlt, kyle, nick |
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Patch complexity: | --- |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: | ||
| Circulation function: | |||
|
Description
Christian Stelzenmüller
2019-11-12 14:35:56 UTC
You can add date of birth to the search form, however, if you try simply searching by year the search is returned empty
C4::Utils::DataTables::Members->Search
66 if ( $searchfieldstype eq 'dateofbirth' ) {
67 # Return an empty list if the date of birth is not correctly formatted
68 $searchmember = eval { output_pref( { str => $searchmember, dateformat => 'iso', dateonly => 1 } ); };
69 if ( $@ or not $searchmember ) {
70 return {
71 iTotalRecords => $iTotalRecords,
72 iTotalDisplayRecords => 0,
73 patrons => [],
74 };
75 }
76 }
|