[Koha-patches] [PATCH] Added barcode query back to circ/ysearch.pl for patron proxies.
Daniel Sweeney
daniel.sweeney at liblime.com
Wed Mar 25 22:37:17 CET 2009
This is to allow patron proxy relationships to be built using the patron barcode.
Signed-off-by: Daniel Sweeney <daniel.sweeney at liblime.com>
---
circ/ysearch.pl | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/circ/ysearch.pl b/circ/ysearch.pl
index ec20307..d99faac 100755
--- a/circ/ysearch.pl
+++ b/circ/ysearch.pl
@@ -45,10 +45,11 @@ my $sql = qq(SELECT surname, firstname, cardnumber, address, city, zipcode, borr
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" .
--
1.5.6.5
More information about the Koha-patches
mailing list