Adding a few more search options

This commit is contained in:
rangi 2006-03-06 04:58:16 +00:00
parent c17b17f957
commit b28675d959

View file

@ -228,7 +228,12 @@ sub catalogsearch {
$query .= "Title all \"".@$value[$i]."\"";
} elsif ($field eq 'biblioitems.isbn') {
$query .= "Isbn= ".@$value[$i];
} elsif ($field eq 'bibliosubject.subject'){
$query.="Subject all \"@$value[$i]\"";
} elsif ($field eq 'biblioitems.itemtype'){
$query="Itemtype=@$value[$i]";
} else {
warn $field;
my @spacedout=split(/ /,@$value[$i]);
my $text = join(" and ",@spacedout);
$query .= "$text";