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 (-19 / +2 lines)
Lines 6-11 Link Here
6
[% USE Branches %]
6
[% USE Branches %]
7
[% USE Biblio %]
7
[% USE Biblio %]
8
[% USE ColumnsSettings %]
8
[% USE ColumnsSettings %]
9
[% PROCESS 'localizer.inc' %]
9
[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
10
[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
10
[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
11
[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
11
12
Lines 580-604 Note that permanent location is a code, and location may be an authval. Link Here
580
            [% FOREACH latestserial IN subscription.latestserials %]
581
            [% FOREACH latestserial IN subscription.latestserials %]
581
                <tr>
582
                <tr>
582
                    <td>
583
                    <td>
583
                        [% IF ( matches = latestserial.serialseq.match('(.*)Spring(.*)') ) %]
584
                        [% PROCESS localize_numbering_pattern_season season => latestserial.serialseq %]
584
                            [% matches.0 | html %]Spring[% matches.1 | html %]
585
                        [% ELSIF ( matches = latestserial.serialseq.match('(.*)Summer(.*)') ) %]
586
                            [% matches.0 | html %]Summer[% matches.1 | html %]
587
                        [% ELSIF ( matches = latestserial.serialseq.match('(.*)Fall(.*)') ) %]
588
                            [% matches.0 | html %]Fall[% matches.1 | html %]
589
                        [% ELSIF ( matches = latestserial.serialseq.match('(.*)Winter(.*)') ) %]
590
                            [% matches.0 | html %]Winter[% matches.1 | html %]
591
                        [% ELSIF ( matches = latestserial.serialseq.match('(.*)Spr(.*)') ) %]
592
                            [% matches.0 | html %]Spr[% matches.1 | html %]
593
                        [% ELSIF ( matches = latestserial.serialseq.match('(.*)Sum(.*)') ) %]
594
                            [% matches.0 | html %]Sum[% matches.1 | html %]
595
                        [% ELSIF ( matches = latestserial.serialseq.match('(.*)Fal(.*)') ) %]
596
                            [% matches.0 | html %]Fal[% matches.1 | html %]
597
                        [% ELSIF ( matches = latestserial.serialseq.match('(.*)Win(.*)') ) %]
598
                            [% matches.0 | html %]Win[% matches.1 | html %]
599
                        [% ELSE %]
600
                            [% latestserial.serialseq | html %]
601
                        [% END %]
602
                    </td>
585
                    </td>
603
                    <td><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td>
586
                    <td><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td>
604
                    <td><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></td>
587
                    <td><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></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>Koha &rsaquo; Serials &rsaquo; Serial collection information for [% bibliotitle | html %]</title>
9
<title>Koha &rsaquo; Serials &rsaquo; Serial collection information for [% bibliotitle | html %]</title>
Lines 200-224 Link Here
200
                    </span>
201
                    </span>
201
                </td>
202
                </td>
202
                <td>
203
                <td>
203
                    [% IF ( matches = serial.serialseq.match('(.*)Spring(.*)') ) %]
204
                    [% PROCESS localize_numbering_pattern_season season => serial.serialseq %]
204
                        [% matches.0 | html %]Spring[% matches.1 | html %]
205
                    [% ELSIF ( matches = serial.serialseq.match('(.*)Summer(.*)') ) %]
206
                        [% matches.0 | html %]Summer[% matches.1 | html %]
207
                    [% ELSIF ( matches = serial.serialseq.match('(.*)Fall(.*)') ) %]
208
                        [% matches.0 | html %]Fall[% matches.1 | html %]
209
                    [% ELSIF ( matches = serial.serialseq.match('(.*)Winter(.*)') ) %]
210
                        [% matches.0 | html %]Winter[% matches.1 | html %]
211
                    [% ELSIF ( matches = prediction.number.match('(.*)Spr(.*)') ) %]
212
                        [% matches.0 | html %]Spr[% matches.1 | html %]
213
                    [% ELSIF ( matches = prediction.number.match('(.*)Sum(.*)') ) %]
214
                        [% matches.0 | html %]Sum[% matches.1 | html %]
215
                    [% ELSIF ( matches = prediction.number.match('(.*)Fal(.*)') ) %]
216
                        [% matches.0 | html %]Fal[% matches.1 | html %]
217
                    [% ELSIF ( matches = prediction.number.match('(.*)Win(.*)') ) %]
218
                        [% matches.0 | html %]Win[% matches.1 | html %]
219
                    [% ELSE %]
220
                        [% serial.serialseq | html %]
221
                    [% END %]
222
                </td>
205
                </td>
223
                <td>
206
                <td>
224
                    [% IF ( serial.status1 ) %]Expected[% END %]
207
                    [% IF ( serial.status1 ) %]Expected[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt (-1 / +2 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>Koha &rsaquo; Serials &rsaquo; Serial edition [% bibliotitle | html %]</title>
6
<title>Koha &rsaquo; Serials &rsaquo; Serial edition [% bibliotitle | html %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
Lines 127-133 $(document).ready(function() { Link Here
127
            <input type="hidden" name="itemcount" value="[% serialslis.issuesatonce | html %]" />
128
            <input type="hidden" name="itemcount" value="[% serialslis.issuesatonce | html %]" />
128
            <input type="hidden" name="user" value="[% serialslis.librarian | html %]" />
129
            <input type="hidden" name="user" value="[% serialslis.librarian | html %]" />
129
            Issue <input type="text" name="serialseq" id="serialseq[% serialslis.serialid | html %]"
130
            Issue <input type="text" name="serialseq" id="serialseq[% serialslis.serialid | html %]"
130
            value="[% IF ( matches = serialslis.serialseq.match('(.*)Spring(.*)') ) %][% matches.0 | html %]Spring[% matches.1 | html %][% ELSIF ( matches = serialslis.serialseq.match('(.*)Summer(.*)') ) %][% matches.0 | html %]Summer[% matches.1 | html %][% ELSIF ( matches = serialslis.serialseq.match('(.*)Fall(.*)') ) %][% matches.0 | html %]Fall[% matches.1 | html %][% ELSIF ( matches = serialslis.serialseq.match('(.*)Winter(.*)') ) %][% matches.0 | html %]Winter[% matches.1 | html %][% ELSIF ( matches = serialslis.serialseq.match('(.*)Spr(.*)') ) %][% matches.0 | html %]Spr[% matches.1 | html %][% ELSIF ( matches = serialslis.serialseq.match('(.*)Sum(.*)') ) %][% matches.0 | html %]Sum[% matches.1 | html %][% ELSIF ( matches = serialslis.serialseq.match('(.*)Fal(.*)') ) %][% matches.0 | html %]Fal[% matches.1 | html %][% ELSIF ( matches = serialslis.serialseq.match('(.*)Win(.*)') ) %][% matches.0 | html %]Win[% matches.1 | html %][% ELSE %][% serialslis.serialseq | html %][% END %]"
131
            value="[% PROCESS localize_numbering_pattern_season season => serialslis.serialseq %]"
131
            size="20" maxlength="100" />
132
            size="20" maxlength="100" />
132
        </td>
133
        </td>
133
        <td>
134
        <td>
(-)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</h1>
3
<h2>Prediction pattern</h1>
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 (-20 / +2 lines)
Lines 7-12 Link Here
7
[% USE Price %]
7
[% USE Price %]
8
[% USE ColumnsSettings %]
8
[% USE ColumnsSettings %]
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>Koha &rsaquo; Serials &rsaquo; Details for subscription #[% subscriptionid | html %]</title>
12
<title>Koha &rsaquo; Serials &rsaquo; Details for subscription #[% subscriptionid | html %]</title>
12
[% INCLUDE 'doc-head-close.inc' %]
13
[% INCLUDE 'doc-head-close.inc' %]
Lines 308-332 Link Here
308
                            [% FOREACH serialslis IN serialslist %]
309
                            [% FOREACH serialslis IN serialslist %]
309
                                <tr>
310
                                <tr>
310
                                    <td>
311
                                    <td>
311
                                        [% IF ( matches = serialslis.serialseq.match('(.*)Spring(.*)') ) %]
312
                                        [% PROCESS localize_numbering_pattern_season season => serialslis.serialseq %]
312
                                            [% matches.0 | html %]Spring[% matches.1 | html %]
313
                                        [% ELSIF ( matches = serialslis.serialseq.match('(.*)Summer(.*)') ) %]
314
                                            [% matches.0 | html %]Summer[% matches.1 | html %]
315
                                        [% ELSIF ( matches = serialslis.serialseq.match('(.*)Fall(.*)') ) %]
316
                                            [% matches.0 | html %]Fall[% matches.1 | html %]
317
                                        [% ELSIF ( matches = serialslis.serialseq.match('(.*)Winter(.*)') ) %]
318
                                            [% matches.0 | html %]Winter[% matches.1 | html %]
319
                                        [% ELSIF ( matches = serialslis.serialseq.match('(.*)Spr(.*)') ) %]
320
                                            [% matches.0 | html %]Spr[% matches.1 | html %]
321
                                        [% ELSIF ( matches = serialslis.serialseq.match('(.*)Sum(.*)') ) %]
322
                                            [% matches.0 | html %]Sum[% matches.1 | html %]
323
                                        [% ELSIF ( matches = serialslis.serialseq.match('(.*)Fal(.*)') ) %]
324
                                            [% matches.0 | html %]Fal[% matches.1 | html %]
325
                                        [% ELSIF ( matches = serialslis.serialseq.match('(.*)Win(.*)') ) %]
326
                                            [% matches.0 | html %]Win[% matches.1 | html %]
327
                                        [% ELSE %]
328
                                            [% serialslis.serialseq | html %]
329
                                        [% END %]
330
                                    </td>
313
                                    </td>
331
                                    <td>
314
                                    <td>
332
                                        [% IF serialslis.planneddate %]
315
                                        [% IF serialslis.planneddate %]
333
- 

Return to bug 24172