Bug 18480: Get rid of unwanted / distracting link in patron search for fund owner
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / showpredictionpattern.tt
1 [% USE KohaDates %]
2 <h2>Prediction pattern</h1>
3 [% IF (not_consistent_end_date) %]
4   <p><em>End date is not consistent with subscription length.</em></p>
5 [% END %]
6 [% IF (ask_for_irregularities) %]
7     <p><em>Please check issues that are NOT published (irregularities)</em></p>
8     [% IF (daily_options) %]
9         <p><em>
10             If there is a day (or more) in the week where issues are never
11             published, you can check corresponding boxes below.
12         </em></p>
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>
27     [% END %]
28 [% END %]
29 [% IF (predictions_loop) %]
30 <table id="predictionst">
31   <thead>
32     <tr>
33       <th>Number</th>
34       <th>Publication date</th>
35       [% IF (ask_for_irregularities) %]
36       <th>Not published</th>
37       [% END %]
38     </tr>
39   </thead>
40   <tbody>
41     [% FOREACH prediction IN predictions_loop %]
42       <tr>
43         <td>
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 %]
60             [% ELSE %]
61                 [% prediction.number | html %]
62             [% END %]
63         </td>
64         <td>
65           [% IF (prediction.publicationdate) %]
66             [% prediction.publicationdate | $KohaDates %]
67           [% ELSE %]
68             unknown
69           [% END %]
70         </td>
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" />
76           [% ELSE %]
77             <input type="checkbox" name="irregularity" value="[% prediction.issuenumber | html %]" data-dow="[% prediction.dow | html %]" />
78           [% END %]
79          </td>
80          [% END %]
81         [% END %]
82       </tr>
83     [% END %]
84   </tbody>
85 </table>
86
87 [% END %]