Fixes isbn search in opac -- it seems that '-' is stripped out in

marc_word table so if a query includes the - it failed previously.
This commit ensure that - is stripped out of the query before submitting.
This commit is contained in:
kados 2006-03-04 06:33:54 +00:00
parent 09d4a8d2aa
commit 4d706df54f
1 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,10 @@ if ($op eq "do_search") {
my $desc_or_asc = $query->param('desc_or_asc');
my $exactsearch = $query->param('exact');
for (my $i=0;$i<=$#marclist;$i++) {
if ($marclist[$i] eq "biblioitems.isbn") {
$value[$i] =~ s/-//g;
}
if ($searchdesc) { # don't put the and_or on the 1st search term
$searchdesc .= $and_or[$i].$excluding[$i]." ".($marclist[$i]?$marclist[$i]:"* ")." ".$operator[$i]." ".$value[$i]." " if ($value[$i]);
} else { $searchdesc = $excluding[$i].($marclist[$i]?$marclist[$i]:"* ")." ".$operator[$i]." ".$value[$i]." " if ($value[$i]);