Lines 61-66
my $dbh = C4::Context->dbh;
Link Here
|
61 |
my $mode = $query->param('mode') || q{}; |
61 |
my $mode = $query->param('mode') || q{}; |
62 |
my $op = $query->param('op') || 'display'; |
62 |
my $op = $query->param('op') || 'display'; |
63 |
my @subscriptionids = $query->multi_param('subscriptionid'); |
63 |
my @subscriptionids = $query->multi_param('subscriptionid'); |
|
|
64 |
my $branchcode = $query->param('branchcode'); |
64 |
my $done = 0; # for after form has been submitted |
65 |
my $done = 0; # for after form has been submitted |
65 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
66 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
66 |
{ |
67 |
{ |
Lines 83-89
if ( $op eq "renew" ) {
Link Here
|
83 |
$subscriptionid, $loggedinuser, |
84 |
$subscriptionid, $loggedinuser, |
84 |
$startdate, scalar $query->param('numberlength'), |
85 |
$startdate, scalar $query->param('numberlength'), |
85 |
scalar $query->param('weeklength'), scalar $query->param('monthlength'), |
86 |
scalar $query->param('weeklength'), scalar $query->param('monthlength'), |
86 |
scalar $query->param('note') |
87 |
scalar $query->param('note'), $branchcode |
87 |
); |
88 |
); |
88 |
} elsif ( $op eq 'multi_renew' ) { |
89 |
} elsif ( $op eq 'multi_renew' ) { |
89 |
for my $subscriptionid ( @subscriptionids ) { |
90 |
for my $subscriptionid ( @subscriptionids ) { |
Lines 113-120
if ( $op eq "renew" ) {
Link Here
|
113 |
); |
114 |
); |
114 |
} |
115 |
} |
115 |
|
116 |
|
|
|
117 |
my $libraries = Koha::Libraries->search( {}, { order_by => ['branchcode'] }, ); |
118 |
|
116 |
$template->param( |
119 |
$template->param( |
117 |
op => $op, |
120 |
op => $op, |
|
|
121 |
libraries => $libraries, |
118 |
); |
122 |
); |
119 |
|
123 |
|
120 |
output_html_with_http_headers $query, $cookie, $template->output; |
124 |
output_html_with_http_headers $query, $cookie, $template->output; |