- $shelvesloop{$shelf->{shelfnumber}} = $shelf->{shelfname};
- }
- if(@shelvesloop gt 0){
- my $CGIvirtualshelves = CGI::scrolling_list(
- -name => 'shelfnumber',
- -values => \@shelvesloop,
- -labels => \%shelvesloop,
- -size => 1,
- -tabindex => '',
- -multiple => 0
- );
- $template->param(
- CGIvirtualshelves => $CGIvirtualshelves,
- );
- }
-
- $template->param(
- biblionumber => $biblionumber,
- title => $biblios[0]->{'title'},
- author => $biblios[0]->{'author'},
- );
-
+ $shelvesloop{$shelf->{shelfnumber}} = $shelf->{shelfname};
+ }
+ if(@shelvesloop gt 0){
+ my $CGIvirtualshelves = CGI::scrolling_list
+ (
+ -name => 'shelfnumber',
+ -values => \@shelvesloop,
+ -labels => \%shelvesloop,
+ -size => 1,
+ -tabindex => '',
+ -multiple => 0
+ );
+ $template->param
+ (
+ CGIvirtualshelves => $CGIvirtualshelves,
+ );
+ }
+
+ unless ($biblionumbers) {
+ my ( $bibliocount, @biblios ) = GetBiblio($biblionumber);
+
+ $template->param
+ (
+ biblionumber => $biblionumber,
+ title => $biblios[0]->{'title'},
+ author => $biblios[0]->{'author'},
+ );
+ } else {
+ my @biblioloop = ();
+ foreach my $biblionumber (@biblionumbers) {
+ my ( $bibliocount, @biblios ) = GetBiblio($biblionumber);
+ my %biblioiter = (
+ title=>$biblios[0]->{'title'},
+ author=>$biblios[0]->{'author'}
+ );
+ push @biblioloop, \%biblioiter;
+ }
+ $template->param
+ (
+ biblioloop => \@biblioloop,
+ biblionumbers => $biblionumbers
+ );
+ }
+