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

(-)a/C4/Serials.pm (-4 / +10 lines)
Lines 2548-2560 sub _numeration { Link Here
2548
            ? $dt->format_cldr( "LLLL" )
2548
            ? $dt->format_cldr( "LLLL" )
2549
            : $dt->strftime("%b");
2549
            : $dt->strftime("%b");
2550
    } elsif ( $num_type =~ /^season$/ ) {
2550
    } elsif ( $num_type =~ /^season$/ ) {
2551
        my @seasons= qw( Spring Summer Fall Winter );
2551
        my $lang = C4::Languages::get_rfc4646_from_iso639($locale);
2552
        $value = $value % 4;
2552
        $value = $value % 4;
2553
        $string = $seasons[$value];
2553
        $string = Koha::TemplateUtils::process_tt(
2554
            q{[% PROCESS 'localizer.inc' %][%- PROCESS convert_season number => value -%]},
2555
            { value => $value }, '', $lang
2556
        );
2554
    } elsif ( $num_type =~ /^seasonabrv$/ ) {
2557
    } elsif ( $num_type =~ /^seasonabrv$/ ) {
2555
        my @seasonsabrv= qw( Spr Sum Fal Win );
2558
        my $lang = C4::Languages::get_rfc4646_from_iso639($locale);
2556
        $value = $value % 4;
2559
        $value = $value % 4;
2557
        $string = $seasonsabrv[$value];
2560
        $string = Koha::TemplateUtils::process_tt(
2561
            q{[% PROCESS 'localizer.inc' %][%- PROCESS convert_season_abrv number => value -%]},
2562
            { value => $value }, '', $lang
2563
        );
2558
    } else {
2564
    } else {
2559
        $string = $value;
2565
        $string = $value;
2560
    }
2566
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/localizer.inc (+43 lines)
Line 0 Link Here
1
[%~ BLOCK localize_numbering_pattern_season ~%]
2
    [%~ IF ( matches = season.match('(.*)Spring(.*)') ) ~%]
3
        [%~ matches.0 | html ~%]Spring[%~ matches.1 | html ~%]
4
    [%~ ELSIF ( matches = season.match('(.*)Summer(.*)') ) ~%]
5
        [%~ matches.0 | html ~%]Summer[%~ matches.1 | html ~%]
6
    [%~ ELSIF ( matches = season.match('(.*)Fall(.*)') ) ~%]
7
        [%~ matches.0 | html ~%]Fall[%~ matches.1 | html ~%]
8
    [%~ ELSIF ( matches = season.match('(.*)Winter(.*)') ) ~%]
9
        [%~ matches.0 | html ~%]Winter[%~ matches.1 | html ~%]
10
    [%~ ELSIF ( matches = season.match('(.*)Spr(.*)') ) ~%]
11
        [%~ matches.0 | html ~%]Spr[%~ matches.1 | html ~%]
12
    [%~ ELSIF ( matches = season.match('(.*)Sum(.*)') ) ~%]
13
        [%~ matches.0 | html ~%]Sum[%~ matches.1 | html ~%]
14
    [%~ ELSIF ( matches = season.match('(.*)Fal(.*)') ) ~%]
15
        [%~ matches.0 | html ~%]Fal[%~ matches.1 | html ~%]
16
    [%~ ELSIF ( matches = season.match('(.*)Win(.*)') ) ~%]
17
        [%~ matches.0 | html ~%]Win[%~ matches.1 | html ~%]
18
    [%~ ELSE ~%]
19
        [%~ season | html ~%]
20
    [%~ END ~%]
21
[%~ END ~%]
22
[%~ BLOCK convert_season ~%]
23
    [%~ IF ( number == 0 ) ~%]
24
        Spring
25
    [%~ ELSIF ( number == 1 ) ~%]
26
        Summer
27
    [%~ ELSIF ( number == 2 ) ~%]
28
        Fall
29
    [%~ ELSIF ( number == 3 ) ~%]
30
        Winter
31
    [%~ END ~%]
