Bug 6773: circ/ysearch.pl is unlimited

Added a LIMIT 10 to the SQL statement
Edited the circulation.pref stating that autocomplete returns the first 10 results at a time

Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Joy Nelson 2011-09-22 22:36:48 -04:00 committed by Chris Cormack
parent 04b413623b
commit 38ca8d6de1
2 changed files with 3 additions and 1 deletions

View File

@ -47,7 +47,8 @@ my $sql = qq(SELECT surname, firstname, cardnumber, address, city, zipcode, coun
WHERE surname LIKE ?
OR firstname LIKE ?
OR cardnumber LIKE ?
ORDER BY surname, firstname);
ORDER BY surname, firstname
LIMIT 10);
my $sth = $dbh->prepare( $sql );
$sth->execute("$query%", "$query%", "$query%");

View File

@ -7,6 +7,7 @@ Circulation:
yes: Try
no: "Don't try"
- to guess the patron being entered while typing a patron search on the circulation screen.
- Only returns the first 10 results at a time.
-
- pref: itemBarcodeInputFilter
choices: