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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt (-274 / +279 lines)
Lines 15-35 Link Here
15
[% END %]
15
[% END %]
16
16
17
[% WRAPPER 'sub-header.inc' %]
17
[% WRAPPER 'sub-header.inc' %]
18
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
18
    <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
19
    <ol>
19
        <ol>
20
        <li>
20
            <li>
21
            <a href="/cgi-bin/koha/mainpage.pl">Home</a>
21
                <a href="/cgi-bin/koha/mainpage.pl">Home</a>
22
        </li>
22
            </li>
23
        <li>
23
            <li>
24
            <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a>
24
                <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a>
25
        </li>
25
            </li>
26
        <li>
26
            <li>
27
            <a href="#" aria-current="page">
27
                <a href="#" aria-current="page">
28
                Serial collection information for <em>[% bibliotitle | html %]</em>
28
                    Serial collection information for <em>[% bibliotitle | html %]</em>
29
            </a>
29
                </a>
30
        </li>
30
            </li>
31
    </ol>
31
        </ol>
32
</nav>
32
    </nav>
33
[% END %]
33
[% END %]
34
34
35
<div class="main container-fluid">
35
<div class="main container-fluid">
Lines 37-311 Link Here
37
        <div class="col-sm-10 col-sm-push-2">
37
        <div class="col-sm-10 col-sm-push-2">
38
            <main>
38
            <main>
39
39
40
    [% INCLUDE 'modals/serials_multi_receiving.inc' %]
40
                [% INCLUDE 'modals/serials_multi_receiving.inc' %]
41
41
42
[% UNLESS ( popup ) %]
42
                [% UNLESS ( popup ) %]
43
	[% INCLUDE 'serials-toolbar.inc' %]
43
                    [% INCLUDE 'serials-toolbar.inc' %]
44
44
45
    <h1>Serial collection information for  <em>[% bibliotitle | html %]</em>
45
                    <h1>
46
        [% IF location %] ([% AuthorisedValues.GetByCode( 'LOC', location ) | html %]) [% END %]
46
                        Serial collection information for  <em>[% bibliotitle | html %]</em>
47
		[% IF ( callnumber ) %]callnumber: [% callnumber | html %][% END %]</h1>
47
                        [% IF location %] ([% AuthorisedValues.GetByCode( 'LOC', location ) | html %]) [% END %]
48
[% END %]
48
                        [% IF ( callnumber ) %]callnumber: [% callnumber | html %][% END %]
49
49
                    </h1>
50
[% IF ( delete ) %]
51
    <div class="dialog alert">
52
        <h3>You are about to delete [% serialnumber | html %] serial(s). Do you want to continue?</h3>
53
        <form action="/cgi-bin/koha/serials/serials-collection.pl/#">
54
            [% IF countitems > 0 %]
55
                <h5>Number of items available: [% countitems | html %]</h5>
56
                <p>
57
                  <label>Delete associated items? <input type="checkbox" name="delitems" value="Yes" />Yes</label>
58
                </p>
59
            [% END %]
60
            <input type="hidden" name="op" value="delete_confirmed" />
61
            <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
62
            <input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" />
63
            [% FOREACH serialid IN serialsid %]
64
                <input type="hidden" name="serialid" value="[% serialid | html %]" />
65
            [% END %]
66
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
67
        </form>
68
        <form action="/cgi-bin/koha/serials/serials-collection.pl">
69
            <input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" />
70
            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
71
        </form>
72
    </div>
73
[% END %]
74
75
[% IF ( error_delitem ) %]
76
    <div class="dialog alert">
77
        <p><strong>Error</strong>: one or more associated items could not be deleted at this time.</p>
78
    </div>
79
[% END %]
80
81
[% IF ( subscriptions ) %]
82
<table>
83
[% IF ( subscriptions.size == 1 ) %]
84
<caption> Subscription summary</caption>
85
[% ELSE %]
86
<caption> Subscription summaries</caption>
87
[% END %]
88
<tr>
89
  <th>Subscription num.</th>
90
  <th>Frequency</th>
91
  <th>Numbering pattern</th>
92
  <th>Library</th>
93
  <th>Call number</th>
94
  <th>Notes</th>
95
  <th>&nbsp;</th>
96
</tr>
97
[% FOREACH subscription IN subscriptions %]
98
    <tr>
