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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/localizer.inc (+21 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 ~%]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-1 / +4 lines)
Lines 8-13 Link Here
8
[% USE Biblio %]
8
[% USE Biblio %]
9
[% USE Price %]
9
[% USE Price %]
10
[% USE TablesSettings %]
10
[% USE TablesSettings %]
11
[% PROCESS 'localizer.inc' %]
11
[% PROCESS 'i18n.inc' %]
12
[% PROCESS 'i18n.inc' %]
12
13
13
[% IF Koha.Preference('AmazonAssocTag') %]
14
[% IF Koha.Preference('AmazonAssocTag') %]
Lines 790-796 Note that permanent location is a code, and location may be an authval. Link Here
790
                </tr>
791
                </tr>
791
            [% FOREACH latestserial IN subscription.latestserials %]
792
            [% FOREACH latestserial IN subscription.latestserials %]
792
                <tr>
793
                <tr>
793
                    <td>[% latestserial.serialseq | html %]</td>
794
                    <td>
795
                        [% PROCESS localize_numbering_pattern_season season => latestserial.serialseq %]
796
                    </td>
794
                    <td data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td>
797
                    <td data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td>
795
                    <td data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td>
798
                    <td data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td>
796
                    <td>
799
                    <td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt (-19 / +2 lines)
Lines 3-8 Link Here
3
[% USE AuthorisedValues %]
3
[% USE AuthorisedValues %]
4
[% USE Branches %]
4
[% USE Branches %]
5
[% USE KohaDates %]
5
[% USE KohaDates %]
6
[% PROCESS 'localizer.inc' %]
6
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
8
<title>Serial collection information for [% bibliotitle | html %] &rsaquo; Serials &rsaquo; Koha</title>
9
<title>Serial collection information for [% bibliotitle | html %] &rsaquo; Serials &rsaquo; Koha</title>
Lines 246-270 Link Here
246
                    [% END %]
247
                    [% END %]
247
                </td>
248
                </td>
248
                <td>
249
                <td>
249
                    [% IF ( matches = serial.serialseq.match('(.*)Spring(.*)') ) %]
250
                    [% PROCESS localize_numbering_pattern_season season => serial.serialseq %]
250
                        [% matches.0 | html %]Spring[% matches.1 | html %]
251
                    [% ELSIF ( matches = serial.serialseq.match('(.*)Summer(.*)') ) %]
252
                        [% matches.0 | html %]Summer[% matches.1 | html %]
253
                    [% ELSIF ( matches = serial.serialseq.match('(.*)Fall(.*)') ) %]
254
                        [% matches.0 | html %]Fall[% matches.1 | html %]
255
                    [% ELSIF ( matches = serial.serialseq.match('(.*)Winter(.*)') ) %]
256
                        [% matches.0 | html %]Winter[% matches.1 | html %]
257
                    [% ELSIF ( matches = prediction.number.match('(.*)Spr(.*)') ) %]
258
                        [% matches.0 | html %]Spr[% matches.1 | html %]
259
                    [% ELSIF ( matches = prediction.number.match('(.*)Sum(.*)') ) %]
260
                        [% matches.0 | html %]Sum[% matches.1 | html %]
261
                    [% ELSIF ( matches = prediction.number.match('(.*)Fal(.*)') ) %]
262
                        [% matches.0 | html %]Fal[% matches.1 | html %]
263
                    [% ELSIF ( matches = prediction.number.match('(.*)Win(.*)') ) %]
264
                        [% matches.0 | html %]Win[% matches.1 | html %]
265
                    [% ELSE %]
266
                        [% serial.serialseq | html %]
267
                    [% END %]
268
                </td>
251
                </td>
269
                <td>
252
                <td>
270
                    [% IF ( serial.status1 ) %]<span>Expected</span>[% END %]
