From 415d5ac3bb18c9156a146522332c4af539560e1a Mon Sep 17 00:00:00 2001 From: Daniel Sweeney Date: Wed, 25 Mar 2009 16:37:17 -0500 Subject: [PATCH] Added barcode query back to circ/ysearch.pl for patron proxies. This is to allow patron proxy relationships to be built using the patron barcode. Signed-off-by: Daniel Sweeney Signed-off-by: Galen Charlton --- circ/ysearch.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/circ/ysearch.pl b/circ/ysearch.pl index cdd2530f9a..136ca76f7b 100755 --- a/circ/ysearch.pl +++ b/circ/ysearch.pl @@ -45,10 +45,11 @@ my $sql = qq(SELECT surname, firstname, cardnumber, address, city, zipcode FROM borrowers WHERE surname LIKE ? OR firstname LIKE ? + OR cardnumber LIKE ? ORDER BY surname, firstname); - #"OR cardnumber LIKE '" . $query . "%' " . my $sth = $dbh->prepare( $sql ); -$sth->execute("$query%", "$query%"); +$sth->execute("$query%", "$query%", "$query%"); + while ( my $rec = $sth->fetchrow_hashref ) { print $rec->{surname} . ", " . $rec->{firstname} . "\t" . $rec->{cardnumber} . "\t" . -- 2.39.5