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 $subscriptionid = $query->param('subscriptionid'); |
63 |
my $subscriptionid = $query->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 78-84
if ( $op eq "renew" ) {
Link Here
|
78 |
$subscriptionid, $loggedinuser, |
79 |
$subscriptionid, $loggedinuser, |
79 |
$startdate, $query->param('numberlength'), |
80 |
$startdate, $query->param('numberlength'), |
80 |
$query->param('weeklength'), $query->param('monthlength'), |
81 |
$query->param('weeklength'), $query->param('monthlength'), |
81 |
$query->param('note') |
82 |
$query->param('note'), $branchcode |
82 |
); |
83 |
); |
83 |
} |
84 |
} |
84 |
|
85 |
|
Lines 91-101
if ($subscription->{'cannotedit'}){
Link Here
|
91 |
my $newstartdate = output_pref( { str => $subscription->{enddate}, dateonly => 1 } ) |
92 |
my $newstartdate = output_pref( { str => $subscription->{enddate}, dateonly => 1 } ) |
92 |
or output_pref( { dt => dt_from_string, dateonly => 1 } ); |
93 |
or output_pref( { dt => dt_from_string, dateonly => 1 } ); |
93 |
|
94 |
|
|
|
95 |
my $libraries = Koha::Libraries->search( {}, { order_by => ['branchcode'] }, ); |
96 |
|
94 |
$template->param( |
97 |
$template->param( |
95 |
startdate => $newstartdate, |
98 |
startdate => $newstartdate, |
96 |
numberlength => $subscription->{numberlength}, |
99 |
numberlength => $subscription->{numberlength}, |
97 |
weeklength => $subscription->{weeklength}, |
100 |
weeklength => $subscription->{weeklength}, |
98 |
monthlength => $subscription->{monthlength}, |
101 |
monthlength => $subscription->{monthlength}, |
|
|
102 |
libraries => $libraries, |
99 |
subscriptionid => $subscriptionid, |
103 |
subscriptionid => $subscriptionid, |
100 |
bibliotitle => $subscription->{bibliotitle}, |
104 |
bibliotitle => $subscription->{bibliotitle}, |
101 |
$op => 1, |
105 |
$op => 1, |