View | Details | Raw Unified | Return to bug 7046
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-renew.tt (-23 / +9 lines)
Lines 38-67 Link Here
38
    <li>
38
    <li>
39
    <label>Subscription length:</label>
39
    <label>Subscription length:</label>
40
    <select name="subtype" id="subtype">
40
    <select name="subtype" id="subtype">
41
        [% FOREACH st IN subtypes %]
41
        [% FOREACH st IN ['numberlength', 'weeklength', 'monthlength'] %]
42
            [% IF st == subtype %]
43
                <option value="issues" selected="selected">
44
            [% ELSE %]
45
                <option value="issues">
46
            [% END %]
42
            [% SWITCH st %]
47
            [% SWITCH st %]
43
                [% CASE 'numberlength'%]
48
                [% CASE 'numberlength'%]issues
44
                    [% IF st == subtype %]
49
                [% CASE 'weeklength'  %]weeks
45
                        <option value="issues" selected="selected">
50
                [% CASE 'monthlength' %]months
46
                    [% ELSE %]
47
                        <option value="issues">
48
                    [% END %]
49
                    issues
50
                [% CASE 'weeklength' %]
51
                    [% IF st == subtype %]
52
                        <option value="weeks" selected="selected">
53
                    [% ELSE %]
54
                        <option value="weeks">
55
                    [% END %]
56
                    weeks
57
                [% CASE 'monthlength' %]
58
                    [% IF st == subtype %]
59
                        <option value="months" selected="selected">
60
                    [% ELSE %]
61
                        <option value="months">
62
                    [% END %]
63
                    months
64
                [% CASE %][% st | html %]
65
            [% END %]
51
            [% END %]
66
            </option>
52
            </option>
67
        [% END %]
53
        [% END %]
(-)a/serials/subscription-renew.pl (-2 lines)
Lines 135-141 my $libraries = Koha::Libraries->search( {}, { order_by => ['branchcode'] }, ); Link Here
135
$template->param(
135
$template->param(
136
    op => $op,
136
    op => $op,
137
    libraries      => $libraries,
137
    libraries      => $libraries,
138
    subtypes => [ qw( numberlength weeklength monthlength ) ],
139
);
138
);
140
139
141
output_html_with_http_headers $query, $cookie, $template->output;
140
output_html_with_http_headers $query, $cookie, $template->output;
142
- 

Return to bug 7046