Adding ability to return biblio results from acquisition search that contain no items

- to aviod making orphan biblios
This commit is contained in:
bob_lyon 2006-09-05 21:21:21 +00:00
parent a2163e8f69
commit 212b12972f
1 changed files with 6 additions and 1 deletions

View File

@ -81,6 +81,7 @@ my $input = new CGI;
#whether it is called from the opac of the intranet
my $type = $input->param('type');
my $acq_search = $input->param('acq_search');
if ( $type eq '' ) {
$type = 'intra';
}
@ -145,7 +146,11 @@ elsif ( $search{'front'} ne '' ) {
FrontSearch( undef, 'intra', \%search, $num, $offset );
}
elsif ( $search{'author'} || $search{'title'} ) {
( $count, @results ) = CatSearch( undef, 'loose', \%search, $num, $offset );
if($acq_search == 1){
( $count, @results ) = CatSearch( undef, 'loose_acq', \%search, $num, $offset );
} else {
( $count, @results ) = CatSearch( undef, 'loose', \%search, $num, $offset );
}
}
else {
$invalidsearch = 1;