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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/localizer.inc (-8 / +93 lines)
Lines 1-21 Link Here
1
[%~ BLOCK localize_numbering_pattern_season ~%]
1
[%~ BLOCK localize_numbering_pattern_season ~%]
2
    [%~ IF ( matches = season.match('(.*)Spring(.*)') ) ~%]
2
    [%~ IF ( matches = season.match('(.*)Spring(.*)') ) ~%]
3
        [%~ matches.0 | html ~%]Spring[%~ matches.1 | html ~%]
3
        [%~ matches.0 | html ~%]<span>Spring</span>[%~ matches.1 | html ~%]
4
    [%~ ELSIF ( matches = season.match('(.*)Summer(.*)') ) ~%]
4
    [%~ ELSIF ( matches = season.match('(.*)Summer(.*)') ) ~%]
5
        [%~ matches.0 | html ~%]Summer[%~ matches.1 | html ~%]
5
        [%~ matches.0 | html ~%]<span>Summer</span>[%~ matches.1 | html ~%]
6
    [%~ ELSIF ( matches = season.match('(.*)Fall(.*)') ) ~%]
6
    [%~ ELSIF ( matches = season.match('(.*)Fall(.*)') ) ~%]
7
        [%~ matches.0 | html ~%]Fall[%~ matches.1 | html ~%]
7
        [%~ matches.0 | html ~%]<span>Fall</span>[%~ matches.1 | html ~%]
8
    [%~ ELSIF ( matches = season.match('(.*)Winter(.*)') ) ~%]
8
    [%~ ELSIF ( matches = season.match('(.*)Winter(.*)') ) ~%]
9
        [%~ matches.0 | html ~%]Winter[%~ matches.1 | html ~%]
9
        [%~ matches.0 | html ~%]<span>Winter</span>[%~ matches.1 | html ~%]
10
    [%~ ELSIF ( matches = season.match('(.*)Spr(.*)') ) ~%]
10
    [%~ ELSIF ( matches = season.match('(.*)Spr(.*)') ) ~%]
11
        [%~ matches.0 | html ~%]Spr[%~ matches.1 | html ~%]
11
        [%~ matches.0 | html ~%]<span>Spr</span>[%~ matches.1 | html ~%]
12
    [%~ ELSIF ( matches = season.match('(.*)Sum(.*)') ) ~%]
12
    [%~ ELSIF ( matches = season.match('(.*)Sum(.*)') ) ~%]
13
        [%~ matches.0 | html ~%]Sum[%~ matches.1 | html ~%]
13
        [%~ matches.0 | html ~%]<span>Sum</span>[%~ matches.1 | html ~%]
14
    [%~ ELSIF ( matches = season.match('(.*)Fal(.*)') ) ~%]
14
    [%~ ELSIF ( matches = season.match('(.*)Fal(.*)') ) ~%]
15
        [%~ matches.0 | html ~%]Fal[%~ matches.1 | html ~%]
15
        [%~ matches.0 | html ~%]<span>Fal</span>[%~ matches.1 | html ~%]
16
    [%~ ELSIF ( matches = season.match('(.*)Win(.*)') ) ~%]
16
    [%~ ELSIF ( matches = season.match('(.*)Win(.*)') ) ~%]
17
        [%~ matches.0 | html ~%]Win[%~ matches.1 | html ~%]
17
        [%~ matches.0 | html ~%]<span>Win</span>[%~ matches.1 | html ~%]
18
    [%~ ELSE ~%]
18
    [%~ ELSE ~%]
19
        [%~ season | html ~%]
19
        [%~ season | html ~%]
20
    [%~ END ~%]
20
    [%~ END ~%]
21
[%~ END ~%]
21
[%~ END ~%]
22
[%~ BLOCK localize_numbering_pattern_season_input ~%]
23
    [%~ IF ( matches = season.match('(.*)Spring(.*)') ) ~%]
24
        <input class="numbering_parts serial_id_[% serialid | html %]" type="text" value="[%~ matches.0 | html ~%]" />
25
        [% PROCESS localize_numbering_pattern_season_dropdown cur_season => 'Spring' %]
