From 1e842a8e64ff0a52761cf2b2961a9a5380ac1274 Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Tue, 15 Sep 2009 16:01:31 +0200 Subject: [PATCH] Bug Fixing 3631 --- virtualshelves/addbybiblionumber.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/virtualshelves/addbybiblionumber.pl b/virtualshelves/addbybiblionumber.pl index 623d1d628f..fd3c2d6d44 100755 --- a/virtualshelves/addbybiblionumber.pl +++ b/virtualshelves/addbybiblionumber.pl @@ -80,7 +80,7 @@ sub AddBibliosToShelf { my $query = new CGI; # If set, then single item case. -my @biblionumber = $query->param('biblionumber'); +my $biblionumber = $query->param('biblionumber'); # If set, then multiple item case. @@ -88,6 +88,7 @@ my $biblionumbers = $query->param('biblionumbers'); my $shelfnumber = $query->param('shelfnumber'); my $newvirtualshelf = $query->param('newvirtualshelf'); my $category = $query->param('category'); +my $confirmed = $query->param('confirmed'); my $sortfield = $query->param('sortfield'); my ( $template, $loggedinuser, $cookie ) = get_template_and_user( @@ -104,14 +105,14 @@ my @biblionumbers; if ($biblionumbers) { @biblionumbers = split '/', $biblionumbers; } else { - @biblionumbers = ($biblionumber); + @biblionumbers = (@biblionumber); } $shelfnumber = AddShelf( $newvirtualshelf, $loggedinuser, $category, $sortfield ) if $newvirtualshelf; if ( $shelfnumber || ( $shelfnumber == -1 ) ) { # the shelf already exist. if ($confirmed == 1) { - AddBibliosToShelf($shelfnumber,@biblionumber); + AddBibliosToShelf($shelfnumber,@biblionumbers); print "Content-Type: text/html\n\n"; exit; -- 2.39.5