61 |
# Find the borrower by his userid or email |
61 |
# Find the borrower by userid, card number, or email |
63 |
$search_results = [ Koha::Patrons->search( { userid => $username } ) ]; |
63 |
$search_results = [ Koha::Patrons->search( { -or => { userid => $username, cardnumber => $username } } ) ]; |
64 |
$resultCount = Koha::Patrons->search( { userid => $username } ) -> count |
64 |
$resultCount = Koha::Patrons->search( { -or => { userid => $username, cardnumber => $username } } ) -> count |
67 |
$search_results = [ Koha::Patrons->search( { -or => { email => $email, emailpro => $email, B_email => $email } } ) ]; |
67 |
$search_results = [ Koha::Patrons->search( { -or => { email => $email, emailpro => $email, B_email => $email } } ) ]; |