Adding the facility to search on just dewey and class

This commit is contained in:
rangi 2001-11-23 02:12:48 +00:00
parent 3e37c422fc
commit 501cc61c85
1 changed files with 3 additions and 0 deletions

View File

@ -485,6 +485,9 @@ sub CatSearch {
if ($search->{'illustrator'} ne ''){
$query.=" and illus like '%".$search->{'illustrator'}."%' ";
}
if ($search->{'dewey'} ne ''){
$query.=" and biblioitems.dewey like '$search->{'dewey'}%'";
}
} elsif ($search->{'dewey'} ne ''){
$query="select * from biblioitems,biblio
where biblio.biblionumber=biblioitems.biblionumber