99
        <td><a href="subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]"># [% subscription.subscriptionid | html %]</a> </td>
100
        <td>[% subscription.frequency.description | html %]</td>
101
        <td>[% subscription.numberpattern.label | html %]</td>
102
        <td>[% IF subscription.branchcode %][% Branches.GetName( subscription.branchcode ) | html %][% END %]</td>
103
        <td> [% subscription.callnumber | html %]</td>
104
        <td> [% subscription.notes | html | html_line_break %]
105
            [% UNLESS subscription.closed %]
106
                [% IF ( subscription.subscriptionexpired ) %]
107
                    <p class="problem"><i class="fa fa-exclamation-circle problem" aria-hidden="true"></i> Subscription expired</p>
108
                [% END %]
109
            [% ELSE %]
110
                <br /> Subscription closed
111
            [% END %]
112
        </td>
113
        [% IF ( subscription.abouttoexpire ) || ( subscription.subscriptionexpired ) %]<td class="problem actions">[% ELSE %]<td class="actions">[% END %]
114
        [% UNLESS subscription.closed %]
115
            [% IF ( routing && CAN_user_serials_routing ) %]
116
                [% IF ( subscription.hasRouting ) %]
117
                    <a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid | html %]"><i class="fa fa-pencil"></i> Edit routing list</a>
118
                [% ELSE %]
119
                    <a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid | html %]&amp;op=new"><i class="fa fa-plus"></i> Create routing list</a>
120
                [% END %]
50
                [% END %]
121
            [% END %]
122
            [% IF ( subscription.abouttoexpire || subscription.subscriptionexpired) %]
123
                <a class="btn btn-default btn-xs subscription_renew" data-subscriptionid="[% subscription.subscriptionid | html %]" href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=[% subscription.subscriptionid | html %]"><i class="fa fa-refresh"></i> Renew</a>
124
            [% END %]
125
        [% ELSE %]
126
            &nbsp;
127
        [% END %]
128
        </td>
129
      </tr>
130
[% END %]
131
[% IF ( subscr ) %]
132
[% IF ( subscriptioncount > 1 ) %]
133
<tr ><td colspan="8">  <a href="serials-collection.pl?biblionumber=[% biblionumber | uri %]">See any subscription attached to this biblio</a></td>
134
</tr>
135
[% END %]
136
[% END %]
137
</table>
138
[% END %]
139
51
52
                [% IF ( delete ) %]
53
                    <div class="dialog alert">
54
                        <h3>You are about to delete [% serialnumber | html %] serial(s). Do you want to continue?</h3>
55
                        <form action="/cgi-bin/koha/serials/serials-collection.pl/#">
56
                            [% IF countitems > 0 %]
57
                                <h5>Number of items available: [% countitems | html %]</h5>
58
                                <p>
59
                                <label>Delete associated items? <input type="checkbox" name="delitems" value="Yes" />Yes</label>
60
                                </p>
61
                            [% END %]
62
                            <input type="hidden" name="op" value="delete_confirmed" />
63
                            <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
64
                            <input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" />
65
                            [% FOREACH serialid IN serialsid %]
66
                                <input type="hidden" name="serialid" value="[% serialid | html %]" />
67
                            [% END %]
68
                            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
69
                        </form>
70
                        <form action="/cgi-bin/koha/serials/serials-collection.pl">
71
                            <input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" />
72
                            <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
73
                        </form>
74
                    </div>
75
                [% END %]
140
76
141
[% IF ( years ) %]<form name="edition" action="/cgi-bin/koha/serials/serials-edit.pl" method="post">
77
                [% IF ( error_delitem ) %]
142
<div id="subscription_years" class="toptabs numbered">
78
                    <div class="dialog alert">
143
<ul class="nav nav-tabs" role="tablist">
79
                        <p><strong>Error</strong>: one or more associated items could not be deleted at this time.</p>
144
    [% FOREACH year IN years %]
80
                    </div>
145
        [% IF ( year.year ) %]
146
            [% IF year.year == 'manage' %]
147
                <li role="presentation"><a href="#subscription-year-manage" aria-controls="subscription-year-manage" role="tab" data-toggle="tab">Manage</a></li>
148
            [% ELSE %]
149
                <li role="presentation"><a href="#subscription-year-[% year.year | uri %]" aria-controls="subscription-year-[% year.year | uri %]" role="tab" data-toggle="tab">[% year.year | html %]</a></li>
