To test:
Try searching by the date of birth using the left filter column. Good luck.
After applying this patch:
You can search using your preferred DateFormat.
Merci bocu
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
use C4::Output qw( output_with_http_headers );
use C4::Utils::DataTables qw( dt_get_params );
use C4::Utils::DataTables::Members qw( search );
+use Koha::DateUtils qw( output_pref dt_from_string );
my $input = new CGI;
my $searchtype = $input->param('searchtype');
my $searchfieldstype = $input->param('searchfieldstype');
+if ( $searchfieldstype eq "dateofbirth" ) {
+ $searchmember = output_pref({dt => dt_from_string($searchmember), dateformat => 'iso', dateonly => 1});
+}
+
# variable information for DataTables (id)
my $sEcho = $input->param('sEcho');