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 <div id="subscription_info">
72 <div class="col-sm-6">
75 <li><span class="label">Subscription ID: </span>[% subscriptionid | html %]</li>
76 <li><span class="label">Librarian identity:</span> [% librarian | html %]</li>
77 <li><span class="label">Vendor:</span> <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% aqbooksellerid | html %]">[% aqbooksellername | html %]</a></li>
78 <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>
79 [% IF ( OPACBaseURL ) %]
81 <span class="label">OPAC view:</span>
82 <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>
85 [% IF ( branchcode ) %]<li><span class="label">Library:</span> [% Branches.GetName( branchcode ) | html %]</li>[% END %]
86 [% IF ( serialsadditems ) %]
87 <li><span class="label">Items:</span> Serial receipt creates an item record.</li>
89 <li><span class="label">Items:</span> Serial receipt does not create an item record.</li>
92 <span class="label">Serial number:</span>
93 [% IF skip_serialseq %]
94 Serial number is skipped when an irregularity is found.
96 Serial number is kept when an irregularity is found.
99 <li><span class="label">Grace period:</span> [% graceperiod | html %]</li>
103 <div class="col-sm-6">
106 [% IF ( location ) %]<li><span class="label">Location:</span> [% location | html %]</li>[% END %]
107 [% IF ( callnumber ) %]<li><span class="label">Call number:</span> [% callnumber | html %]</li>[% END %]
108 [% IF ( staffdisplaycount ) %]<li><span class="label">Number of issues to display to staff:</span>[% staffdisplaycount | html %]</li>[% END %]
109 [% IF ( opacdisplaycount ) %]<li><span class="label">Number of issues to display in OPAC:</span>[% opacdisplaycount | html %]</li>[% END %]
112 <span class="label">Patron notification:</span> [% letter | html %]
113 (<a href="/cgi-bin/koha/serials/viewalerts.pl?subscriptionid=[% subscriptionid | html %]">subscribers</a>)
116 [% IF ( hasRouting ) %]<li><span class="label">Routing:</span> yes</li>[% END %]
122 [% IF additional_fields_for_subscription %]
125 <div class="col-sm-6">
126 <h3>Additional fields:</h3>
129 [% FOR field IN additional_fields_for_subscription %]
131 <span class="label">[% field.name | html %]:</span>
132 [% IF field.authorised_value_category %]
133 [% AuthorisedValues.GetByCode( field.authorised_value_category, additional_fields.${field.name} ) | html %]
135 [% additional_fields.${field.name} | html %]
146 <div id="subscription_planning">
148 <div class="col-sm-12">
151 <li><span class="label">Beginning date:</span> [% startdate | html %]
153 <li><span class="label">Frequency:</span>
154 [% frequency.description | html %]
157 <span class="label">Manual history: </span>
158 [% IF ( manualhistory ) %]
159 Enabled <a href="/cgi-bin/koha/serials/subscription-history.pl?subscriptionid=[% subscriptionid | html %]">Edit history</a>
164 <li><span class="label">Number pattern:</span>
165 [% numberpattern.label | html %]
169 <td>Starting with:</td>
171 <td align="center">[% lastvalue1 | html %]</td>
174 <td align="center">[% lastvalue2 | html %]</td>
177 <td align="center">[% lastvalue3 | html %]</td>
183 <td align="center">[% numberpattern.whenmorethan1 | html %]</td>
186 <td align="center">[% numberpattern.whenmorethan2 | html %]</td>
189 <td align="center">[% numberpattern.whenmorethan3 | html %]</td>
193 [% IF ( irregular_issues ) %]
194 <li><span class="label">Irregularity:</span> [% irregular_issues | html %] issues
197 <li><span class="label">First arrival:</span> [% firstacquidate | html %]
199 [% IF ( numberlength ) %]<li><span class="label">Number of issues:</span> [% numberlength | html %]</li>[% END %]
200 [% IF ( weeklength ) %]<li><span class="label">Number of weeks:</span> [% weeklength | html %]</li>[% END %]
201 [% IF ( monthlength ) %]<li><span class="label">Number of months:</span> [% monthlength | html %]</li>[% END %]
207 <div id="subscription_numbering" style="display:none;">
208 <h3>Numbering calculation</h3>
209 <p><label>Numbering formula:</label> [% numberingmethod | html %]</p>
231 <td>[% every1 | html %]</td>
232 <td>[% every2 | html %]</td>
233 <td>[% every3 | html %]</td>
236 <td>When more than</td>
237 <td>[% whenmorethan1 | html %] [% IF ( innerloop1 ) %]<br />
238 <i>(is [% innerloop1 | html %])</i>[% END %]</td>
239 <td>[% whenmorethan2 | html %] [% IF ( innerloop2 ) %]<br />
240 <i>(is [% innerloop2 | html %])</i>[% END %]</td>
241 <td>[% whenmorethan3 | html %] [% IF ( innerloop3 ) %]<br />
242 <i>(is [% innerloop3 | html %])</i>[% END %]</td>
246 <td>[% setto1 | html %]</td>
247 <td>[% setto2 | html %]</td>
248 <td>[% setto3 | html %]</td>
254 <td>[% innerloop1 | html %]</td>
255 <td>[% innerloop2 | html %]</td>
256 <td>[% innerloop3 | html %]</td>
262 <td>[% lastvalue1 | html %]</td>
263 <td>[% lastvalue2 | html %]</td>
264 <td>[% lastvalue3 | html %]</td>
268 <div id="subscription_issues">
271 <th>Issue number</th>
272 <th>Planned date</th>
273 <th>Published date</th>
274 <th>Published date (text)</th>
277 [% FOREACH serialslis IN serialslist %]
280 [% serialslis.serialseq | html %]
283 [% IF serialslis.planneddate %]
284 [% serialslis.planneddate | html %]
290 [% IF serialslis.publisheddate %]
291 [% serialslis.publisheddate | html %]
297 [% serialslis.publisheddatetext | html %]
300 [% IF ( serialslis.status1 ) %]Expected[% END %]
301 [% IF ( serialslis.status2 ) %]Arrived[% END %]
302 [% IF ( serialslis.status3 ) %]Late[% END %]
303 [% IF ( serialslis.status4 ) %]Missing[% END %]
304 [% IF ( serialslis.status41 ) %]Missing (never received)[% END %]
305 [% IF ( serialslis.status42 ) %]Missing (sold out)[% END %]
306 [% IF ( serialslis.status43 ) %]Missing (damaged)[% END %]
307 [% IF ( serialslis.status44 ) %]Missing (lost)[% END %]
308 [% IF ( serialslis.status5 ) %]Not issued[% END %]
309 [% IF ( serialslis.status6 ) %]Delete[% END %]
310 [% IF ( serialslis.status7 ) %]
312 [% IF ( serialslis.claimdate ) %]
313 [% serialslis.claimdate | html %]
316 [% IF ( serialslis.status8 ) %]Stopped[% END %]
322 <div id="subscription_summary">
324 <div class="col-sm-12">
327 <li><span class="label">Start date:</span> [% startdate | html %] </li>
328 <li><span class="label">End date:</span> [% enddate | html %]</li>
329 <li><span class="label">History start date:</span> [% histstartdate | html %] </li>
330 <li><span class="label">History end date:</span> [% histenddate | html %]</li>
331 <li><span class="label">Received issues:</span>[% recievedlist | html %]</li>
332 <li><span class="label">Missing issues:</span>[% missinglist | html %]</li>
333 <li><span class="label">Nonpublic note:</span>[% internalnotes FILTER html_line_break | html %]</li>
334 <li><span class="label">Public note:</span>[% notes FILTER html_line_break | html %]</li>
335 <li><span class="label">History staff note:</span>[% librariannote FILTER html_line_break | html %]</li>
336 <li><span class="label">History OPAC note:</span>[% opacnote FILTER html_line_break | html %]</li>
344 <div id="acquisition_details">
345 <h2>Acquisition details</h2>
348 <span class="actions">
349 <a href="#" id="hide_received_orders">Hide already received orders</a>
350 | <a href="#" id="show_all_orders">Show all orders</a></span>
357 <th>Order number</th>
358 <th class="title-string">Creation date</th>
359 <th class="title-string">Receive date</th>
360 <th class="title-string">Status</th>
361 <th>Internal note</th>
364 <th title="ecost tax exc. / ecost tax inc.">Ordered</th>
365 <th title="Actual cost tax exc. / Actual cost tax inc.">Spent</th>
369 [% FOR order IN orders %]
372 [% IF order.invoice %]
373 [% IF CAN_user_acquisition %]
374 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | html %]" title="Invoice detail page">
375 [% order.invoice.invoicenumber | html %]</a>
377 [% order.invoice.invoicenumber | html %]
381 <td>[% IF CAN_user_acquisition_order_manage %]
382 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% order.basketno | uri %]">[% order.basket.basketname | html %] ([% order.basketno | html %])</a>
384 [% order.basket.basketname | html %] ([% order.basketno | html %])
386 <td>[% order.ordernumber | html %]</td>
387 <td><span title="[% order.basket.creationdate | uri %]">[% order.basket.creationdate | $KohaDates%]</span></td>
388 <td>[% IF order.datereceived %]<span title="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates %]</span>[% END %]</td>
390 [% SWITCH order.orderstatus %]
391 [% CASE 'new' %]<span title="status_1">New</span>
392 [% CASE 'ordered' %]<span title="status_2">Ordered</span>
393 [% CASE 'partial' %]<span title="status_3">Partial</span>
394 [% CASE 'complete' %]<span title="status_4">Complete</span>
395 [% CASE 'cancelled' %]<span title="status_5">Cancelled</span>
398 <td>[% order.order_internalnote | html %]</td>
399 <td>[% order.order_vendornote | html %]</td>
400 <td>[% order.fund.budget_name | html %]</td>
402 [% UNLESS order.datereceived %]
403 [% order.ecost_tax_excluded | $Price %] / [% order.ecost_tax_included | $Price %]
407 [% IF order.datereceived %]
408 [%# FIXME What if unitprice has not been filled? %]
409 [% order.unitprice_tax_excluded | $Price %] / [% order.unitprice_tax_included | $Price %]
420 </div> <!-- /.col-sm-10.col-sm-push-2 -->
422 <div class="col-sm-2 col-sm-pull-10">
424 [% INCLUDE 'serials-menu.inc' %]
426 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
427 </div> <!-- /.row -->
429 [% MACRO jsinclude BLOCK %]
431 var subscriptionid = "[% subscriptionid | html %]";
432 var MSG_CLOSE_SUBSCRIPTION = _("Are you sure you want to close this subscription?");
433 var MSG_REOPEN_SUBSCRIPTION = _("Are you sure you want to reopen this subscription?");
434 var CONFIRM_DELETE_SUBSCRIPTION = _("Are you sure you want to delete this subscription?");
436 [% Asset.js("js/serials-toolbar.js") | $raw %]
437 [% INCLUDE 'datatables.inc' %]
438 [% INCLUDE 'columns_settings.inc' %]
440 // the english words used in display purposes
441 var text = new Array(_("Number"),_("Volume"),_("Issue"),_("Month"),_("Week"),_("Starting with:"),_("Rollover at:"),_("Choose Hemisphere:"),_("Northern"),_("Southern",
442 "Autumn"),_("Winter"),_("Spring"),_("Summer"),_("Fall"),_("Season"),_("Year"));
443 $(document).ready(function() {
444 $("#subscription_description").tabs();
445 $("#renewsub").click(function(){
446 popup([% subscriptionid | html %]);
450 var columns_settings = [% ColumnsSettings.GetColumns( 'serials', 'subscription-detail', 'orders', 'json' ) | $raw %];
451 var table = KohaTable("orders", {
454 "aaSorting": [[ 5, "asc" ], [ 2, "desc" ]], // Order by status then ordernumber
456 { "aTargets": "title-string", "sType": "title-string" }
458 }, columns_settings);
460 $("#hide_received_orders").click(function(e){
462 table.fnFilter( '^$', 4, true ); // Not empty "Receive date" columns
464 $("#show_all_orders").click(function(e){
466 table.fnFilter( '', 4 ); // Not filter, display all columns
468 $("#show_all_orders").click();
475 [% INCLUDE 'intranet-bottom.inc' %]