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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/localizer.inc (-9 / +92 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[%~ 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[%~ 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
[%~ END ~%]
82
[%~ BLOCK localize_numbering_pattern_season_dropdown_abrv ~%]
83
    <select class="numbering_parts serial_id_[%serialid | html %]" name="season_dropdown">
84
        [% IF ( cur_season == 'Spr' ) %]
85
            <option selected="selected" value='Spr'>Spr</option>
86
        [% ELSE %]
87
            <option value='Spr'>Spr</option>
88
        [% END %]
89
        [% IF ( cur_season == 'Sum' ) %]
90
            <option selected="selected" value='Sum'>Sum</option>
91
        [% ELSE %]
92
            <option value='Sum'>Sum</option>
93
        [% END %]
94
        [% IF ( cur_season == 'Fal' ) %]
95
            <option selected="selected" value='Fal'>Fal</option>
96
        [% ELSE %]
97
            <option value='Fall'>Fal</option>
98
        [% END %]
99
        [% IF ( cur_season == 'Win' ) %]
100
            <option selected="selected" value='Win'>Win</option>
101
        [% ELSE %]
102
            <option value='Win'>Win</option>
103
        [% END %]
104
[%~ END ~%]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt (-4 / +11 lines)
Lines 73-78 $(document).ready(function() { Link Here
73
        return true;
73
        return true;
74
    });
74
    });
75
75
76
    $(".numbering_parts").change(function(){
77
        let num_parts = $(this).parent('td').children(".numbering_parts");
78
        let new_val = "";
79
        num_parts.each(function(){
80
            new_val += $(this).val();
81
        });
82
        let num_total = $(this).parent('td').children('.serialseq_hidden');
83
        num_total.val( new_val );
84
    });
76
    $("#toggle_skip_issues").on("change", function() {
85
    $("#toggle_skip_issues").on("change", function() {
77
        if (this.checked) {
86
        if (this.checked) {
78
            $("#skip_issues").removeClass("collapse").prop("disabled", false);
87
            $("#skip_issues").removeClass("collapse").prop("disabled", false);
Lines 160-168 $(document).ready(function() { Link Here
160
            <input type="hidden" name="biblionumber" value="[% serialslis.biblionumber | html %]" />
169
            <input type="hidden" name="biblionumber" value="[% serialslis.biblionumber | html %]" />
161
            <input type="hidden" name="itemcount" value="[% serialslis.issuesatonce | html %]" />
170
            <input type="hidden" name="itemcount" value="[% serialslis.issuesatonce | html %]" />
162
            <input type="hidden" name="user" value="[% serialslis.librarian | html %]" />
171
            <input type="hidden" name="user" value="[% serialslis.librarian | html %]" />
163
            Issue <input type="text" name="serialseq" id="serialseq[% serialslis.serialid | html %]"
172
            <input type="hidden" name="serialseq" class="serialseq_hidden" id="serialseq[% serialslis.serialid | html %]" value="[% serialslis.serialseq | html %]" />
164
            value="[% PROCESS localize_numbering_pattern_season season => serialslis.serialseq %]"
173
            Issue [% PROCESS localize_numbering_pattern_season_input season => serialslis.serialseq serialid => serialslis.serialid %]
165
            size="20" maxlength="100" />
166
        </td>
174
        </td>
167
        <td>
175
        <td>
168
            <input type="text" name="publisheddate" value="[% serialslis.publisheddate | html %]" size="10" maxlength="15" class="flatpickr" />
176
            <input type="text" name="publisheddate" value="[% serialslis.publisheddate | html %]" size="10" maxlength="15" class="flatpickr" />
169
- 

Return to bug 24172