diff --git a/circ/selectbranchprinter.pl b/circ/selectbranchprinter.pl index 2e51c22cfd..7c31db3ab0 100644 --- a/circ/selectbranchprinter.pl +++ b/circ/selectbranchprinter.pl @@ -22,7 +22,9 @@ use strict; use CGI qw/:standard/; use C4::Circulation::Circ2; use C4::Output; +use C4::Auth; use C4::Print; +use HTML::Template; use DBI; @@ -68,87 +70,62 @@ $env{'queue'}=$printer; # set up select options.... my $branchcount=0; my $printercount=0; -my $branchoptions; -my $printeroptions; +my @branchloop; foreach (keys %$branches) { (next) unless ($_); (next) unless ($branches->{$_}->{'IS'}); $branchcount++; - my $selected=''; - ($selected='selected') if ($_ eq $oldbranch); - $branchoptions.="