150
            [% END %]
151
        [% END %]
152
    [% END %]
153
</ul>
154
<div class="tab-content">
155
 [% FOREACH year IN years %]
156
<div id="subscription-year-[% year.year | html %]" role="tabpanel" class="tab-pane">
157
    [% IF ( CAN_user_serials_receive_serials ) %]
158
        <p>
159
            <div class="btn-group"><input type="submit" value="Edit serials" class="btn btn-primary btn-sm" /></div>
160
            [% UNLESS subscription.closed %]
161
                <div class="btn-group">
162
                    <input type="button" value="Generate next" data-subscriptionid="[% subscriptionidlist | html %]" class="btn btn-default btn-sm generatenext" />
163
                </div>
164
                [% IF ( subscriptions.size == 1 and !serialsadditems ) %]&nbsp;
165
                    <div class="btn-group"><input type="button" value="Multi receiving" href="#multi_receiving" class="btn btn-default btn-sm" data-toggle="modal"></div>
166
                [% END %]
81
                [% END %]
167
            [% END %]
82
168
            <input type="button" value="Delete selected issues" class="delete-issues btn btn-default btn-sm" data-subscriptionids="[% subscriptionidlist | html %]" />
83
                [% IF ( subscriptions ) %]
169
        </p>
84
                    <table>
170
    [% END %]
85
                        [% IF ( subscriptions.size == 1 ) %]
171
      <span class="checkall">
86
                            <caption> Subscription summary</caption>
172
        <a class="CheckAll" href="#" data-year="[% year.year | html %]">Select all</a>
173
      </span> |
174
      <span class="clearall">
175
        <a class="CheckNone" href="#" data-year="[% year.year | html %]">Clear all</a>
176
      </span>
177
        <table class="subscription-year-table">
178
          <thead>
179
            <tr>
180
                [% IF ( CAN_user_serials_receive_serials ) %]<th>Edit</th>[% END %]
181
[% IF ( subscriptions.size > 1 ) %]
182
                <th># Subs</th>
183
[% END %]
184
                <th>Date published
185
                </th>
186
                <th>Date published (text)
187
                </th>
188
                <th>Date received
189
                </th>
190
                <th>Number
191
                </th>
192
                <th>Status
193
                </th>
194
                <th>Notes
195
                </th>
196
                <th>Library
197
                </th>
198
                [% IF ( routing ) %]<th>Routing</th>[% END %]
199
            </tr>
200
          </thead>
201
          <tbody>
202
      [% FOREACH serial IN year.serials %]
203
        <tr>
204
            [% IF ( CAN_user_serials_receive_serials ) %]
205
                <td>
206
                  [% UNLESS CAN_user_serials_receive_serials %]
207
                    disabled
208
                  [% ELSE %]
209
                    [% IF ( serial.subscriptionexpired ) %]
210
                    <input type="checkbox" name="serialid" value="[% serial.serialid | html %]" disabled="disabled" />
211
                    [% ELSE %]
212
                      [% IF ( delete ) %]
213
                        [% IF serialsid.grep("${serial.serialid}").size %]
214
                          <input type="checkbox" name="serialid" value="[% serial.serialid | html %]" disabled checked />
215
                        [% ELSE %]
87
                        [% ELSE %]
216
                          <input type="checkbox" name="serialid" value="[% serial.serialid | html %]" disabled />
88
                        <caption> Subscription summaries</caption>
217
                        [% END %]
89
                        [% END %]
218
                      [% ELSE %]
90
                        <tr>
219
                        [% IF serial.checked %]
91
                            <th>Subscription num.</th>
220
                          <input type="checkbox" name="serialid" value="[% serial.serialid | html %]" checked />
92
                            <th>Frequency</th>
221
                        [% ELSE %]
93
                            <th>Numbering pattern</th>
222
                          <input type="checkbox" name="serialid" value="[% serial.serialid | html %]" />
94
                            <th>Library</th>
95
                            <th>Call number</th>
96
                            <th>Notes</th>
97
                            <th>&nbsp;</th>
98
                        </tr>
99
                        [% FOREACH subscription IN subscriptions %]
100
                            <tr>
101
                                <td><a href="subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]"># [% subscription.subscriptionid | html %]</a> </td>
102
                                <td>[% subscription.frequency.description | html %]</td>