32
[%~ END ~%]
33
[%~ BLOCK convert_season_abrv ~%]
34
    [%~ IF ( number == 0 ) ~%]
35
        Spr
36
    [%~ ELSIF ( number == 1 ) ~%]
37
        Sum
38
    [%~ ELSIF ( number == 2 ) ~%]
39
        Fal
40
    [%~ ELSIF ( number == 3 ) ~%]
41
        Win
42
    [%~ END ~%]
43
[%~ END ~%]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-1 / +2 lines)
Lines 10-15 Link Here
10
[% USE Frameworks %]
10
[% USE Frameworks %]
11
[% USE Price %]
11
[% USE Price %]
12
[% USE TablesSettings %]
12
[% USE TablesSettings %]
13
[% PROCESS 'localizer.inc' %]
13
[% PROCESS 'i18n.inc' %]
14
[% PROCESS 'i18n.inc' %]
14
[% PROCESS 'html_helpers/tables/items/catalogue_detail.inc' %]
15
[% PROCESS 'html_helpers/tables/items/catalogue_detail.inc' %]
15
[% SET CoverImagePlugins = KohaPlugins.get_plugins_intranet_cover_images %]
16
[% SET CoverImagePlugins = KohaPlugins.get_plugins_intranet_cover_images %]
Lines 534-540 Link Here
534
                                                    </tr>
535
                                                    </tr>
535
                                                    [% FOREACH latestserial IN subscription.latestserials %]
536
                                                    [% FOREACH latestserial IN subscription.latestserials %]
536
                                                        <tr>
537
                                                        <tr>
537
                                                            <td>[% latestserial.serialseq | html %]</td>
538
                                                            <td>[% PROCESS localize_numbering_pattern_season season => latestserial.serialseq %]</td>
538
                                                            <td data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td>
539
                                                            <td data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td>
539
                                                            <td data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td>
540
                                                            <td data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td>
540
                                                            <td>[% latestserial.publisheddatetext | html %]</td>
541
                                                            <td>[% latestserial.publisheddatetext | html %]</td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt (-19 / +2 lines)
Lines 5-10 Link Here
5
[% USE HtmlTags %]
5
[% USE HtmlTags %]
6
[% USE KohaDates %]
6
[% USE KohaDates %]
7
[% PROCESS 'i18n.inc' %]
7
[% PROCESS 'i18n.inc' %]
8
[% PROCESS 'localizer.inc' %]
8
[% SET footerjs = 1 %]
9
[% SET footerjs = 1 %]
9
[% INCLUDE 'doc-head-open.inc' %]
10
[% INCLUDE 'doc-head-open.inc' %]
10
<title>[% FILTER collapse %]
11
<title>[% FILTER collapse %]
Lines 283-307 Link Here
283
                                                            [% END %]
284
                                                            [% END %]
284
                                                        </td>
285
                                                        </td>
285
                                                        <td>
286
                                                        <td>
286
                                                            [% IF ( matches = serial.serialseq.match('(.*)Spring(.*)') ) %]
287
                                                            [% PROCESS localize_numbering_pattern_season season => serial.serialseq %]
287
                                                                [% matches.0 | html %]Spring[% matches.1 | html %]
288
                                                            [% ELSIF ( matches = serial.serialseq.match('(.*)Summer(.*)') ) %]
289
                                                                [% matches.0 | html %]Summer[% matches.1 | html %]
290
                                                            [% ELSIF ( matches = serial.serialseq.match('(.*)Fall(.*)') ) %]
291
                                                                [% matches.0 | html %]Fall[% matches.1 | html %]
292
                                                            [% ELSIF ( matches = serial.serialseq.match('(.*)Winter(.*)') ) %]
293
                                                                [% matches.0 | html %]Winter[% matches.1 | html %]
294
                                                            [% ELSIF ( matches = prediction.number.match('(.*)Spr(.*)') ) %]
295
                                                                [% matches.0 | html %]Spr[% matches.1 | html %]
296
                                                            [% ELSIF ( matches = prediction.number.match('(.*)Sum(.*)') ) %]
