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 id="doc3" class="yui-t2">
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="yui-u first">
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>
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 %]
124 <div class="yui-u first">
126 <legend>Additional fields:</legend>
128 [% FOR field IN additional_fields_for_subscription %]
130 <span class="label">[% field.name | html %]:</span>
131 [% IF field.authorised_value_category %]
132 [% AuthorisedValues.GetByCode( field.authorised_value_category, additional_fields.${field.name} ) | html %]
134 [% additional_fields.${field.name} | html %]
145 <div id="subscription_planning">
149 <li><span class="label">Beginning date:</span> [% startdate | html %]
151 <li><span class="label">Frequency:</span>
152 [% frequency.description | html %]
155 <span class="label">Manual history: </span>
156 [% IF ( manualhistory ) %]
157 Enabled <a href="/cgi-bin/koha/serials/subscription-history.pl?subscriptionid=[% subscriptionid | html %]">Edit history</a>
162 <li><span class="label">Number pattern:</span>
163 [% numberpattern.label | html %]
167 <td>Starting with:</td>
169 <td align="center">[% lastvalue1 | html %]</td>
172 <td align="center">[% lastvalue2 | html %]</td>
175 <td align="center">[% lastvalue3 | html %]</td>
181 <td align="center">[% numberpattern.whenmorethan1 | html %]</td>
184 <td align="center">[% numberpattern.whenmorethan2 | html %]</td>
187 <td align="center">[% numberpattern.whenmorethan3 | html %]</td>
191 [% IF ( irregular_issues ) %]
192 <li><span class="label">Irregularity:</span> [% irregular_issues | html %] issues
195 <li><span class="label">First arrival:</span> [% firstacquidate | html %]
197 [% IF ( numberlength ) %]<li><span class="label">Number of issues:</span> [% numberlength | html %]</li>[% END %]
198 [% IF ( weeklength ) %]<li><span class="label">Number of weeks:</span> [% weeklength | html %]</li>[% END %]
199 [% IF ( monthlength ) %]<li><span class="label">Number of months:</span> [% monthlength | html %]</li>[% END %]
204 <div id="subscription_numbering" style="display:none;">
205 <h3>Numbering calculation</h3>
206 <p><label>Numbering formula:</label> [% numberingmethod | html %]</p>
228 <td>[% every1 | html %]</td>
229 <td>[% every2 | html %]</td>
230 <td>[% every3 | html %]</td>
233 <td>When more than</td>
234 <td>[% whenmorethan1 | html %] [% IF ( innerloop1 ) %]<br />
235 <i>(is [% innerloop1 | html %])</i>[% END %]</td>
236 <td>[% whenmorethan2 | html %] [% IF ( innerloop2 ) %]<br />
237 <i>(is [% innerloop2 | html %])</i>[% END %]</td>
238 <td>[% whenmorethan3 | html %] [% IF ( innerloop3 ) %]<br />
239 <i>(is [% innerloop3 | html %])</i>[% END %]</td>
243 <td>[% setto1 | html %]</td>
244 <td>[% setto2 | html %]</td>
245 <td>[% setto3 | html %]</td>
251 <td>[% innerloop1 | html %]</td>
252 <td>[% innerloop2 | html %]</td>
253 <td>[% innerloop3 | html %]</td>
259 <td>[% lastvalue1 | html %]</td>
260 <td>[% lastvalue2 | html %]</td>
261 <td>[% lastvalue3 | html %]</td>
265 <div id="subscription_issues">
268 <th>Issue number</th>
269 <th>Planned date</th>
270 <th>Published date</th>
271 <th>Published date (text)</th>
274 [% FOREACH serialslis IN serialslist %]
277 [% serialslis.serialseq | html %]
280 [% IF serialslis.planneddate %]
281 [% serialslis.planneddate | html %]
287 [% IF serialslis.publisheddate %]
288 [% serialslis.publisheddate | html %]
294 [% serialslis.publisheddatetext | html %]
297 [% IF ( serialslis.status1 ) %]Expected[% END %]
298 [% IF ( serialslis.status2 ) %]Arrived[% END %]
299 [% IF ( serialslis.status3 ) %]Late[% END %]
300 [% IF ( serialslis.status4 ) %]Missing[% END %]
301 [% IF ( serialslis.status41 ) %]Missing (never received)[% END %]
302 [% IF ( serialslis.status42 ) %]Missing (sold out)[% END %]
303 [% IF ( serialslis.status43 ) %]Missing (damaged)[% END %]
304 [% IF ( serialslis.status44 ) %]Missing (lost)[% END %]
305 [% IF ( serialslis.status5 ) %]Not issued[% END %]
306 [% IF ( serialslis.status6 ) %]Delete[% END %]
307 [% IF ( serialslis.status7 ) %]
309 [% IF ( serialslis.claimdate ) %]
310 [% serialslis.claimdate | html %]
313 [% IF ( serialslis.status8 ) %]Stopped[% END %]
319 <div id="subscription_summary">
323 <li><span class="label">Start date:</span> [% startdate | html %] </li>
324 <li><span class="label">End date:</span> [% enddate | html %]</li>
325 <li><span class="label">History start date:</span> [% histstartdate | html %] </li>
326 <li><span class="label">History end date:</span> [% histenddate | html %]</li>
327 <li><span class="label">Received issues:</span>[% recievedlist | html %]</li>
328 <li><span class="label">Missing issues:</span>[% missinglist | html %]</li>
329 <li><span class="label">Nonpublic note:</span>[% internalnotes FILTER html_line_break | html %]</li>
330 <li><span class="label">Public note:</span>[% notes FILTER html_line_break | html %]</li>
331 <li><span class="label">History staff note:</span>[% librariannote FILTER html_line_break | html %]</li>
332 <li><span class="label">History OPAC note:</span>[% opacnote FILTER html_line_break | html %]</li>
340 <div id="acquisition_details">
341 <h2>Acquisition details</h2>
344 <span class="actions">
345 <a href="#" id="hide_received_orders">Hide already received orders</a>
346 | <a href="#" id="show_all_orders">Show all orders</a></span>
353 <th>Order number</th>
354 <th class="title-string">Creation date</th>
355 <th class="title-string">Receive date</th>
356 <th class="title-string">Status</th>
357 <th>Internal note</th>
360 <th title="ecost tax exc. / ecost tax inc.">Ordered</th>
361 <th title="Actual cost tax exc. / Actual cost tax inc.">Spent</th>
365 [% FOR order IN orders %]
368 [% IF order.invoice %]
369 [% IF CAN_user_acquisition %]
370 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | html %]" title="Invoice detail page">
371 [% order.invoice.invoicenumber | html %]</a>
373 [% order.invoice.invoicenumber | html %]
377 <td>[% IF CAN_user_acquisition_order_manage %]
378 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% order.basketno | uri %]">[% order.basket.basketname | html %] ([% order.basketno | html %])</a>
380 [% order.basket.basketname | html %] ([% order.basketno | html %])
382 <td>[% order.ordernumber | html %]</td>
383 <td><span title="[% order.basket.creationdate | uri %]">[% order.basket.creationdate | $KohaDates%]</span></td>
384 <td>[% IF order.datereceived %]<span title="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates %]</span>[% END %]</td>
386 [% SWITCH order.orderstatus %]
387 [% CASE 'new' %]<span title="status_1">New</span>
388 [% CASE 'ordered' %]<span title="status_2">Ordered</span>
389 [% CASE 'partial' %]<span title="status_3">Partial</span>
390 [% CASE 'complete' %]<span title="status_4">Complete</span>
391 [% CASE 'cancelled' %]<span title="status_5">Cancelled</span>
394 <td>[% order.order_internalnote | html %]</td>
395 <td>[% order.order_vendornote | html %]</td>
396 <td>[% order.fund.budget_name | html %]</td>
398 [% UNLESS order.datereceived %]
399 [% order.ecost_tax_excluded | $Price %] / [% order.ecost_tax_included | $Price %]
403 [% IF order.datereceived %]
404 [%# FIXME What if unitprice has not been filled? %]
405 [% order.unitprice_tax_excluded | $Price %] / [% order.unitprice_tax_included | $Price %]
419 [% INCLUDE 'serials-menu.inc' %]
423 [% MACRO jsinclude BLOCK %]
424 <script type="text/javascript">
425 var subscriptionid = "[% subscriptionid | html %]";
426 var MSG_CLOSE_SUBSCRIPTION = _("Are you sure you want to close this subscription?");
427 var MSG_REOPEN_SUBSCRIPTION = _("Are you sure you want to reopen this subscription?");
428 var CONFIRM_DELETE_SUBSCRIPTION = _("Are you sure you want to delete this subscription?");
430 [% Asset.js("js/serials-toolbar.js") | $raw %]
431 [% INCLUDE 'datatables.inc' %]
432 [% INCLUDE 'columns_settings.inc' %]
433 <script type="text/javascript">
434 // the english words used in display purposes
435 var text = new Array(_("Number"),_("Volume"),_("Issue"),_("Month"),_("Week"),_("Starting with:"),_("Rollover at:"),_("Choose Hemisphere:"),_("Northern"),_("Southern",
436 "Autumn"),_("Winter"),_("Spring"),_("Summer"),_("Fall"),_("Season"),_("Year"));
437 $(document).ready(function() {
438 $("#subscription_description").tabs();
439 $("#renewsub").click(function(){
440 popup([% subscriptionid | html %]);
444 var columns_settings = [% ColumnsSettings.GetColumns( 'serials', 'subscription-detail', 'orders', 'json' ) | $raw %];
445 var table = KohaTable("orders", {
448 "aaSorting": [[ 5, "asc" ], [ 2, "desc" ]], // Order by status then ordernumber
450 { "aTargets": "title-string", "sType": "title-string" }
452 }, columns_settings);
454 $("#hide_received_orders").click(function(e){
456 table.fnFilter( '^$', 4, true ); // Not empty "Receive date" columns
458 $("#show_all_orders").click(function(e){
460 table.fnFilter( '', 4 ); // Not filter, display all columns
462 $("#show_all_orders").click();
469 [% INCLUDE 'intranet-bottom.inc' %]