Improving Research on Bookseller

Can search now on any word
This commit is contained in:
Henri-Damien LAURENT 2009-10-06 11:56:00 +02:00
parent e993079c1e
commit 032ac3fa54
1 changed files with 2 additions and 2 deletions

View File

@ -69,9 +69,9 @@ aqbooksellers table in the Koha database.
sub GetBookSeller($) {
my ($searchstring) = @_;
my $dbh = C4::Context->dbh;
my $query = "SELECT * FROM aqbooksellers WHERE name LIKE ?";
my $query = "SELECT * FROM aqbooksellers WHERE name LIKE ? ";
my $sth =$dbh->prepare($query);
$sth->execute( "$searchstring%" );
$sth->execute( "%$searchstring%");
my @results;
# count how many baskets this bookseller has.
# if it has none, the bookseller can be deleted