[Koha-bugs] [Bug 24017] Search for year of birth

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 23 13:41:24 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24017

Nick Clemens <nick at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick at bywatersolutions.com

--- Comment #1 from Nick Clemens <nick at bywatersolutions.com> ---
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     }

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list