- branch => $branchlimit,
- total => scalar @$items,
- itemsloop => $items,
- run_report => $run_report
- );
-}
-
-# getting all branches.
-my $branches = GetBranches;
-my $branch = C4::Context->userenv->{"branchname"};
-my @branchloop;
-foreach my $thisbranch ( keys %$branches ) {
- my $selected = 1 if $thisbranch eq $branch;
- my %row = (
- value => $thisbranch,
- selected => $selected,
- branchname => $branches->{$thisbranch}->{'branchname'},
- );
- push @branchloop, \%row;
-}
-
-# getting all itemtypes
-my $itemtypes = &GetItemTypes();
-my @itemtypesloop;
-foreach my $thisitemtype ( sort keys %$itemtypes ) {
- my %row = (
- value => $thisitemtype,
- description => $itemtypes->{$thisitemtype}->{'description'},
+ branchlimit => $branchlimit,
+ total => scalar @$items,
+ itemsloop => $items,
+ run_report => $run_report,