26
        <input class="numbering_parts serial_id_[% serialid | html %]" type="text" value="[%~ matches.1 | html ~%]" />
27
    [%~ ELSIF ( matches = season.match('(.*)Summer(.*)') ) ~%]
28
        <input class="numbering_parts serial_id_[% serialid | html %]" type="text" value="[%~ matches.0 | html ~%]" />
29
        [% PROCESS localize_numbering_pattern_season_dropdown cur_season => 'Summer' %]
30
        <input class="numbering_parts serial_id_[% serialid | html %]" type="text" value="[%~ matches.1 | html ~%]" />
31
    [%~ ELSIF ( matches = season.match('(.*)Fall(.*)') ) ~%]
32
        <input class="numbering_parts serial_id_[% serialid | html %]" type="text" value="[%~ matches.0 | html ~%]" />
33
        [% PROCESS localize_numbering_pattern_season_dropdown cur_season => 'Fall' %]
34
        <input class="numbering_parts serial_id_[% serialid | html %]" type="text" value="[%~ matches.1 | html ~%]" />
35
    [%~ ELSIF ( matches = season.match('(.*)Winter(.*)') ) ~%]
36
        <input class="numbering_parts serial_id_[% serialid | html %]" type="text" value="[%~ matches.0 | html ~%]" />
37
        [% PROCESS localize_numbering_pattern_season_dropdown cur_season => 'Winter' %]
38
        <input class="numbering_parts serial_id_[% serialid | html %]" type="text" value="[%~ matches.1 | html ~%]" />
39
    [%~ ELSIF ( matches = season.match('(.*)Spr(.*)') ) ~%]
40
        <input class="numbering_parts serial_id_[% serialid | html %]" type="text" value="[%~ matches.0 | html ~%]" />
41
        [% PROCESS localize_numbering_pattern_season_dropdown_abrv cur_season => 'Spr' %]
42
        <input class="numbering_parts serial_id_[% serialid | html %]" type="text" value="[%~ matches.1 | html ~%]" />
43
    [%~ ELSIF ( matches = season.match('(.*)Sum(.*)') ) ~%]
44
        <input class="numbering_parts serial_id_[% serialid | html %]" type="text" value="[%~ matches.0 | html ~%]" />
45
        [% PROCESS localize_numbering_pattern_season_dropdown_abrv cur_season => 'Sum' %]
46
        <input class="numbering_parts serial_id_[% serialid | html %]" type="text" value="[%~ matches.1 | html ~%]" />
47
    [%~ ELSIF ( matches = season.match('(.*)Fal(.*)') ) ~%]
48
        <input class="numbering_parts serial_id_[% serialid | html %]" type="text" value="[%~ matches.0 | html ~%]" />
49
        [% PROCESS localize_numbering_pattern_season_dropdown_abrv cur_season => 'Fal' %]
50
        <input class="numbering_parts serial_id_[% serialid | html %]" type="text" value="[%~ matches.1 | html ~%]" />
51
    [%~ ELSIF ( matches = season.match('(.*)Win(.*)') ) ~%]
52
        <input class="numbering_parts serial_id_[% serialid | html %]" type="text" value="[%~ matches.0 | html ~%]" />
53
        [% PROCESS localize_numbering_pattern_season_dropdown_abrv cur_season => 'Win' %]
54
        <input class="numbering_parts serial_id_[% serialid | html %]" type="text" value="[%~ matches.1 | html ~%]" />
55
    [%~ ELSE ~%]
56
        <input class="numbering_parts serial_id_[% serialid | html %]" type="text" value="[%~ season | html ~%]" />
57
    [%~ END ~%]
58
[%~ END ~%]
59
[%~ BLOCK localize_numbering_pattern_season_dropdown ~%]
60
    <select class="numbering_parts serial_id_[% serialid | html %]" name="season_dropdown">
61
        [% IF ( cur_season == 'Spring' ) %]
62
            <option selected="selected" value="Spring">Spring</option>
63
        [% ELSE %]
64
            <option value="Spring">Spring</option>
65
        [% END %]
66
        [% IF ( cur_season == 'Summer' ) %]
67
            <option selected="selected" value="Summer">Summer</option>
