Adding ability to return biblios that have no biblio items to avoid making orphan biblios

This commit is contained in:
bob_lyon 2006-09-05 21:26:19 +00:00
parent 212b12972f
commit 976e6d8b5c
1 changed files with 4 additions and 1 deletions

View File

@ -1014,7 +1014,7 @@ sub CatSearch {
my $title = lc($search->{'title'});
if ($type eq 'loose') {
if ($type eq 'loose' || $type eq 'loose_acq') {
if ($search->{'author'} ne ''){
my @key=split(' ',$search->{'author'});
my $count=@key;
@ -1297,6 +1297,9 @@ sub CatSearch {
$subclass=$bibitemdata->{'subclass'};
$publishercode=$bibitemdata->{'publishercode'};
}
if($type eq 'loose_acq'){ # want to return biblio info for biblios that do not have attached biblioitems
$true=1;
}
# print STDERR "$dewey $subclass $publishercode\n";
# FIXME - The Dewey code is a string, not a number.
$dewey=~s/\.*0*$//;