6 [% USE AuthorisedValues %]
8 [% USE ColumnsSettings %]
10 [% INCLUDE 'doc-head-open.inc' %]
11 <title>Koha › Serials › Details for subscription #[% subscriptionid | html %]</title>
12 [% INCLUDE 'doc-head-close.inc' %]
13 [% Asset.css("css/datatables.css") | $raw %]
16 <body id="ser_subscription-detail" class="ser">
17 [% INCLUDE 'header.inc' %]
18 [% INCLUDE 'serials-search.inc' %]
20 <div id="breadcrumbs">
21 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
22 › <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a>
23 [% UNLESS blocking_error %]› Details for subscription #[% subscriptionid | html %][% END %]
26 <div class="main container-fluid">
28 <div class="col-sm-10 col-sm-push-2">
31 [% INCLUDE 'serials-toolbar.inc' %]
33 <h1>Subscription for [% bibliotitle | html %] [% IF closed %](closed)[% END %]</h1>
34 [% IF ( abouttoexpire ) %]
36 <div class="dialog message">Subscription will expire [% enddate | html %]. <a href="#" id="renewsub">Renew this subscription</a>.</div>
39 [% IF ( NEEDSCONFIRMATION ) %]
40 <div id="circ_needsconfirmation" class="dialog alert">
41 <h3>Please confirm subscription deletion</h3>
44 [% IF ( NOTEXPIRED ) %] <li>The subscription has not expired yet</li> [% END %]
45 [% IF ( LINKEDISSUES ) %] <li>The subscription has linked issues</li> [% END %]
46 [% IF ( LINKEDITEMS ) %] <li>The subscription has linked items<br /> Those items won't be deleted</li> [% END %]
48 <form method="post" action="/cgi-bin/koha/serials/subscription-detail.pl">
49 <input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" />
50 <input type="hidden" name="issueconfirmed" value="1" />
51 <input type="hidden" name="op" value="del" />
52 <button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> Yes, delete (Y)</button>
54 <form method="get" action="/cgi-bin/koha/serials/subscription-detail.pl">
55 <input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" />
56 <button type="submit" class="deny" accesskey="n"><i class="fa fa-fw fa-remove"></i> No, don't delete (N)</button>
60 [% END %] <!-- NEEDSCONFIRMATION -->
62 <div id="subscription_description" class="toptabs">
63 <ul class="ui-tabs-nav">
64 <li><a href="#subscription_info">Information</a></li>
65 <li><a href="#subscription_planning">Planning</a></li>
66 <li><a href="#subscription_issues">Issues</a></li>
67 <li><a href="#subscription_summary">Summary</a></li>
70 <a href="#acquisition_details">Acquisition details</a>
75 <div id="subscription_info">
77 <div class="col-sm-6">
80 <li><span class="label">Subscription ID: </span>[% subscriptionid | html %]</li>
81 <li><span class="label">Librarian identity:</span> [% librarian | html %]</li>
82 <li><span class="label">Vendor:</span> <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% aqbooksellerid | html %]">[% aqbooksellername | html %]</a></li>
83 <li><span class="label">Biblio:</span> <a href="/cgi-bin/koha/catalogue/[% default_bib_view | html %].pl?biblionumber=[% bibnum | html %]">[% bibliotitle | html %]</a> <i>([% bibnum | html %])</i></li>
84 [% IF ( OPACBaseURL ) %]
86 <span class="label">OPAC view:</span>
87 <a id="view-subscription-in-opac" target="_blank" href="[% Koha.Preference('OPACBaseURL') | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | html %]">Open in new window.</a>
90 [% IF ( branchcode ) %]<li><span class="label">Library:</span> [% Branches.GetName( branchcode ) | html %]</li>[% END %]
91 [% IF ( serialsadditems ) %]
92 <li><span class="label">Items:</span> Serial receipt creates an item record.</li>
94 <li><span class="label">Items:</span> Serial receipt does not create an item record.</li>
97 <span class="label">Serial number:</span>
98 [% IF skip_serialseq %]
99 Serial number is skipped when an irregularity is found.
101 Serial number is kept when an irregularity is found.
104 <li><span class="label">Grace period:</span> [% graceperiod | html %]</li>
108 <div class="col-sm-6">
111 [% IF ( location ) %]<li><span class="label">Location:</span> [% location | html %]</li>[% END %]
112 [% IF ( callnumber ) %]<li><span class="label">Call number:</span> [% callnumber | html %]</li>[% END %]
113 [% IF ( staffdisplaycount ) %]<li><span class="label">Number of issues to display to staff:</span>[% staffdisplaycount | html %]</li>[% END %]
114 [% IF ( opacdisplaycount ) %]<li><span class="label">Number of issues to display in OPAC:</span>[% opacdisplaycount | html %]</li>[% END %]
117 <span class="label">Patron notification:</span> [% letter | html %]
118 (<a href="/cgi-bin/koha/serials/viewalerts.pl?subscriptionid=[% subscriptionid | html %]">subscribers</a>)
121 [% IF ( hasRouting ) %]<li><span class="label">Routing:</span> yes</li>[% END %]
127 [% IF additional_fields_for_subscription %]
130 <div class="col-sm-6">
131 <h3>Additional fields:</h3>
134 [% FOR field IN additional_fields_for_subscription %]
136 <span class="label">[% field.name | html %]:</span>
137 [% IF field.authorised_value_category %]
138 [% AuthorisedValues.GetByCode( field.authorised_value_category, additional_fields.${field.name} ) | html %]
140 [% additional_fields.${field.name} | html %]
151 <div id="subscription_planning">
153 <div class="col-sm-12">
156 <li><span class="label">Beginning date:</span> [% startdate | html %]
158 <li><span class="label">Frequency:</span>
159 [% frequency.description | html %]
162 <span class="label">Manual history: </span>
163 [% IF ( manualhistory ) %]
164 Enabled <a href="/cgi-bin/koha/serials/subscription-history.pl?subscriptionid=[% subscriptionid | html %]">Edit history</a>
169 <li><span class="label">Number pattern:</span>
170 [% numberpattern.label | html %]
174 <td>Starting with:</td>
176 <td align="center">[% lastvalue1 | html %]</td>
179 <td align="center">[% lastvalue2 | html %]</td>
182 <td align="center">[% lastvalue3 | html %]</td>
188 <td align="center">[% numberpattern.whenmorethan1 | html %]</td>
191 <td align="center">[% numberpattern.whenmorethan2 | html %]</td>
194 <td align="center">[% numberpattern.whenmorethan3 | html %]</td>
198 [% IF ( irregular_issues ) %]
199 <li><span class="label">Irregularity:</span> [% irregular_issues | html %] issues
202 <li><span class="label">First arrival:</span> [% firstacquidate | html %]
204 [% IF ( numberlength ) %]<li><span class="label">Number of issues:</span> [% numberlength | html %]</li>[% END %]
205 [% IF ( weeklength ) %]<li><span class="label">Number of weeks:</span> [% weeklength | html %]</li>[% END %]
206 [% IF ( monthlength ) %]<li><span class="label">Number of months:</span> [% monthlength | html %]</li>[% END %]
212 <div id="subscription_numbering" style="display:none;">
213 <h3>Numbering calculation</h3>
214 <p><label>Numbering formula:</label> [% numberingmethod | html %]</p>
236 <td>[% every1 | html %]</td>
237 <td>[% every2 | html %]</td>
238 <td>[% every3 | html %]</td>
241 <td>When more than</td>
242 <td>[% whenmorethan1 | html %] [% IF ( innerloop1 ) %]<br />
243 <i>(is [% innerloop1 | html %])</i>[% END %]</td>
244 <td>[% whenmorethan2 | html %] [% IF ( innerloop2 ) %]<br />
245 <i>(is [% innerloop2 | html %])</i>[% END %]</td>
246 <td>[% whenmorethan3 | html %] [% IF ( innerloop3 ) %]<br />
247 <i>(is [% innerloop3 | html %])</i>[% END %]</td>
251 <td>[% setto1 | html %]</td>
252 <td>[% setto2 | html %]</td>
253 <td>[% setto3 | html %]</td>
259 <td>[% innerloop1 | html %]</td>
260 <td>[% innerloop2 | html %]</td>
261 <td>[% innerloop3 | html %]</td>
267 <td>[% lastvalue1 | html %]</td>
268 <td>[% lastvalue2 | html %]</td>
269 <td>[% lastvalue3 | html %]</td>
273 <div id="subscription_issues">
276 <th>Issue number</th>
277 <th>Planned date</th>
278 <th>Published date</th>
279 <th>Published date (text)</th>
282 [% FOREACH serialslis IN serialslist %]
285 [% serialslis.serialseq | html %]
288 [% IF serialslis.planneddate %]
289 [% serialslis.planneddate | html %]
295 [% IF serialslis.publisheddate %]
296 [% serialslis.publisheddate | html %]
302 [% serialslis.publisheddatetext | html %]
305 [% IF ( serialslis.status1 ) %]Expected[% END %]
306 [% IF ( serialslis.status2 ) %]Arrived[% END %]
307 [% IF ( serialslis.status3 ) %]Late[% END %]
308 [% IF ( serialslis.status4 ) %]Missing[% END %]
309 [% IF ( serialslis.status41 ) %]Missing (never received)[% END %]
310 [% IF ( serialslis.status42 ) %]Missing (sold out)[% END %]
311 [% IF ( serialslis.status43 ) %]Missing (damaged)[% END %]
312 [% IF ( serialslis.status44 ) %]Missing (lost)[% END %]
313 [% IF ( serialslis.status5 ) %]Not issued[% END %]
314 [% IF ( serialslis.status6 ) %]Delete[% END %]
315 [% IF ( serialslis.status7 ) %]
317 [% IF ( serialslis.claimdate ) %]
318 [% serialslis.claimdate | html %]
321 [% IF ( serialslis.status8 ) %]Stopped[% END %]
327 <div id="subscription_summary">
329 <div class="col-sm-12">
332 <li><span class="label">Start date:</span> [% startdate | html %] </li>
333 <li><span class="label">End date:</span> [% enddate | html %]</li>
334 <li><span class="label">History start date:</span> [% histstartdate | html %] </li>
335 <li><span class="label">History end date:</span> [% histenddate | html %]</li>
336 <li><span class="label">Received issues:</span>[% recievedlist | html %]</li>
337 <li><span class="label">Missing issues:</span>[% missinglist | html %]</li>
338 <li><span class="label">Nonpublic note:</span>[% internalnotes FILTER html_line_break | html %]</li>
339 <li><span class="label">Public note:</span>[% notes FILTER html_line_break | html %]</li>
340 <li><span class="label">History staff note:</span>[% librariannote FILTER html_line_break | html %]</li>
341 <li><span class="label">History OPAC note:</span>[% opacnote FILTER html_line_break | html %]</li>
349 <div id="acquisition_details">
350 <h2>Acquisition details</h2>
353 <span class="actions">
354 <a href="#" id="hide_received_orders">Hide already received orders</a>
355 | <a href="#" id="show_all_orders">Show all orders</a></span>
362 <th>Order number</th>
363 <th class="title-string">Creation date</th>
364 <th class="title-string">Receive date</th>
365 <th class="title-string">Status</th>
366 <th>Internal note</th>
369 <th title="ecost tax exc. / ecost tax inc.">Ordered</th>
370 <th title="Actual cost tax exc. / Actual cost tax inc.">Spent</th>
374 [% FOR order IN orders %]
377 [% IF order.invoice %]
378 [% IF CAN_user_acquisition %]
379 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | html %]" title="Invoice detail page">
380 [% order.invoice.invoicenumber | html %]</a>
382 [% order.invoice.invoicenumber | html %]
386 <td>[% IF CAN_user_acquisition_order_manage %]
387 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% order.basketno | uri %]">[% order.basket.basketname | html %] ([% order.basketno | html %])</a>
389 [% order.basket.basketname | html %] ([% order.basketno | html %])
391 <td>[% order.ordernumber | html %]</td>
392 <td><span title="[% order.basket.creationdate | uri %]">[% order.basket.creationdate | $KohaDates%]</span></td>
393 <td>[% IF order.datereceived %]<span title="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates %]</span>[% END %]</td>
395 [% SWITCH order.orderstatus %]
396 [% CASE 'new' %]<span title="status_1">New</span>
397 [% CASE 'ordered' %]<span title="status_2">Ordered</span>
398 [% CASE 'partial' %]<span title="status_3">Partial</span>
399 [% CASE 'complete' %]<span title="status_4">Complete</span>
400 [% CASE 'cancelled' %]<span title="status_5">Cancelled</span>
403 <td>[% order.order_internalnote | html %]</td>
404 <td>[% order.order_vendornote | html %]</td>
405 <td>[% order.fund.budget_name | html %]</td>
407 [% UNLESS order.datereceived %]
408 [% order.ecost_tax_excluded | $Price %] / [% order.ecost_tax_included | $Price %]
412 [% IF order.datereceived %]
413 [%# FIXME What if unitprice has not been filled? %]
414 [% order.unitprice_tax_excluded | $Price %] / [% order.unitprice_tax_included | $Price %]
425 </div> <!-- /.col-sm-10.col-sm-push-2 -->
427 <div class="col-sm-2 col-sm-pull-10">
429 [% INCLUDE 'serials-menu.inc' %]
431 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
432 </div> <!-- /.row -->
434 [% MACRO jsinclude BLOCK %]
436 var subscriptionid = "[% subscriptionid | html %]";
437 var MSG_CLOSE_SUBSCRIPTION = _("Are you sure you want to close this subscription?");
438 var MSG_REOPEN_SUBSCRIPTION = _("Are you sure you want to reopen this subscription?");
439 var CONFIRM_DELETE_SUBSCRIPTION = _("Are you sure you want to delete this subscription?");
441 [% Asset.js("js/serials-toolbar.js") | $raw %]
442 [% INCLUDE 'datatables.inc' %]
443 [% INCLUDE 'columns_settings.inc' %]
445 // the english words used in display purposes
446 var text = new Array(_("Number"),_("Volume"),_("Issue"),_("Month"),_("Week"),_("Starting with:"),_("Rollover at:"),_("Choose Hemisphere:"),_("Northern"),_("Southern",
447 "Autumn"),_("Winter"),_("Spring"),_("Summer"),_("Fall"),_("Season"),_("Year"));
448 $(document).ready(function() {
449 $("#subscription_description").tabs();
450 $("#renewsub").click(function(){
451 popup([% subscriptionid | html %]);
455 var columns_settings = [% ColumnsSettings.GetColumns( 'serials', 'subscription-detail', 'orders', 'json' ) | $raw %];
456 var table = KohaTable("orders", {
459 "aaSorting": [[ 5, "asc" ], [ 2, "desc" ]], // Order by status then ordernumber
461 { "aTargets": "title-string", "sType": "title-string" }
463 }, columns_settings);
465 $("#hide_received_orders").click(function(e){
467 table.fnFilter( '^$', 4, true ); // Not empty "Receive date" columns
469 $("#show_all_orders").click(function(e){
471 table.fnFilter( '', 4 ); // Not filter, display all columns
473 $("#show_all_orders").click();
480 [% INCLUDE 'intranet-bottom.inc' %]