2 <h2>Prediction pattern</h2>
3 [% IF (not_consistent_end_date) %]
4 <p><em>End date is not consistent with subscription length.</em></p>
6 [% IF (ask_for_irregularities) %]
7 <p><em>Please check issues that are NOT published (irregularities)</em></p>
8 [% IF (daily_options) %]
10 If there is a day (or more) in the week where issues are never
11 published, you can check corresponding boxes below.
13 <input type="checkbox" id="monday" data-dow="1" class="skipday" />
14 <label for="monday">Monday</label>
15 <input type="checkbox" id="tuesday" data-dow="2" class="skipday" />
16 <label for="tuesday">Tuesday</label>
17 <input type="checkbox" id="wednesday" data-dow="3" class="skipday" />
18 <label for="wednesday">Wednesday</label>
19 <input type="checkbox" id="thursday" data-dow="4" class="skipday" />
20 <label for="thursday">Thursday</label>
21 <input type="checkbox" id="friday" data-dow="5" class="skipday" />
22 <label for="friday">Friday</label>
23 <input type="checkbox" id="saturday" data-dow="6" class="skipday" />
24 <label for="saturday">Saturday</label>
25 <input type="checkbox" id="sunday" data-dow="7" class="skipday" />
26 <label for="sunday">Sunday</label>
29 [% IF (predictions_loop) %]
30 <table id="predictionst">
34 <th>Publication date</th>
35 [% IF (ask_for_irregularities) %]
36 <th>Not published</th>
41 [% FOREACH prediction IN predictions_loop %]
44 [% IF ( matches = prediction.number.match('(.*)Spring(.*)') ) %]
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 %]
61 [% prediction.number | html %]
65 [% IF (prediction.publicationdate) %]
66 [% prediction.publicationdate | $KohaDates %]
71 [% IF (ask_for_irregularities) %]
72 <td style="text-align:center">
73 [% UNLESS (loop.first) %]
74 [% IF (prediction.not_published) %]
75 <input type="checkbox" name="irregularity" value="[% prediction.issuenumber | html %]" data-dow="[% prediction.dow | html %]" checked="checked" />
77 <input type="checkbox" name="irregularity" value="[% prediction.issuenumber | html %]" data-dow="[% prediction.dow | html %]" />
87 <fieldset class="action">
88 <button class="btn btn-default btn-sm" id="hidepredictionpattern">Done</button>