68
        [% ELSE %]
69
            <option value="Summer">Summer</option>
70
        [% END %]
71
        [% IF ( cur_season == 'Fall' ) %]
72
            <option selected="selected" value="Fall">Fall</option>
73
        [% ELSE %]
74
            <option value="Fall">Fall</option>
75
        [% END %]
76
        [% IF ( cur_season == 'Winter' ) %]
77
            <option selected="selected" value="Winter">Winter</option>
78
        [% ELSE %]
79
            <option value="Winter">Winter</option>
80
        [% END %]
81
    </select>
82
[%~ END ~%]
83
[%~ BLOCK localize_numbering_pattern_season_dropdown_abrv ~%]
84
    <select class="numbering_parts serial_id_[% serialid | html %]" name="season_dropdown">
85
        [% IF ( cur_season == 'Spr' ) %]
86
            <option selected="selected" value="Spr">Spr</option>
87
        [% ELSE %]
88
            <option value="Spr">Spr</option>
89
        [% END %]
90
        [% IF ( cur_season == 'Sum' ) %]
91
            <option selected="selected" value="Sum">Sum</option>
92
        [% ELSE %]
93
            <option value="Sum">Sum</option>
94
        [% END %]
95
        [% IF ( cur_season == 'Fal' ) %]
96
            <option selected="selected" value="Fal">Fal</option>
97
        [% ELSE %]
98
            <option value="Fall">Fal</option>
99
        [% END %]
100
        [% IF ( cur_season == 'Win' ) %]
101
            <option selected="selected" value="Win">Win</option>
102
        [% ELSE %]
103
            <option value="Win">Win</option>
104
        [% END %]
105
    </select>
106
[%~ END ~%]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt (-3 / +11 lines)
Lines 80-85 Link Here
80
            return true;
80
            return true;
81
        });
81
        });
82
82
83
        $(".numbering_parts").change(function () {
84
            let num_parts = $(this).parent("td").children(".numbering_parts");
85
            let new_val = "";
86
            num_parts.each(function () {
87
                new_val += $(this).val();
88
            });
89
            let num_total = $(this).parent("td").children(".serialseq_hidden");
90
            num_total.val(new_val);
91
        });
83
        $("#toggle_skip_issues").on("change", function () {
92
        $("#toggle_skip_issues").on("change", function () {
84
            if (this.checked) {
93
            if (this.checked) {
85
                $("#skip_issues").removeClass("collapse").prop("disabled", false);
94
                $("#skip_issues").removeClass("collapse").prop("disabled", false);
Lines 173-180 Link Here
173
                                        <input type="hidden" name="biblionumber" value="[% serialslis.biblionumber | html %]" />
182
                                        <input type="hidden" name="biblionumber" value="[% serialslis.biblionumber | html %]" />
174
                                        <input type="hidden" name="itemcount" value="[% serialslis.issuesatonce | html %]" />
183
                                        <input type="hidden" name="itemcount" value="[% serialslis.issuesatonce | html %]" />
175
                                        <input type="hidden" name="user" value="[% serialslis.librarian | html %]" />
184
                                        <input type="hidden" name="user" value="[% serialslis.librarian | html %]" />
176
                                        Issue
185
                                        <input type="hidden" name="serialseq" class="serialseq_hidden" id="serialseq[% serialslis.serialid | html %]" value="[% serialslis.serialseq | html %]" />
177
                                        <input type="text" name="serialseq" id="serialseq[% serialslis.serialid | html %]" value="[% PROCESS localize_numbering_pattern_season season => serialslis.serialseq %]" size="20" maxlength="100" />
186
                                        Issue [% PROCESS localize_numbering_pattern_season_input season => serialslis.serialseq serialid => serialslis.serialid %]
178
                                    </td>
187
                                    </td>
179
                                    <td>
188
                                    <td>
180
                                        <input type="text" name="publisheddate" value="[% serialslis.publisheddate | html %]" size="10" maxlength="15" class="flatpickr" />
189
                                        <input type="text" name="publisheddate" value="[% serialslis.publisheddate | html %]" size="10" maxlength="15" class="flatpickr" />
181
- 

Return to bug 24172