103
                                <td>[% subscription.numberpattern.label | html %]</td>
104
                                <td>[% IF subscription.branchcode %][% Branches.GetName( subscription.branchcode ) | html %][% END %]</td>
105
                                <td> [% subscription.callnumber | html %]</td>
106
                                <td> [% subscription.notes | html | html_line_break %]
107
                                    [% UNLESS subscription.closed %]
108
                                        [% IF ( subscription.subscriptionexpired ) %]
109
                                            <p class="problem"><i class="fa fa-exclamation-circle problem" aria-hidden="true"></i> Subscription expired</p>
110
                                        [% END %]
111
                                    [% ELSE %]
112
                                        <br /> Subscription closed
113
                                    [% END %]
114
                                </td>
115
                                [% IF ( subscription.abouttoexpire ) || ( subscription.subscriptionexpired ) %]
116
                                    <td class="problem actions">
117
                                [% ELSE %]
118
                                    <td class="actions">
119
                                [% END %]
120
                                [% UNLESS subscription.closed %]
121
                                    [% IF ( routing && CAN_user_serials_routing ) %]
122
                                        [% IF ( subscription.hasRouting ) %]
123
                                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid | html %]"><i class="fa fa-pencil"></i> Edit routing list</a>
124
                                        [% ELSE %]
125
                                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid | html %]&amp;op=new"><i class="fa fa-plus"></i> Create routing list</a>
126
                                        [% END %]
127
                                    [% END %]
128
                                    [% IF ( subscription.abouttoexpire || subscription.subscriptionexpired) %]
129
                                        <a class="btn btn-default btn-xs subscription_renew" data-subscriptionid="[% subscription.subscriptionid | html %]" href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=[% subscription.subscriptionid | html %]"><i class="fa fa-refresh"></i> Renew</a>
130
                                    [% END %]
131
                                [% ELSE %]
132
                                    &nbsp;
133
                                [% END %]
134
                                </td>
135
                            </tr>
223
                        [% END %]
136
                        [% END %]
224
                      [% END %]
137
                        [% IF ( subscr ) %]
225
                    [% END %]
138
                            [% IF ( subscriptioncount > 1 ) %]
226
                  [% END %]
139
                                <tr>
227
                </td>
140
                                    <td colspan="8">  <a href="serials-collection.pl?biblionumber=[% biblionumber | uri %]">See any subscription attached to this biblio</a></td>
228
            [% END %]
141
                                </tr>
229
[% IF ( subscriptions.size > 1 ) %]
142
                            [% END %]
230
                 <td><a href="serials-collection.pl?subscriptionid=[% serial.subscriptionid | uri %]">[% serial.subscriptionid | html %]</a></td>
143
                        [% END %]
231
[% END %]
144
                    </table>
232
                <td data-order="[% serial.publisheddate | html %]">
233
                    [% IF serial.publisheddate %]
234
                        [% serial.publisheddate | $KohaDates %]
235
                    [% ELSE %]
236
                        <span>Unknown</span>
237
                    [% END %]
238
                </td>
239
                <td data-order="[% serial.publisheddatetext | html %]">
240
                    [% IF serial.publisheddatetext %]
241
                        [% serial.publisheddatetext | html %]
242
                    [% END %]
243
                </td>
244
                <td data-order="[% serial.planneddate | html %]">
245
                    [% IF serial.planneddate %]
246
                        [% serial.planneddate | $KohaDates %]
247
                    [% ELSE %]
248
                        <span>Unknown</span>
249
                    [% END %]
250
                </td>
251
                <td>
252
                    [% IF ( matches = serial.serialseq.match('(.*)Spring(.*)') ) %]
253
                        [% matches.0 | html %]Spring[% matches.1 | html %]
254
                    [% ELSIF ( matches = serial.serialseq.match('(.*)Summer(.*)') ) %]
255
                        [% matches.0 | html %]Summer[% matches.1 | html %]
256
                    [% ELSIF ( matches = serial.serialseq.match('(.*)Fall(.*)') ) %]
257
                        [% matches.0 | html %]Fall[% matches.1 | html %]
258
                    [% ELSIF ( matches = serial.serialseq.match('(.*)Winter(.*)') ) %]
259
                        [% matches.0 | html %]Winter[% matches.1 | html %]
260
                    [% ELSIF ( matches = prediction.number.match('(.*)Spr(.*)') ) %]