297
                                                                [% matches.0 | html %]Sum[% matches.1 | html %]
298
                                                            [% ELSIF ( matches = prediction.number.match('(.*)Fal(.*)') ) %]
299
                                                                [% matches.0 | html %]Fal[% matches.1 | html %]
300
                                                            [% ELSIF ( matches = prediction.number.match('(.*)Win(.*)') ) %]
301
                                                                [% matches.0 | html %]Win[% matches.1 | html %]
302
                                                            [% ELSE %]
303
                                                                [% serial.serialseq | html %]
304
                                                            [% END %]
305
                                                        </td>
288
                                                        </td>
306
                                                        <td>
289
                                                        <td>
307
                                                            [% INCLUDE 'serial-status.inc' serial = serial %]
290
                                                            [% INCLUDE 'serial-status.inc' serial = serial %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt (-1 / +4 lines)
Lines 2-7 Link Here
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE AuthorisedValues %]
3
[% USE AuthorisedValues %]
4
[% PROCESS 'i18n.inc' %]
4
[% PROCESS 'i18n.inc' %]
5
[% PROCESS 'localizer.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>[% FILTER collapse %]
7
<title>[% FILTER collapse %]
7
    [% t("Serial edition") | html %]
8
    [% t("Serial edition") | html %]
Lines 159-165 $(document).ready(function() { Link Here
159
            <input type="hidden" name="biblionumber" value="[% serialslis.biblionumber | html %]" />
160
            <input type="hidden" name="biblionumber" value="[% serialslis.biblionumber | html %]" />
160
            <input type="hidden" name="itemcount" value="[% serialslis.issuesatonce | html %]" />
161
            <input type="hidden" name="itemcount" value="[% serialslis.issuesatonce | html %]" />
161
            <input type="hidden" name="user" value="[% serialslis.librarian | html %]" />
162
            <input type="hidden" name="user" value="[% serialslis.librarian | html %]" />
162
            Issue <input type="text" name="serialseq" id="serialseq[% serialslis.serialid | html %]" value="[% serialslis.serialseq | html %]" size="20" maxlength="100" />
163
            Issue <input type="text" name="serialseq" id="serialseq[% serialslis.serialid | html %]"
164
            value="[% PROCESS localize_numbering_pattern_season season => serialslis.serialseq %]"
165
            size="20" maxlength="100" />
163
        </td>
166
        </td>
164
        <td>
167
        <td>
165
            <input type="text" name="publisheddate" value="[% serialslis.publisheddate | html %]" size="10" maxlength="15" class="flatpickr" />
168
            <input type="text" name="publisheddate" value="[% serialslis.publisheddate | html %]" size="10" maxlength="15" class="flatpickr" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/showpredictionpattern.tt (-19 / +2 lines)
Lines 1-4 Link Here
1
[% USE KohaDates %]
1
[% USE KohaDates %]
2
[% PROCESS 'localizer.inc' %]
2
<h2>Prediction pattern</h2>
3
<h2>Prediction pattern</h2>
3
[% IF (not_consistent_end_date) %]
4
[% IF (not_consistent_end_date) %]
4
  <p><em>End date is not consistent with subscription length.</em></p>
5
  <p><em>End date is not consistent with subscription length.</em></p>
Lines 41-65 Link Here
41
    [% FOREACH prediction IN predictions_loop %]
42
    [% FOREACH prediction IN predictions_loop %]
42
      <tr>
43
      <tr>
43
        <td>
44
        <td>
44
            [% IF ( matches = prediction.number.match('(.*)Spring(.*)') ) %]
45
            [% PROCESS localize_numbering_pattern_season season => prediction.number %]
45
                [% matches.0 | html %]Spring[% matches.1 | html %]
46
            [% ELSIF ( matches = prediction.number.match('(.*)Summer(.*)') ) %]
47
                [% matches.0 | html %]Summer[% matches.1 | html %]
48
            [% ELSIF ( matches = prediction.number.match('(.*)Fall(.*)') ) %]
49
                [% matches.0 | html %]Fall[% matches.1 | html %]
50
            [% ELSIF ( matches = prediction.number.match('(.*)Winter(.*)') ) %]
51
                [% matches.0 | html %]Winter[% matches.1 | html %]
52
            [% ELSIF ( matches = prediction.number.match('(.*)Spr(.*)') ) %]
53
                [% matches.0 | html %]Spr[% matches.1 | html %]
54
            [% ELSIF ( matches = prediction.number.match('(.*)Sum(.*)') ) %]
55
                [% matches.0 | html %]Sum[% matches.1 | html %]
56
            [% ELSIF ( matches = prediction.number.match('(.*)Fal(.*)') ) %]
57
                [% matches.0 | html %]Fal[% matches.1 | html %]
58
            [% ELSIF ( matches = prediction.number.match('(.*)Win(.*)') ) %]
59
                [% matches.0 | html %]Win[% matches.1 | html %]
60
            [% ELSE %]
61
                [% prediction.number | html %]
62
            [% END %]
63
        </td>
46
        </td>
64
        <td>
47
        <td>
65
          [% IF (prediction.publicationdate) %]
48
          [% IF (prediction.publicationdate) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt (-1 / +2 lines)
Lines 10-15 Link Here
10
[% PROCESS 'i18n.inc' %]
10
[% PROCESS 'i18n.inc' %]
11
[% SET footerjs = 1 %]
11
[% SET footerjs = 1 %]
12
[%- PROCESS 'html_helpers.inc' -%]
12
[%- PROCESS 'html_helpers.inc' -%]
13
[% PROCESS 'localizer.inc' %]
13
[% INCLUDE 'doc-head-open.inc' %]
14
[% INCLUDE 'doc-head-open.inc' %]
14
<title>[% FILTER collapse %]
15
<title>[% FILTER collapse %]
15
    [% t("Subscription details") | html %] &rsaquo;
16
    [% t("Subscription details") | html %] &rsaquo;
Lines 270-276 Link Here
270
                                [% FOREACH serialslis IN serialslist %]
271
                                [% FOREACH serialslis IN serialslist %]
271
                                    <tr>
272
                                    <tr>
272
                                        <td>
273
                                        <td>
273
                                            [% serialslis.serialseq | html %]
274
                                            [% PROCESS localize_numbering_pattern_season season => serialslis.serialseq %]
274
                                        </td>
275
                                        </td>
275
                                        <td>
276
                                        <td>
276
                                            [% IF serialslis.planneddate %]
277
                                            [% IF serialslis.planneddate %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-2 / +4 lines)
Lines 7-12 Link Here
7
[% USE TablesSettings %]
7
[% USE TablesSettings %]
8
[% USE AuthorisedValues %]
8
[% USE AuthorisedValues %]
9
[% USE KohaPlugins %]
9
[% USE KohaPlugins %]
10
[% PROCESS 'localizer.inc' %]
10
[% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %]
11
[% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %]
11
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %]
12
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %]
12
[% SET CoverImagePlugins = KohaPlugins.get_plugins_opac_cover_images %]
13
[% SET CoverImagePlugins = KohaPlugins.get_plugins_opac_cover_images %]
Lines 763-769 Link Here
763
                                                <tbody>
764
                                                <tbody>
764
                                                    [% FOREACH latestserial IN subscription.latestserials %]
765
                                                    [% FOREACH latestserial IN subscription.latestserials %]
765
                                                        <tr>
766
                                                        <tr>
766
                                                            <td class="serialseq">[% latestserial.serialseq | html %]</td>
767
                                                            <td class="serialseq">
768
                                                                [% PROCESS localize_numbering_pattern_season season => latestserial.serialseq %]
769
                                                            </td>
767
                                                            <td class="publisheddate" data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td>
770
                                                            <td class="publisheddate" data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td>
768
                                                            <td class="planneddate" data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td>
771
                                                            <td class="planneddate" data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td>
769
                                                            <td class="serial_status">
772
                                                            <td class="serial_status">
770
- 

Return to bug 24172