Adding the facility to search on just dewey and class
authorrangi <rangi>
Fri, 23 Nov 2001 02:12:48 +0000 (02:12 +0000)
committerrangi <rangi>
Fri, 23 Nov 2001 02:12:48 +0000 (02:12 +0000)
C4/Search.pm

index 6a52090..5d3b8ad 100755 (executable)
@@ -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