261
                        [% matches.0 | html %]Spr[% matches.1 | html %]
262
                    [% ELSIF ( matches = prediction.number.match('(.*)Sum(.*)') ) %]
263
                        [% matches.0 | html %]Sum[% matches.1 | html %]
264
                    [% ELSIF ( matches = prediction.number.match('(.*)Fal(.*)') ) %]
265
                        [% matches.0 | html %]Fal[% matches.1 | html %]
266
                    [% ELSIF ( matches = prediction.number.match('(.*)Win(.*)') ) %]
267
                        [% matches.0 | html %]Win[% matches.1 | html %]
268
                    [% ELSE %]
269
                        [% serial.serialseq | html %]
270
                    [% END %]
271
                </td>
272
                <td>
273
                    [% IF ( serial.status1 ) %]<span>Expected</span>[% END %]
274
                    [% IF ( serial.status2 ) %]<span>Arrived</span>[% END %]
275
                    [% IF ( serial.status3 ) %]<span>Late</span>[% END %]
276
                    [% IF ( serial.status4 ) %]<span>Missing</span>[% END %]
277
                    [% IF ( serial.status41 ) %]<span>Missing (never received)</span>[% END %]
278
                    [% IF ( serial.status42 ) %]<span>Missing (sold out)</span>[% END %]
279
                    [% IF ( serial.status43 ) %]<span>Missing (damaged)</span>[% END %]
280
                    [% IF ( serial.status44 ) %]<span>Missing (lost)</span>[% END %]
281
                    [% IF ( serial.status5 ) %]<span>Not issued</span>[% END %]
282
                    [% IF ( serial.status6 ) %]<span>Delete</span>[% END %]
283
                    [% IF ( serial.status7 ) %]<span>Claimed</span>[% END %]
284
                    [% IF ( serial.status8 ) %]<span>Stopped</span>[% END %]
285
                </td>
286
                <td>
287
                    [% serial.notes | html %]
288
                </td>
289
                <td>
290
                    [% Branches.GetName( serial.branchcode ) | html %]
291
                </td>
292
                [% IF ( routing ) %]
293
                <td class="actions">
294
                    <a href="/cgi-bin/koha/serials/routing-preview.pl?ok=1&amp;subscriptionid=[% serial.subscriptionid | uri %]&amp;issue=[% serial.serialseq.replace("'", "\\'") | uri %]%20([% serial.publisheddate | $KohaDates %])" class="btn btn-default btn-xs print_list"><i class="fa fa-print"></i> Print list</a>
295
                </td>
296
                [% END %]
145
                [% END %]
297
            </tr>
298
          [% END %]
299
        </tbody>
300
      </table>
301
    </div>
302
    [% END %]
303
    </div>
304
  <input type="hidden" name="subscriptionid" value="[% subscriptionidlist | html %]" />
305
146
306
</div>
147
                [% IF ( years ) %]
307
</form>
148
                    <form name="edition" action="/cgi-bin/koha/serials/serials-edit.pl" method="post">
308
[% END %]
149
                        <div id="subscription_years" class="toptabs numbered">
150
                            <ul class="nav nav-tabs" role="tablist">
151
                                [% FOREACH year IN years %]
152
                                    [% IF ( year.year ) %]
153
                                        [% IF year.year == 'manage' %]
154
                                            <li role="presentation"><a href="#subscription-year-manage" aria-controls="subscription-year-manage" role="tab" data-toggle="tab">Manage</a></li>
155
                                        [% ELSE %]
156
                                            <li role="presentation"><a href="#subscription-year-[% year.year | uri %]" aria-controls="subscription-year-[% year.year | uri %]" role="tab" data-toggle="tab">[% year.year | html %]</a></li>
157
                                        [% END %]
158
                                    [% END %]
159
                                [% END %]
160
                            </ul>
161
162
                            <div class="tab-content">
163
                                [% FOREACH year IN years %]
164
                                    <div id="subscription-year-[% year.year | html %]" role="tabpanel" class="tab-pane">
165
                                        [% IF ( CAN_user_serials_receive_serials ) %]
166
                                            <p>
167
                                                <div class="btn-group"><input type="submit" value="Edit serials" class="btn btn-primary btn-sm" /></div>
168
                                                [% UNLESS subscription.closed %]
169
                                                    <div class="btn-group">
