Lines 28-458
Link Here
|
28 |
<div class="col-sm-10 col-sm-push-2"> |
28 |
<div class="col-sm-10 col-sm-push-2"> |
29 |
<main> |
29 |
<main> |
30 |
|
30 |
|
31 |
[% INCLUDE 'serials-toolbar.inc' %] |
31 |
[% INCLUDE 'serials-toolbar.inc' %] |
32 |
[% INCLUDE 'mana/mana-comment-status.inc' %] |
32 |
[% INCLUDE 'mana/mana-comment-status.inc' %] |
33 |
|
33 |
|
34 |
<h1>Subscription for [% bibliotitle | html %] [% IF closed %](closed)[% END %]</h1> |
34 |
<h1>Subscription for [% bibliotitle | html %] [% IF closed %](closed)[% END %]</h1> |
35 |
[% IF ( abouttoexpire ) %] |
|
|
36 |
[% UNLESS closed %] |
37 |
<div class="dialog message">Subscription will expire [% enddate | html %]. <a href="#" id="renewsub">Renew this subscription</a>.</div> |
38 |
[% END %] |
39 |
[% END %] |
40 |
[% IF ( NEEDSCONFIRMATION ) %] |
41 |
<div id="circ_needsconfirmation" class="dialog alert"> |
42 |
<h3>Please confirm subscription deletion</h3> |
43 |
|
35 |
|
44 |
<ul> |
36 |
[% IF ( abouttoexpire ) %] |
45 |
[% IF ( NOTEXPIRED ) %] <li>The subscription has not expired yet</li> [% END %] |
37 |
[% UNLESS closed %] |
46 |
[% IF ( LINKEDISSUES ) %] <li>The subscription has linked issues</li> [% END %] |
38 |
<div class="dialog message">Subscription will expire [% enddate | html %]. <a href="#" id="renewsub">Renew this subscription</a>.</div> |
47 |
[% IF ( LINKEDITEMS ) %] <li>The subscription has linked items<br /> Those items won't be deleted</li> [% END %] |
39 |
[% END %] |
48 |
</ul> |
40 |
[% END %] |
49 |
<form method="post" action="/cgi-bin/koha/serials/subscription-detail.pl"> |
|
|
50 |
<input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" /> |
51 |
<input type="hidden" name="issueconfirmed" value="1" /> |
52 |
<input type="hidden" name="op" value="del" /> |
53 |
<button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> Yes, delete (Y)</button> |
54 |
</form> |
55 |
<form method="get" action="/cgi-bin/koha/serials/subscription-detail.pl"> |
56 |
<input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" /> |
57 |
<button type="submit" class="deny" accesskey="n"><i class="fa fa-fw fa-remove"></i> No, don't delete (N)</button> |
58 |
</form> |
59 |
|
41 |
|
60 |
</div> |
42 |
[% IF ( NEEDSCONFIRMATION ) %] |
61 |
[% END %] <!-- NEEDSCONFIRMATION --> |
43 |
<div id="circ_needsconfirmation" class="dialog alert"> |
62 |
[% IF mana_code.defined %] |
44 |
<h3>Please confirm subscription deletion</h3> |
63 |
<div id="alert-community" class="dialog message"> |
|
|
64 |
<p> |
65 |
[% mana_code | html %] |
66 |
</p> |
67 |
</div> |
68 |
[% END %] |
69 |
|
45 |
|
70 |
<div id="subscription_description" class="toptabs"> |
46 |
<ul> |
71 |
<ul class="ui-tabs-nav"> |
47 |
[% IF ( NOTEXPIRED ) %] <li>The subscription has not expired yet</li> [% END %] |
72 |
<li><a href="#subscription_info">Information</a></li> |
48 |
[% IF ( LINKEDISSUES ) %] <li>The subscription has linked issues</li> [% END %] |
73 |
<li><a href="#subscription_planning">Planning</a></li> |
49 |
[% IF ( LINKEDITEMS ) %] <li>The subscription has linked items<br /> Those items won't be deleted</li> [% END %] |
74 |
<li><a href="#subscription_issues">Issues</a></li> |
50 |
</ul> |
75 |
<li><a href="#subscription_summary">Summary</a></li> |
|
|
76 |
[% IF orders_grouped.size %] |
77 |
<li> |
78 |
<a href="#acquisition_details">Acquisition details</a> |
79 |
</li> |
80 |
[% END %] |
81 |
</ul> |
82 |
|
51 |
|
83 |
<div id="subscription_info"> |
52 |
<form method="post" action="/cgi-bin/koha/serials/subscription-detail.pl"> |
84 |
<div class="row"> |
53 |
<input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" /> |
85 |
<div class="col-sm-6"> |
54 |
<input type="hidden" name="issueconfirmed" value="1" /> |
86 |
<div class="rows"> |
55 |
<input type="hidden" name="op" value="del" /> |
87 |
<ol> |
56 |
<button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> Yes, delete (Y)</button> |
88 |
<li><span class="label">Subscription ID: </span>[% subscriptionid | html %]</li> |
57 |
</form> |
89 |
<li><span class="label">Librarian identity:</span> [% librarian | html %]</li> |
|
|
90 |
<li><span class="label">Vendor:</span> <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% aqbooksellerid | uri %]">[% aqbooksellername | html %]</a></li> |
91 |
<li><span class="label">Biblio:</span> <a href="/cgi-bin/koha/catalogue/[% default_bib_view | uri %].pl?biblionumber=[% bibnum | uri %]">[% bibliotitle | html %]</a> <i>([% bibnum | html %])</i></li> |
92 |
[% IF ( OPACBaseURL ) %] |
93 |
<li> |
94 |
<span class="label">OPAC view:</span> |
95 |
<a id="view-subscription-in-opac" target="_blank" href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | uri %]">Open in new window.</a> |
96 |
</li> |
97 |
[% END %] |
98 |
[% IF ( branchcode ) %]<li><span class="label">Library:</span> [% Branches.GetName( branchcode ) | html %]</li>[% END %] |
99 |
[% IF ( serialsadditems ) %] |
100 |
<li><span class="label">Items:</span> Serial receipt creates an item record.</li> |
101 |
[% ELSE %] |
102 |
<li><span class="label">Items:</span> Serial receipt does not create an item record.</li> |
103 |
[% END %] |
104 |
<li> |
105 |
<span class="label">Serial number:</span> |
106 |
[% IF skip_serialseq %] |
107 |
Serial number is skipped when an irregularity is found. |
108 |
[% ELSE %] |
109 |
Serial number is kept when an irregularity is found. |
110 |
[% END %] |
111 |
</li> |
112 |
<li><span class="label">Grace period:</span> [% graceperiod | html %]</li> |
113 |
</ol> |
114 |
</div> |
115 |
</div> |
116 |
<div class="col-sm-6"> |
117 |
<div class="rows"> |
118 |
<ol> |
119 |
[% IF ( location ) %]<li><span class="label">Location:</span> [% location | html %]</li>[% END %] |
120 |
[% IF ( callnumber ) %]<li><span class="label">Call number:</span> [% callnumber | html %]</li>[% END %] |
121 |
[% IF ( staffdisplaycount ) %]<li><span class="label">Number of issues to display to staff:</span>[% staffdisplaycount | html %]</li>[% END %] |
122 |
[% IF ( opacdisplaycount ) %]<li><span class="label">Number of issues to display in OPAC:</span>[% opacdisplaycount | html %]</li>[% END %] |
123 |
[% IF ( letter ) %] |
124 |
<li> |
125 |
<span class="label">Patron notification:</span> [% letter | html %] |
126 |
(<a href="/cgi-bin/koha/serials/viewalerts.pl?subscriptionid=[% subscriptionid | uri %]">subscribers</a>) |
127 |
</li> |
128 |
[% END %] |
129 |
[% IF ( hasRouting ) %]<li><span class="label">Routing:</span> yes</li>[% END %] |
130 |
</ol> |
131 |
</div> |
132 |
</div> |
133 |
</div> |
134 |
|
58 |
|
135 |
[% IF available_additional_fields %] |
59 |
<form method="get" action="/cgi-bin/koha/serials/subscription-detail.pl"> |
136 |
<hr> |
60 |
<input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" /> |
137 |
<div class="row"> |
61 |
<button type="submit" class="deny" accesskey="n"><i class="fa fa-fw fa-remove"></i> No, don't delete (N)</button> |
138 |
<div class="col-sm-6"> |
62 |
</form> |
139 |
<h3>Additional fields:</h3> |
63 |
</div> |
140 |
<div class="rows"> |
64 |
[% END %] <!-- NEEDSCONFIRMATION --> |
141 |
<ol> |
|
|
142 |
[% INCLUDE 'additional-fields-display.inc' available=available_additional_fields values=additional_field_values %] |
143 |
</ol> |
144 |
</div> |
145 |
</div> |
146 |
</div> |
147 |
[% END %] |
148 |
</div> |
149 |
|
65 |
|
150 |
<div id="subscription_planning"> |
66 |
[% IF mana_code.defined %] |
151 |
<div class="row"> |
67 |
<div id="alert-community" class="dialog message"> |
152 |
<div class="col-sm-12"> |
68 |
<p> |
153 |
<div class="rows"> |
69 |
[% mana_code | html %] |
154 |
<ol> |
70 |
</p> |
155 |
<li><span class="label">Beginning date:</span> [% startdate | html %] |
71 |
</div> |
156 |
</li> |
|
|
157 |
<li><span class="label">Frequency:</span> |
158 |
[% frequency.description | html %] |
159 |
</li> |
160 |
<li> |
161 |
<span class="label">Manual history: </span> |
162 |
[% IF ( manualhistory ) %] |
163 |
Enabled <a href="/cgi-bin/koha/serials/subscription-history.pl?subscriptionid=[% subscriptionid | uri %]">Edit history</a> |
164 |
[% ELSE %] |
165 |
Disabled |
166 |
[% END %] |
167 |
</li> |
168 |
<li><span class="label">Number pattern:</span> |
169 |
[% numberpattern.label | html %] |
170 |
</li> |
171 |
<li><table> |
172 |
<tr> |
173 |
<td>Starting with:</td> |
174 |
[% IF (has_X) %] |
175 |
<td align="center">[% lastvalue1 | html %]</td> |
176 |
[% END %] |
72 |
[% END %] |
177 |
[% IF (has_Y) %] |
|
|
178 |
<td align="center">[% lastvalue2 | html %]</td> |
179 |
[% END %] |
180 |
[% IF (has_Z) %] |
181 |
<td align="center">[% lastvalue3 | html %]</td> |
182 |
[% END %] |
183 |
</tr> |
184 |
<tr> |
185 |
<td>Rollover:</td> |
186 |
[% IF (has_X) %] |
187 |
<td align="center">[% numberpattern.whenmorethan1 | html %]</td> |
188 |
[% END %] |
189 |
[% IF (has_Y) %] |
190 |
<td align="center">[% numberpattern.whenmorethan2 | html %]</td> |
191 |
[% END %] |
192 |
[% IF (has_Z) %] |
193 |
<td align="center">[% numberpattern.whenmorethan3 | html %]</td> |
194 |
[% END %] |
195 |
</tr> |
196 |
</table></li> |
197 |
[% IF ( irregular_issues ) %] |
198 |
<li><span class="label">Irregularity:</span> [% irregular_issues | html %] issues |
199 |
</li> |
200 |
[% END %] |
201 |
<li><span class="label">First arrival:</span> [% firstacquidate | html %] |
202 |
</li> |
203 |
[% IF ( numberlength ) %]<li><span class="label">Number of issues:</span> [% numberlength | html %]</li>[% END %] |
204 |
[% IF ( weeklength ) %]<li><span class="label">Number of weeks:</span> [% weeklength | html %]</li>[% END %] |
205 |
[% IF ( monthlength ) %]<li><span class="label">Number of months:</span> [% monthlength | html %]</li>[% END %] |
206 |
</ol> |
207 |
</div> |
208 |
</div> |
209 |
</div> |
210 |
</div> |
211 |
<div id="subscription_numbering" style="display:none;"> |
212 |
<h3>Numbering calculation</h3> |
213 |
<p><label>Numbering formula:</label> [% numberingmethod | html %]</p> |
214 |
<table> |
215 |
<tr> |
216 |
<th> </th> |
217 |
<th>X</th> |
218 |
<th>Y</th> |
219 |
<th>Z</th> |
220 |
</tr> |
221 |
<tr> |
222 |
<td>Add</td> |
223 |
<td> |
224 |
[% add1 | html %] |
225 |
</td> |
226 |
<td> |
227 |
[% add2 | html %] |
228 |
</td> |
229 |
<td> |
230 |
[% add3 | html %] |
231 |
</td> |
232 |
</tr> |
233 |
<tr> |
234 |
<td>once every</td> |
235 |
<td>[% every1 | html %]</td> |
236 |
<td>[% every2 | html %]</td> |
237 |
<td>[% every3 | html %]</td> |
238 |
</tr> |
239 |
<tr> |
240 |
<td>When more than</td> |
241 |
<td>[% whenmorethan1 | html %] [% IF ( innerloop1 ) %]<br /> |
242 |
<i>(is [% innerloop1 | html %])</i>[% END %]</td> |
243 |
<td>[% whenmorethan2 | html %] [% IF ( innerloop2 ) %]<br /> |
244 |
<i>(is [% innerloop2 | html %])</i>[% END %]</td> |
245 |
<td>[% whenmorethan3 | html %] [% IF ( innerloop3 ) %]<br /> |
246 |
<i>(is [% innerloop3 | html %])</i>[% END %]</td> |
247 |
</tr> |
248 |
<tr> |
249 |
<td>Set back to</td> |
250 |
<td>[% setto1 | html %]</td> |
251 |
<td>[% setto2 | html %]</td> |
252 |
<td>[% setto3 | html %]</td> |
253 |
</tr> |
254 |
<tr> |
255 |
<td> |
256 |
Inner counter |
257 |
</td> |
258 |
<td>[% innerloop1 | html %]</td> |
259 |
<td>[% innerloop2 | html %]</td> |
260 |
<td>[% innerloop3 | html %]</td> |
261 |
</tr> |
262 |
<tr> |
263 |
<td> |
264 |
Last value |
265 |
</td> |
266 |
<td>[% lastvalue1 | html %]</td> |
267 |
<td>[% lastvalue2 | html %]</td> |
268 |
<td>[% lastvalue3 | html %]</td> |
269 |
</tr> |
270 |
</table> |
271 |
</div> |
272 |
<div id="subscription_issues"> |
273 |
<table> |
274 |
<tr> |
275 |
<th>Issue number</th> |
276 |
<th>Planned date</th> |
277 |
<th>Published date</th> |
278 |
<th>Published date (text)</th> |
279 |
<th>Status</th> |
280 |
</tr> |
281 |
[% FOREACH serialslis IN serialslist %] |
282 |
<tr> |
283 |
<td> |
284 |
[% serialslis.serialseq | html %] |
285 |
</td> |
286 |
<td> |
287 |
[% IF serialslis.planneddate %] |
288 |
[% serialslis.planneddate | html %] |
289 |
[% ELSE %] |
290 |
Unknown |
291 |
[% END %] |
292 |
</td> |
293 |
<td> |
294 |
[% IF serialslis.publisheddate %] |
295 |
[% serialslis.publisheddate | html %] |
296 |
[% ELSE %] |
297 |
Unknown |
298 |
[% END %] |
299 |
</td> |
300 |
<td> |
301 |
[% serialslis.publisheddatetext | html %] |
302 |
</td> |
303 |
<td> |
304 |
[% IF ( serialslis.status1 ) %]Expected[% END %] |
305 |
[% IF ( serialslis.status2 ) %]Arrived[% END %] |
306 |
[% IF ( serialslis.status3 ) %]Late[% END %] |
307 |
[% IF ( serialslis.status4 ) %]Missing[% END %] |
308 |
[% IF ( serialslis.status41 ) %]Missing (never received)[% END %] |
309 |
[% IF ( serialslis.status42 ) %]Missing (sold out)[% END %] |
310 |
[% IF ( serialslis.status43 ) %]Missing (damaged)[% END %] |
311 |
[% IF ( serialslis.status44 ) %]Missing (lost)[% END %] |
312 |
[% IF ( serialslis.status5 ) %]Not issued[% END %] |
313 |
[% IF ( serialslis.status6 ) %]Delete[% END %] |
314 |
[% IF ( serialslis.status7 ) %] |
315 |
Claimed |
316 |
[% IF ( serialslis.claimdate ) %] |
317 |
[% serialslis.claimdate | html %] |
318 |
[% END %] |
319 |
[% END %] |
320 |
[% IF ( serialslis.status8 ) %]Stopped[% END %] |
321 |
</td> |
322 |
</tr> |
323 |
[% END %] |
324 |
</table> |
325 |
</div> |
326 |
<div id="subscription_summary"> |
327 |
<div class="row"> |
328 |
<div class="col-sm-12"> |
329 |
<div class="rows"> |
330 |
<ol> |
331 |
<li><span class="label">Start date:</span> [% startdate | html %] </li> |
332 |
<li><span class="label">End date:</span> [% enddate | html %]</li> |
333 |
<li><span class="label">History start date:</span> [% histstartdate | html %] </li> |
334 |
<li><span class="label">History end date:</span> [% histenddate | html %]</li> |
335 |
<li><span class="label">Received issues:</span>[% recievedlist | html | html_line_break %]</li> |
336 |
<li><span class="label">Missing issues:</span>[% missinglist | html | html_line_break %]</li> |
337 |
<li><span class="label">Nonpublic note:</span>[% internalnotes | html | html_line_break %]</li> |
338 |
<li><span class="label">Public note:</span>[% notes | html | html_line_break %]</li> |
339 |
<li><span class="label">History staff note:</span>[% librariannote | html | html_line_break %]</li> |
340 |
<li><span class="label">History OPAC note:</span>[% opacnote | html | html_line_break %]</li> |
341 |
</ol> |
342 |
</div> |
343 |
</div> |
344 |
</div> |
345 |
</div> |
346 |
|
73 |
|
347 |
[% IF orders_grouped.size %] |
74 |
<div id="subscription_description" class="toptabs"> |
348 |
<div id="acquisition_details"> |
75 |
<ul class="ui-tabs-nav"> |
349 |
<h2>Acquisition details</h2> |
76 |
<li><a href="#subscription_info">Information</a></li> |
350 |
<table id="orders"> |
77 |
<li><a href="#subscription_planning">Planning</a></li> |
351 |
<caption> |
78 |
<li><a href="#subscription_issues">Issues</a></li> |
352 |
<span class="actions"> |
79 |
<li><a href="#subscription_summary">Summary</a></li> |
353 |
<a href="#" id="hide_received_orders">Hide already received orders</a> |
80 |
[% IF orders_grouped.size %] |
354 |
| <a href="#" id="show_all_orders">Show all orders</a> |
81 |
<li> |
355 |
| <a href="#" id="expand_all">Expand all</a> |
82 |
<a href="#acquisition_details">Acquisition details</a> |
356 |
| <a href="#" id="collapse_all">Collapse all</a> |
83 |
</li> |
357 |
</span> |
84 |
[% END %] |
358 |
</caption> |
85 |
</ul> |
359 |
|
86 |
|
360 |
<thead> |
87 |
<div id="subscription_info"> |
361 |
<tr> |
88 |
<div class="row"> |
362 |
<th>Invoice</th> |
89 |
<div class="col-sm-6"> |
363 |
<th>Basket</th> |
90 |
<div class="rows"> |
364 |
<th>Order number</th> |
91 |
<ol> |
365 |
<th class="title-string">Creation date</th> |
92 |
<li><span class="label">Subscription ID: </span>[% subscriptionid | html %]</li> |
366 |
<th class="title-string">Receive date</th> |
93 |
<li><span class="label">Librarian identity:</span> [% librarian | html %]</li> |
367 |
<th class="title-string">Status</th> |
94 |
<li><span class="label">Vendor:</span> <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% aqbooksellerid | uri %]">[% aqbooksellername | html %]</a></li> |
368 |
<th>Internal note</th> |
95 |
<li><span class="label">Biblio:</span> <a href="/cgi-bin/koha/catalogue/[% default_bib_view | uri %].pl?biblionumber=[% bibnum | uri %]">[% bibliotitle | html %]</a> <i>([% bibnum | html %])</i></li> |
369 |
<th>Vendor note</th> |
96 |
[% IF ( OPACBaseURL ) %] |
370 |
<th>Fund</th> |
97 |
<li> |
371 |
<th>Quantity</th> |
98 |
<span class="label">OPAC view:</span> |
372 |
<th title="ecost tax exc. / ecost tax inc.">Ordered</th> |
99 |
<a id="view-subscription-in-opac" target="_blank" href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | uri %]">Open in new window.</a> |
373 |
<th title="Actual cost tax exc. / Actual cost tax inc.">Spent</th> |
100 |
</li> |
374 |
</tr> |
101 |
[% END %] |
375 |
</thead> |
102 |
[% IF ( branchcode ) %] |
376 |
<tbody> |
103 |
<li><span class="label">Library:</span> [% Branches.GetName( branchcode ) | html %]</li> |
377 |
[% FOR ordernumber IN orders_grouped.keys %] |
104 |
[% END %] |
378 |
[% SET parent_tree_id = loop.count %] |
105 |
[% IF ( serialsadditems ) %] |
379 |
[% SET parent_order = orders_grouped.$ordernumber %] |
106 |
<li><span class="label">Items:</span> Serial receipt creates an item record.</li> |
380 |
<tr data-tt-id="[% parent_tree_id | html %]" class="highlighted-row"> |
107 |
[% ELSE %] |
381 |
<td></td> [%# invoice %] |
108 |
<li><span class="label">Items:</span> Serial receipt does not create an item record.</li> |
382 |
<td> |
109 |
[% END %] |
383 |
[% IF CAN_user_acquisition_order_manage %] |
110 |
<li> |
384 |
<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% order.basket.basketno | uri %]">[% parent_order.basket.basketname | html %] ([% parent_order.basket.basketno | html %])</a> |
111 |
<span class="label">Serial number:</span> |
385 |
[% ELSE %] |
112 |
[% IF skip_serialseq %] |
386 |
[% parent_order.basket.basketname | html %] ([% parent_order.basket.basketno | html %]) |
113 |
Serial number is skipped when an irregularity is found. |
387 |
[% END %] |
114 |
[% ELSE %] |
388 |
</td> |
115 |
Serial number is kept when an irregularity is found. |
389 |
<td></td> [%# ordernumber %] |
116 |
[% END %] |
390 |
<td>[% parent_order.basket.creationdate | $KohaDates %]</td> |
117 |
</li> |
391 |
<td>[% parent_order.datereceived | $KohaDates %]</td> |
118 |
<li><span class="label">Grace period:</span> [% graceperiod | html %]</li> |
392 |
<td> |
119 |
</ol> |
393 |
[% SWITCH parent_order.orderstatus %] |
120 |
</div> |
394 |
[% CASE 'new' %]<span title="status_1">New</span> |
121 |
</div> |
395 |
[% CASE 'ordered' %]<span title="status_2">Ordered</span> |
122 |
<div class="col-sm-6"> |
396 |
[% CASE 'partial' %]<span title="status_3">Partial</span> |
123 |
<div class="rows"> |
397 |
[% CASE 'complete' %]<span title="status_4">Complete</span> |
124 |
<ol> |
398 |
[% CASE 'cancelled' %]<span title="status_5">Cancelled</span> |
125 |
[% IF ( location ) %]<li><span class="label">Location:</span> [% location | html %]</li>[% END %] |
399 |
[% END %] |
126 |
[% IF ( callnumber ) %]<li><span class="label">Call number:</span> [% callnumber | html %]</li>[% END %] |
400 |
</td> |
127 |
[% IF ( staffdisplaycount ) %]<li><span class="label">Number of issues to display to staff:</span>[% staffdisplaycount | html %]</li>[% END %] |
401 |
<td></td> [%# internalnote %] |
128 |
[% IF ( opacdisplaycount ) %]<li><span class="label">Number of issues to display in OPAC:</span>[% opacdisplaycount | html %]</li>[% END %] |
402 |
<td></td> [%# vendornote %] |
129 |
[% IF ( letter ) %] |
403 |
<td></td> [%# fund %] |
130 |
<li> |
404 |
<td>[% parent_order.quantity | html %]</td> |
131 |
<span class="label">Patron notification:</span> [% letter | html %] |
405 |
<td>[% parent_order.ecost_tax_excluded | $Price %] / [% parent_order.ecost_tax_included | $Price %]</td> |
132 |
(<a href="/cgi-bin/koha/serials/viewalerts.pl?subscriptionid=[% subscriptionid | uri %]">subscribers</a>) |
406 |
<td>[% parent_order.unitprice_tax_excluded | $Price %] / [% parent_order.unitprice_tax_included | $Price %]</td> |
133 |
</li> |
407 |
</tr> |
134 |
[% END %] |
408 |
[% FOR order IN parent_order.orders %] |
135 |
[% IF ( hasRouting ) %]<li><span class="label">Routing:</span> yes</li>[% END %] |
409 |
<tr data-tt-id="0" data-tt-parent-id="[% parent_tree_id | html %]"> |
136 |
</ol> |
410 |
<td> |
137 |
</div> |
411 |
[% IF order.invoice %] |
138 |
</div> |
412 |
[% IF CAN_user_acquisition %] |
139 |
</div> |
413 |
<a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]" title="Invoice detail page"> |
140 |
|
414 |
[% order.invoice.invoicenumber | html %]</a> |
141 |
[% IF available_additional_fields %] |
415 |
[% ELSE %] |
142 |
<hr> |
416 |
[% order.invoice.invoicenumber | html %] |
143 |
<div class="row"> |
417 |
[% END %] |
144 |
<div class="col-sm-6"> |
|
|
145 |
<h3>Additional fields:</h3> |
146 |
<div class="rows"> |
147 |
<ol> |
148 |
[% INCLUDE 'additional-fields-display.inc' available=available_additional_fields values=additional_field_values %] |
149 |
</ol> |
150 |
</div> |
151 |
</div> |
152 |
</div> |
418 |
[% END %] |
153 |
[% END %] |
419 |
</td> |
154 |
</div> |
420 |
<td></td> [%# basket %] |
155 |
|
421 |
<td>[% order.ordernumber | html %]</td> |
156 |
<div id="subscription_planning"> |
422 |
<td><span title="[% order.basket.creationdate | uri %]">[% order.basket.creationdate | $KohaDates%]</span></td> |
157 |
<div class="row"> |
423 |
<td>[% IF order.datereceived %]<span title="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates %]</span>[% END %]</td> |
158 |
<div class="col-sm-12"> |
424 |
<td> |
159 |
<div class="rows"> |
425 |
[% SWITCH order.orderstatus %] |
160 |
<ol> |
426 |
[% CASE 'new' %]<span title="status_1">New</span> |
161 |
<li> |
427 |
[% CASE 'ordered' %]<span title="status_2">Ordered</span> |
162 |
<span class="label">Beginning date:</span> |
428 |
[% CASE 'partial' %]<span title="status_3">Partial</span> |
163 |
[% startdate | html %] |
429 |
[% CASE 'complete' %]<span title="status_4">Complete</span> |
164 |
</li> |
430 |
[% CASE 'cancelled' %]<span title="status_5">Cancelled</span> |
165 |
<li> |
431 |
[% END %] |
166 |
<span class="label">Frequency:</span> |
432 |
</td> |
167 |
[% frequency.description | html %] |
433 |
<td>[% order.order_internalnote | html %]</td> |
168 |
</li> |
434 |
<td>[% order.order_vendornote | html %]</td> |
169 |
<li> |
435 |
<td>[% order.fund.budget_name | html %]</td> |
170 |
<span class="label">Manual history: </span> |
436 |
<td>[% order.quantity | html %]</td> |
171 |
[% IF ( manualhistory ) %] |
437 |
<td> |
172 |
Enabled <a href="/cgi-bin/koha/serials/subscription-history.pl?subscriptionid=[% subscriptionid | uri %]">Edit history</a> |
438 |
[% UNLESS order.datereceived %] |
173 |
[% ELSE %] |
439 |
[% order.ecost_tax_excluded * order.quantity | $Price %] / [% order.ecost_tax_included * order.quantity | $Price %] |
174 |
Disabled |
440 |
[% END %] |
175 |
[% END %] |
441 |
</td> |
176 |
</li> |
442 |
<td> |
177 |
<li> |
443 |
[% IF order.datereceived %] |
178 |
<span class="label">Number pattern:</span> |
444 |
[%# FIXME What if unitprice has not been filled? %] |
179 |
[% numberpattern.label | html %] |
445 |
[% order.unitprice_tax_excluded * order.quantity | $Price %] / [% order.unitprice_tax_included * order.quantity | $Price %] |
180 |
</li> |
|
|
181 |
<li> |
182 |
<table> |
183 |
<tr> |
184 |
<td>Starting with:</td> |
185 |
[% IF (has_X) %] |
186 |
<td>[% lastvalue1 | html %]</td> |
187 |
[% END %] |
188 |
[% IF (has_Y) %] |
189 |
<td>[% lastvalue2 | html %]</td> |
190 |
[% END %] |
191 |
[% IF (has_Z) %] |
192 |
<td>[% lastvalue3 | html %]</td> |
193 |
[% END %] |
194 |
</tr> |
195 |
<tr> |
196 |
<td>Rollover:</td> |
197 |
[% IF (has_X) %] |
198 |
<td>[% numberpattern.whenmorethan1 | html %]</td> |
199 |
[% END %] |
200 |
[% IF (has_Y) %] |
201 |
<td>[% numberpattern.whenmorethan2 | html %]</td> |
202 |
[% END %] |
203 |
[% IF (has_Z) %] |
204 |
<td>[% numberpattern.whenmorethan3 | html %]</td> |
205 |
[% END %] |
206 |
</tr> |
207 |
</table> |
208 |
</li> |
209 |
[% IF ( irregular_issues ) %] |
210 |
<li> |
211 |
<span class="label">Irregularity:</span> |
212 |
[% irregular_issues | html %] issues |
213 |
</li> |
214 |
[% END %] |
215 |
<li> |
216 |
<span class="label">First arrival:</span> |
217 |
[% firstacquidate | html %] |
218 |
</li> |
219 |
[% IF ( numberlength ) %]<li> |
220 |
<span class="label">Number of issues:</span> |
221 |
[% numberlength | html %]</li> |
222 |
[% END %] |
223 |
[% IF ( weeklength ) %]<li> |
224 |
<span class="label">Number of weeks:</span> |
225 |
[% weeklength | html %]</li> |
226 |
[% END %] |
227 |
[% IF ( monthlength ) %]<li> |
228 |
<span class="label">Number of months:</span> |
229 |
[% monthlength | html %]</li> |
230 |
[% END %] |
231 |
</ol> |
232 |
</div> |
233 |
</div> |
234 |
</div> |
235 |
</div> |
236 |
|
237 |
<div id="subscription_numbering" style="display:none;"> |
238 |
<h3>Numbering calculation</h3> |
239 |
<p><label>Numbering formula:</label> [% numberingmethod | html %]</p> |
240 |
<table> |
241 |
<tr> |
242 |
<th> </th> |
243 |
<th>X</th> |
244 |
<th>Y</th> |
245 |
<th>Z</th> |
246 |
</tr> |
247 |
<tr> |
248 |
<td>Add</td> |
249 |
<td> |
250 |
[% add1 | html %] |
251 |
</td> |
252 |
<td> |
253 |
[% add2 | html %] |
254 |
</td> |
255 |
<td> |
256 |
[% add3 | html %] |
257 |
</td> |
258 |
</tr> |
259 |
<tr> |
260 |
<td>once every</td> |
261 |
<td>[% every1 | html %]</td> |
262 |
<td>[% every2 | html %]</td> |
263 |
<td>[% every3 | html %]</td> |
264 |
</tr> |
265 |
<tr> |
266 |
<td>When more than</td> |
267 |
<td>[% whenmorethan1 | html %] [% IF ( innerloop1 ) %]<br /> |
268 |
<i>(is [% innerloop1 | html %])</i>[% END %]</td> |
269 |
<td>[% whenmorethan2 | html %] [% IF ( innerloop2 ) %]<br /> |
270 |
<i>(is [% innerloop2 | html %])</i>[% END %]</td> |
271 |
<td>[% whenmorethan3 | html %] [% IF ( innerloop3 ) %]<br /> |
272 |
<i>(is [% innerloop3 | html %])</i>[% END %]</td> |
273 |
</tr> |
274 |
<tr> |
275 |
<td>Set back to</td> |
276 |
<td>[% setto1 | html %]</td> |
277 |
<td>[% setto2 | html %]</td> |
278 |
<td>[% setto3 | html %]</td> |
279 |
</tr> |
280 |
<tr> |
281 |
<td> |
282 |
Inner counter |
283 |
</td> |
284 |
<td>[% innerloop1 | html %]</td> |
285 |
<td>[% innerloop2 | html %]</td> |
286 |
<td>[% innerloop3 | html %]</td> |
287 |
</tr> |
288 |
<tr> |
289 |
<td> |
290 |
Last value |
291 |
</td> |
292 |
<td>[% lastvalue1 | html %]</td> |
293 |
<td>[% lastvalue2 | html %]</td> |
294 |
<td>[% lastvalue3 | html %]</td> |
295 |
</tr> |
296 |
</table> |
297 |
</div> |
298 |
<div id="subscription_issues"> |
299 |
<table> |
300 |
<tr> |
301 |
<th>Issue number</th> |
302 |
<th>Planned date</th> |
303 |
<th>Published date</th> |
304 |
<th>Published date (text)</th> |
305 |
<th>Status</th> |
306 |
</tr> |
307 |
[% FOREACH serialslis IN serialslist %] |
308 |
<tr> |
309 |
<td> |
310 |
[% serialslis.serialseq | html %] |
311 |
</td> |
312 |
<td> |
313 |
[% IF serialslis.planneddate %] |
314 |
[% serialslis.planneddate | html %] |
315 |
[% ELSE %] |
316 |
Unknown |
317 |
[% END %] |
318 |
</td> |
319 |
<td> |
320 |
[% IF serialslis.publisheddate %] |
321 |
[% serialslis.publisheddate | html %] |
322 |
[% ELSE %] |
323 |
Unknown |
324 |
[% END %] |
325 |
</td> |
326 |
<td> |
327 |
[% serialslis.publisheddatetext | html %] |
328 |
</td> |
329 |
<td> |
330 |
[% IF ( serialslis.status1 ) %]Expected[% END %] |
331 |
[% IF ( serialslis.status2 ) %]Arrived[% END %] |
332 |
[% IF ( serialslis.status3 ) %]Late[% END %] |
333 |
[% IF ( serialslis.status4 ) %]Missing[% END %] |
334 |
[% IF ( serialslis.status41 ) %]Missing (never received)[% END %] |
335 |
[% IF ( serialslis.status42 ) %]Missing (sold out)[% END %] |
336 |
[% IF ( serialslis.status43 ) %]Missing (damaged)[% END %] |
337 |
[% IF ( serialslis.status44 ) %]Missing (lost)[% END %] |
338 |
[% IF ( serialslis.status5 ) %]Not issued[% END %] |
339 |
[% IF ( serialslis.status6 ) %]Delete[% END %] |
340 |
[% IF ( serialslis.status7 ) %] |
341 |
Claimed |
342 |
[% IF ( serialslis.claimdate ) %] |
343 |
[% serialslis.claimdate | html %] |
344 |
[% END %] |
345 |
[% END %] |
346 |
[% IF ( serialslis.status8 ) %]Stopped[% END %] |
347 |
</td> |
348 |
</tr> |
446 |
[% END %] |
349 |
[% END %] |
447 |
</td> |
350 |
</table> |
448 |
</tr> |
351 |
</div> |
449 |
[% END %] |
352 |
|
450 |
[% END %] |
353 |
<div id="subscription_summary"> |
451 |
</tbody> |
354 |
<div class="row"> |
452 |
</table> |
355 |
<div class="col-sm-12"> |
453 |
</div> |
356 |
<div class="rows"> |
454 |
[% END %] |
357 |
<ol> |
|
|
358 |
<li><span class="label">Start date:</span> [% startdate | html %] </li> |
359 |
<li><span class="label">End date:</span> [% enddate | html %]</li> |
360 |
<li><span class="label">History start date:</span> [% histstartdate | html %] </li> |
361 |
<li><span class="label">History end date:</span> [% histenddate | html %]</li> |
362 |
<li><span class="label">Received issues:</span>[% recievedlist | html | html_line_break %]</li> |
363 |
<li><span class="label">Missing issues:</span>[% missinglist | html | html_line_break %]</li> |
364 |
<li><span class="label">Nonpublic note:</span>[% internalnotes | html | html_line_break %]</li> |
365 |
<li><span class="label">Public note:</span>[% notes | html | html_line_break %]</li> |
366 |
<li><span class="label">History staff note:</span>[% librariannote | html | html_line_break %]</li> |
367 |
<li><span class="label">History OPAC note:</span>[% opacnote | html | html_line_break %]</li> |
368 |
</ol> |
369 |
</div> |
370 |
</div> |
371 |
</div> |
372 |
</div> |
455 |
|
373 |
|
|
|
374 |
[% IF orders_grouped.size %] |
375 |
<div id="acquisition_details"> |
376 |
<h2>Acquisition details</h2> |
377 |
<table id="orders"> |
378 |
<caption> |
379 |
<span class="actions"> |
380 |
<a href="#" id="hide_received_orders">Hide already received orders</a> |
381 |
| <a href="#" id="show_all_orders">Show all orders</a> |
382 |
| <a href="#" id="expand_all">Expand all</a> |
383 |
| <a href="#" id="collapse_all">Collapse all</a> |
384 |
</span> |
385 |
</caption> |
386 |
<thead> |
387 |
<tr> |
388 |
<th>Invoice</th> |
389 |
<th>Basket</th> |
390 |
<th>Order number</th> |
391 |
<th class="title-string">Creation date</th> |
392 |
<th class="title-string">Receive date</th> |
393 |
<th class="title-string">Status</th> |
394 |
<th>Internal note</th> |
395 |
<th>Vendor note</th> |
396 |
<th>Fund</th> |
397 |
<th>Quantity</th> |
398 |
<th title="ecost tax exc. / ecost tax inc.">Ordered</th> |
399 |
<th title="Actual cost tax exc. / Actual cost tax inc.">Spent</th> |
400 |
</tr> |
401 |
</thead> |
402 |
<tbody> |
403 |
[% FOR ordernumber IN orders_grouped.keys %] |
404 |
[% SET parent_tree_id = loop.count %] |
405 |
[% SET parent_order = orders_grouped.$ordernumber %] |
406 |
<tr data-tt-id="[% parent_tree_id | html %]" class="highlighted-row"> |
407 |
<td></td> [%# invoice %] |
408 |
<td> |
409 |
[% IF CAN_user_acquisition_order_manage %] |
410 |
<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% order.basket.basketno | uri %]">[% parent_order.basket.basketname | html %] ([% parent_order.basket.basketno | html %])</a> |
411 |
[% ELSE %] |
412 |
[% parent_order.basket.basketname | html %] ([% parent_order.basket.basketno | html %]) |
413 |
[% END %] |
414 |
</td> |
415 |
<td></td> [%# ordernumber %] |
416 |
<td>[% parent_order.basket.creationdate | $KohaDates %]</td> |
417 |
<td>[% parent_order.datereceived | $KohaDates %]</td> |
418 |
<td> |
419 |
[% SWITCH parent_order.orderstatus %] |
420 |
[% CASE 'new' %]<span title="status_1">New</span> |
421 |
[% CASE 'ordered' %]<span title="status_2">Ordered</span> |
422 |
[% CASE 'partial' %]<span title="status_3">Partial</span> |
423 |
[% CASE 'complete' %]<span title="status_4">Complete</span> |
424 |
[% CASE 'cancelled' %]<span title="status_5">Cancelled</span> |
425 |
[% END %] |
426 |
</td> |
427 |
<td></td> [%# internalnote %] |
428 |
<td></td> [%# vendornote %] |
429 |
<td></td> [%# fund %] |
430 |
<td>[% parent_order.quantity | html %]</td> |
431 |
<td>[% parent_order.ecost_tax_excluded | $Price %] / [% parent_order.ecost_tax_included | $Price %]</td> |
432 |
<td>[% parent_order.unitprice_tax_excluded | $Price %] / [% parent_order.unitprice_tax_included | $Price %]</td> |
433 |
</tr> |
434 |
[% FOR order IN parent_order.orders %] |
435 |
<tr data-tt-id="0" data-tt-parent-id="[% parent_tree_id | html %]"> |
436 |
<td> |
437 |
[% IF order.invoice %] |
438 |
[% IF CAN_user_acquisition %] |
439 |
<a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]" title="Invoice detail page"> |
440 |
[% order.invoice.invoicenumber | html %]</a> |
441 |
[% ELSE %] |
442 |
[% order.invoice.invoicenumber | html %] |
443 |
[% END %] |
444 |
[% END %] |
445 |
</td> |
446 |
<td></td> [%# basket %] |
447 |
<td>[% order.ordernumber | html %]</td> |
448 |
<td><span title="[% order.basket.creationdate | uri %]">[% order.basket.creationdate | $KohaDates%]</span></td> |
449 |
<td>[% IF order.datereceived %]<span title="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates %]</span>[% END %]</td> |
450 |
<td> |
451 |
[% SWITCH order.orderstatus %] |
452 |
[% CASE 'new' %]<span title="status_1">New</span> |
453 |
[% CASE 'ordered' %]<span title="status_2">Ordered</span> |
454 |
[% CASE 'partial' %]<span title="status_3">Partial</span> |
455 |
[% CASE 'complete' %]<span title="status_4">Complete</span> |
456 |
[% CASE 'cancelled' %]<span title="status_5">Cancelled</span> |
457 |
[% END %] |
458 |
</td> |
459 |
<td>[% order.order_internalnote | html %]</td> |
460 |
<td>[% order.order_vendornote | html %]</td> |
461 |
<td>[% order.fund.budget_name | html %]</td> |
462 |
<td>[% order.quantity | html %]</td> |
463 |
<td> |
464 |
[% UNLESS order.datereceived %] |
465 |
[% order.ecost_tax_excluded * order.quantity | $Price %] / [% order.ecost_tax_included * order.quantity | $Price %] |
466 |
[% END %] |
467 |
</td> |
468 |
<td> |
469 |
[% IF order.datereceived %] |
470 |
[%# FIXME What if unitprice has not been filled? %] |
471 |
[% order.unitprice_tax_excluded * order.quantity | $Price %] / [% order.unitprice_tax_included * order.quantity | $Price %] |
472 |
[% END %] |
473 |
</td> |
474 |
</tr> |
475 |
[% END %] |
476 |
[% END %] |
477 |
</tbody> |
478 |
</table> |
479 |
</div> |
480 |
[% END %] |
481 |
</div> |
456 |
</main> |
482 |
</main> |
457 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
483 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
458 |
|
484 |
|
459 |
- |
|
|