diff --git a/circ/circulation.pl b/circ/circulation.pl index 828ed8941a..d42be298e8 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -250,6 +250,7 @@ if ($findborrower) { my $results = C4::Utils::DataTables::Members::search( { searchmember => $findborrower, + searchtype => 'contain', dt_params => $dt_params, } ); diff --git a/circ/ysearch.pl b/circ/ysearch.pl index 518915fec0..74e14ee503 100755 --- a/circ/ysearch.pl +++ b/circ/ysearch.pl @@ -57,8 +57,8 @@ foreach my $p (@parts) { push( @params, -or => [ - surname => { -like => "$p%" }, - firstname => { -like => "$p%" }, + surname => { -like => "%$p%" }, + firstname => { -like => "%$p%" }, cardnumber => { -like => "$p%" }, ] );