170
                                                        <input type="button" value="Generate next" data-subscriptionid="[% subscriptionidlist | html %]" class="btn btn-default btn-sm generatenext" />
171
                                                    </div>
172
                                                    [% IF ( subscriptions.size == 1 and !serialsadditems ) %]&nbsp;
173
                                                        <div class="btn-group"><input type="button" value="Multi receiving" href="#multi_receiving" class="btn btn-default btn-sm" data-toggle="modal"></div>
174
                                                    [% END %]
175
                                                [% END %]
176
                                                <input type="button" value="Delete selected issues" class="delete-issues btn btn-default btn-sm" data-subscriptionids="[% subscriptionidlist | html %]" />
177
                                            </p>
178
                                        [% END %]
179
180
                                        <span class="checkall">
181
                                            <a class="CheckAll" href="#" data-year="[% year.year | html %]">Select all</a>
182
                                        </span> |
183
                                        <span class="clearall">
184
                                            <a class="CheckNone" href="#" data-year="[% year.year | html %]">Clear all</a>
185
                                        </span>
186
187
                                        <table class="subscription-year-table">
188
                                            <thead>
189
                                                <tr>
190
                                                    [% IF ( CAN_user_serials_receive_serials ) %]
191
                                                        <th>Edit</th>
192
                                                    [% END %]
193
                                                    [% IF ( subscriptions.size > 1 ) %]
194
                                                        <th># Subs</th>
195
                                                    [% END %]
196
                                                    <th>Date published</th>
197
                                                    <th>Date published (text)</th>
198
                                                    <th>Date received</th>
199
                                                    <th>Number</th>
200
                                                    <th>Status</th>
201
                                                    <th>Notes</th>
202
                                                    <th>Library</th>
203
                                                    [% IF ( routing ) %]
204
                                                        <th>Routing</th>
205
                                                    [% END %]
206
                                                </tr>
207
                                            </thead>
208
                                            <tbody>
209
                                                [% FOREACH serial IN year.serials %]
210
                                                    <tr>
211
                                                        [% IF ( CAN_user_serials_receive_serials ) %]
212
                                                            <td>
213
                                                                [% UNLESS CAN_user_serials_receive_serials %]
214
                                                                    disabled
215
                                                                [% ELSE %]
216
                                                                    [% IF ( serial.subscriptionexpired ) %]
217
                                                                        <input type="checkbox" name="serialid" value="[% serial.serialid | html %]" disabled="disabled" />
218
                                                                    [% ELSE %]
219
                                                                        [% IF ( delete ) %]
220
                                                                            [% IF serialsid.grep("${serial.serialid}").size %]
221
                                                                                <input type="checkbox" name="serialid" value="[% serial.serialid | html %]" disabled checked />
222
                                                                            [% ELSE %]
223
                                                                                <input type="checkbox" name="serialid" value="[% serial.serialid | html %]" disabled />
224
                                                                            [% END %]
225
                                                                        [% ELSE %]
226
                                                                            [% IF serial.checked %]
227
                                                                                <input type="checkbox" name="serialid" value="[% serial.serialid | html %]" checked />
228
                                                                            [% ELSE %]
229
                                                                                <input type="checkbox" name="serialid" value="[% serial.serialid | html %]" />
230
                                                                            [% END %]
231
                                                                        [% END %]
232
                                                                    [% END %]
233
                                                                [% END %]
234
                                                            </td>
235
                                                        [% END %]
236
                                                        [% IF ( subscriptions.size > 1 ) %]
237
                                                            <td><a href="serials-collection.pl?subscriptionid=[% serial.subscriptionid | uri %]">[% serial.subscriptionid | html %]</a></td>
238
                                                        [% END %]
239
                                                        <td data-order="[% serial.publisheddate | html %]">
240
                                                            [% IF serial.publisheddate %]
241
                                                                [% serial.publisheddate | $KohaDates %]
242
                                                            [% ELSE %]
243
                                                                <span>Unknown</span>
244
                                                            [% END %]
245
                                                        </td>
246
                                                        <td data-order="[% serial.publisheddatetext | html %]">
247
                                                            [% IF serial.publisheddatetext %]
248
                                                                [% serial.publisheddatetext | html %]
249
                                                            [% END %]
250
                                                        </td>
251
                                                        <td data-order="[% serial.planneddate | html %]">
