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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt (-8 / +8 lines)
Lines 270-283 $(document).ready(function() { Link Here
270
                    </span>
270
                    </span>
271
                </td>
271
                </td>
272
                <td>
272
                <td>
273
                    [% IF ( matches = serial.serialseq.match('Spring(.*)') ) %]
273
                    [% IF ( matches = serial.serialseq.match('(.*)Spring(.*)') ) %]
274
                        Spring[% matches.join("") %]
274
                        [% matches.0 %]Spring[% matches.1 %]
275
                    [% ELSIF ( matches = serial.serialseq.match('Summer(.*)') ) %]
275
                    [% IF ( matches = serial.serialseq.match('(.*)Summer(.*)') ) %]
276
                        Summer[% matches.join("") %]
276
                        [% matches.0 %]Summer[% matches.1 %]
277
                    [% ELSIF ( matches = serial.serialseq.match('Fall(.*)') ) %]
277
                    [% IF ( matches = serial.serialseq.match('(.*)Fall(.*)') ) %]
278
                        Fall[% matches.join("") %]
278
                        [% matches.0 %]Fall[% matches.1 %]
279
                    [% ELSIF ( matches = serial.serialseq.match('Winter(.*)') ) %]
279
                    [% IF ( matches = serial.serialseq.match('(.*)Winter(.*)') ) %]
280
                        Winter[% matches.join("") %]
280
                        [% matches.0 %]Winter[% matches.1 %]
281
                    [% ELSE %]
281
                    [% ELSE %]
282
                        [% serial.serialseq %]
282
                        [% serial.serialseq %]
283
                    [% END %]
283
                    [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/showpredictionpattern.tt (-9 / +8 lines)
Lines 57-70 Link Here
57
    [% FOREACH prediction IN predictions_loop %]
57
    [% FOREACH prediction IN predictions_loop %]
58
      <tr>
58
      <tr>
59
        <td>
59
        <td>
60
            [% IF ( matches = prediction.number.match('Spring(.*)') ) %]
60
            [% IF ( matches = prediction.number.match('(.*)Spring(.*)') ) %]
61
                Spring[% matches.join("") %]
61
                [% matches.0 %]Spring[% matches.1 %]
62
            [% ELSIF ( matches = prediction.number.match('Summer(.*)') ) %]
62
            [% ELSIF ( matches = prediction.number.match('(.*)Summer(.*)') ) %]
63
                Summer[% matches.join("") %]
63
                [% matches.0 %]Summer[% matches.1 %]
64
            [% ELSIF ( matches = prediction.number.match('Fall(.*)') ) %]
64
            [% ELSIF ( matches = prediction.number.match('(.*)Fall(.*)') ) %]
65
                Fall[% matches.join("") %]
65
                [% matches.0 %]Fall[% matches.1 %]
66
            [% ELSIF ( matches = prediction.number.match('Winter(.*)') ) %]
66
            [% ELSIF ( matches = prediction.number.match('(.*)Winter(.*)') ) %]
67
                Winter[% matches.join("") %]
67
                [% matches.0 %]Winter[% matches.1 %]
68
            [% ELSE %]
68
            [% ELSE %]
69
                [% prediction.number %]
69
                [% prediction.number %]
70
            [% END %]
70
            [% END %]
71
- 

Return to bug 13877