Lines 62-67
my $dbh = C4::Context->dbh;
Link Here
|
62 |
my $mode = $query->param('mode') || q{}; |
62 |
my $mode = $query->param('mode') || q{}; |
63 |
my $op = $query->param('op') || 'display'; |
63 |
my $op = $query->param('op') || 'display'; |
64 |
my $subscriptionid = $query->param('subscriptionid'); |
64 |
my $subscriptionid = $query->param('subscriptionid'); |
|
|
65 |
my $branchcode = $query->param('branchcode'); |
65 |
my $done = 0; # for after form has been submitted |
66 |
my $done = 0; # for after form has been submitted |
66 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
67 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
67 |
{ |
68 |
{ |
Lines 79-85
if ( $op eq "renew" ) {
Link Here
|
79 |
$subscriptionid, $loggedinuser, |
80 |
$subscriptionid, $loggedinuser, |
80 |
$startdate, $query->param('numberlength'), |
81 |
$startdate, $query->param('numberlength'), |
81 |
$query->param('weeklength'), $query->param('monthlength'), |
82 |
$query->param('weeklength'), $query->param('monthlength'), |
82 |
$query->param('note') |
83 |
$query->param('note'), $branchcode |
83 |
); |
84 |
); |
84 |
} |
85 |
} |
85 |
|
86 |
|
Lines 92-102
if ($subscription->{'cannotedit'}){
Link Here
|
92 |
my $newstartdate = output_pref( { str => $subscription->{enddate}, dateonly => 1 } ) |
93 |
my $newstartdate = output_pref( { str => $subscription->{enddate}, dateonly => 1 } ) |
93 |
or output_pref( { dt => dt_from_string, dateonly => 1 } ); |
94 |
or output_pref( { dt => dt_from_string, dateonly => 1 } ); |
94 |
|
95 |
|
|
|
96 |
my $libraries = Koha::Libraries->search( {}, { order_by => ['branchcode'] }, ); |
97 |
|
95 |
$template->param( |
98 |
$template->param( |
96 |
startdate => $newstartdate, |
99 |
startdate => $newstartdate, |
97 |
numberlength => $subscription->{numberlength}, |
100 |
numberlength => $subscription->{numberlength}, |
98 |
weeklength => $subscription->{weeklength}, |
101 |
weeklength => $subscription->{weeklength}, |
99 |
monthlength => $subscription->{monthlength}, |
102 |
monthlength => $subscription->{monthlength}, |
|
|
103 |
libraries => $libraries, |
100 |
subscriptionid => $subscriptionid, |
104 |
subscriptionid => $subscriptionid, |
101 |
bibliotitle => $subscription->{bibliotitle}, |
105 |
bibliotitle => $subscription->{bibliotitle}, |
102 |
$op => 1, |
106 |
$op => 1, |