253
                    [% IF ( serial.status1 ) %]<span>Expected</span>[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt (-1 / +4 lines)
Lines 1-6 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE AuthorisedValues %]
3
[% USE AuthorisedValues %]
4
[% PROCESS 'localizer.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Serial edition [% bibliotitle | html %] &rsaquo; Serials &rsaquo; Koha</title>
6
<title>Serial edition [% bibliotitle | html %] &rsaquo; Serials &rsaquo; Koha</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
Lines 139-145 $(document).ready(function() { Link Here
139
            <input type="hidden" name="biblionumber" value="[% serialslis.biblionumber | html %]" />
140
            <input type="hidden" name="biblionumber" value="[% serialslis.biblionumber | html %]" />
140
            <input type="hidden" name="itemcount" value="[% serialslis.issuesatonce | html %]" />
141
            <input type="hidden" name="itemcount" value="[% serialslis.issuesatonce | html %]" />
141
            <input type="hidden" name="user" value="[% serialslis.librarian | html %]" />
142
            <input type="hidden" name="user" value="[% serialslis.librarian | html %]" />
142
            Issue <input type="text" name="serialseq" id="serialseq[% serialslis.serialid | html %]" value="[% serialslis.serialseq | html %]" size="20" maxlength="100" />
143
            Issue <input type="text" name="serialseq" id="serialseq[% serialslis.serialid | html %]"
144
            value="[% PROCESS localize_numbering_pattern_season season => serialslis.serialseq %]"
145
            size="20" maxlength="100" />
143
        </td>
146
        </td>
144
        <td>
147
        <td>
145
            <input type="text" name="publisheddate" value="[% serialslis.publisheddate | html %]" size="10" maxlength="15" class="flatpickr" />
148
            <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 7-12 Link Here
7
[% USE Price %]
7
[% USE Price %]
8
[% USE TablesSettings %]
8
[% USE TablesSettings %]
9
[% SET footerjs = 1 %]
9
[% SET footerjs = 1 %]
10
[% PROCESS 'localizer.inc' %]
10
[% INCLUDE 'doc-head-open.inc' %]
11
[% INCLUDE 'doc-head-open.inc' %]
11
<title>Details for subscription #[% subscriptionid | html %] &rsaquo; Serials &rsaquo; Koha</title>
12
<title>Details for subscription #[% subscriptionid | html %] &rsaquo; Serials &rsaquo; Koha</title>
12
[% INCLUDE 'doc-head-close.inc' %]
13
[% INCLUDE 'doc-head-close.inc' %]
Lines 336-342 Link Here
336
                                [% FOREACH serialslis IN serialslist %]
337
                                [% FOREACH serialslis IN serialslist %]
337
                                    <tr>
338
                                    <tr>
338
                                        <td>
339
                                        <td>
339
                                            [% serialslis.serialseq | html %]
340
                                            [% PROCESS localize_numbering_pattern_season season => serialslis.serialseq %]
340
                                        </td>
341
                                        </td>
341
                                        <td>
342
                                        <td>
342
                                            [% IF serialslis.planneddate %]
343
                                            [% IF serialslis.planneddate %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-2 / +4 lines)
Lines 6-11 Link Here
6
[% USE Branches %]
6
[% USE Branches %]
7
[% USE TablesSettings %]
7
[% USE TablesSettings %]
8
[% USE AuthorisedValues %]
8
[% USE AuthorisedValues %]
9
[% PROCESS 'localizer.inc' %]
9
[% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %]
10
[% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %]
10
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %]
11
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %]
11
[% IF Koha.Preference('AmazonAssocTag') %]
12
[% IF Koha.Preference('AmazonAssocTag') %]
Lines 761-767 Link Here
761
                                                <tbody>
762
                                                <tbody>
762
                                                    [% FOREACH latestserial IN subscription.latestserials %]
763
                                                    [% FOREACH latestserial IN subscription.latestserials %]
763
                                                        <tr>
764
                                                        <tr>
764
                                                            <td class="serialseq">[% latestserial.serialseq | html %]</td>
765
                                                            <td class="serialseq">
766
                                                                [% PROCESS localize_numbering_pattern_season season => latestserial.serialseq %]
767
                                                            </td>
765
                                                            <td class="publisheddate" data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td>
768
                                                            <td class="publisheddate" data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td>
766
                                                            <td class="planneddate" data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td>
769
                                                            <td class="planneddate" data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td>
767
                                                            <td class="serial_status">
770
                                                            <td class="serial_status">
768
- 

Return to bug 24172