#use DBI;
use C4::Search;
use C4::Output;
+use C4::Auth;
use C4::Reserves2;
use C4::Biblio;
use C4::Koha;
my $branch = $input->cookie('branch');
($branch) || ($branch = 'L');
my $branches = getbranches();
-my $branchoptions = branchoptions($branch);
# make branch selection options...
my @branchloop;
foreach my $br (keys %$branches) {
$reserve{'barcode'}=$item->{'barcode'};
$reserve{'biblionumber'}=$item->{'biblionumber'};
$reserve{'wbrcode'} = $res->{'branchcode'};
- $reserve{'wbrname'} = $branches->{$wbrcd}->{'branchname'};
+ $reserve{'wbrname'} = $branches->{$res->{'branchcode'}}->{'branchname'};
}
$reserve{'date'} = slashifyDate($res->{'reservedate'});
$reserve{'borrowernumber'}=$res->{'borrowernumber'};