252
                                                            [% IF serial.planneddate %]
253
                                                                [% serial.planneddate | $KohaDates %]
254
                                                            [% ELSE %]
255
                                                                <span>Unknown</span>
256
                                                            [% END %]
257
                                                        </td>
258
                                                        <td>
259
                                                            [% IF ( matches = serial.serialseq.match('(.*)Spring(.*)') ) %]
260
                                                                [% matches.0 | html %]Spring[% matches.1 | html %]
261
                                                            [% ELSIF ( matches = serial.serialseq.match('(.*)Summer(.*)') ) %]
262
                                                                [% matches.0 | html %]Summer[% matches.1 | html %]
263
                                                            [% ELSIF ( matches = serial.serialseq.match('(.*)Fall(.*)') ) %]
264
                                                                [% matches.0 | html %]Fall[% matches.1 | html %]
265
                                                            [% ELSIF ( matches = serial.serialseq.match('(.*)Winter(.*)') ) %]
266
                                                                [% matches.0 | html %]Winter[% matches.1 | html %]
267
                                                            [% ELSIF ( matches = prediction.number.match('(.*)Spr(.*)') ) %]
268
                                                                [% matches.0 | html %]Spr[% matches.1 | html %]
269
                                                            [% ELSIF ( matches = prediction.number.match('(.*)Sum(.*)') ) %]
270
                                                                [% matches.0 | html %]Sum[% matches.1 | html %]
271
                                                            [% ELSIF ( matches = prediction.number.match('(.*)Fal(.*)') ) %]
272
                                                                [% matches.0 | html %]Fal[% matches.1 | html %]
273
                                                            [% ELSIF ( matches = prediction.number.match('(.*)Win(.*)') ) %]
274
                                                                [% matches.0 | html %]Win[% matches.1 | html %]
275
                                                            [% ELSE %]
276
                                                                [% serial.serialseq | html %]
277
                                                            [% END %]
278
                                                        </td>
279
                                                        <td>
280
                                                            [% IF ( serial.status1 ) %]<span>Expected</span>[% END %]
281
                                                            [% IF ( serial.status2 ) %]<span>Arrived</span>[% END %]
282
                                                            [% IF ( serial.status3 ) %]<span>Late</span>[% END %]
283
                                                            [% IF ( serial.status4 ) %]<span>Missing</span>[% END %]
284
                                                            [% IF ( serial.status41 ) %]<span>Missing (never received)</span>[% END %]
285
                                                            [% IF ( serial.status42 ) %]<span>Missing (sold out)</span>[% END %]
286
                                                            [% IF ( serial.status43 ) %]<span>Missing (damaged)</span>[% END %]
287
                                                            [% IF ( serial.status44 ) %]<span>Missing (lost)</span>[% END %]
288
                                                            [% IF ( serial.status5 ) %]<span>Not issued</span>[% END %]
289
                                                            [% IF ( serial.status6 ) %]<span>Delete</span>[% END %]
290
                                                            [% IF ( serial.status7 ) %]<span>Claimed</span>[% END %]
291
                                                            [% IF ( serial.status8 ) %]<span>Stopped</span>[% END %]
292
                                                        </td>
293
                                                        <td>
294
                                                            [% serial.notes | html %]
295
                                                        </td>
296
                                                        <td>
297
                                                            [% Branches.GetName( serial.branchcode ) | html %]
298
                                                        </td>
299
                                                        [% IF ( routing ) %]
300
                                                            <td class="actions">
301
                                                                <a href="/cgi-bin/koha/serials/routing-preview.pl?ok=1&amp;subscriptionid=[% serial.subscriptionid | uri %]&amp;issue=[% serial.serialseq.replace("'", "\\'") | uri %]%20([% serial.publisheddate | $KohaDates %])" class="btn btn-default btn-xs print_list"><i class="fa fa-print"></i> Print list</a>
302
                                                            </td>
303
                                                        [% END %]
304
                                                    </tr>
305
                                                [% END %]
306
                                            </tbody>
307
                                        </table>
308
                                    </div>
309
                                [% END %]
310
                            </div>
311
                            <input type="hidden" name="subscriptionid" value="[% subscriptionidlist | html %]" />
312
                        </div>
313
                    </form>
314
                [% END %]
309
315
310
            </main>
316
            </main>
311
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
317
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
312
- 

Return to bug 32690