6 [% USE AuthorisedValues %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>Koha › Serials › Details for subscription #[% subscriptionid | html %]</title>
11 [% INCLUDE 'doc-head-close.inc' %]
12 [% Asset.css("css/datatables.css") %]
15 <body id="ser_subscription-detail" class="ser">
16 [% INCLUDE 'header.inc' %]
17 [% INCLUDE 'serials-search.inc' %]
19 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> › Details for subscription #[% subscriptionid | html %]</div>
21 <div id="doc3" class="yui-t2">
26 [% INCLUDE 'serials-toolbar.inc' %]
28 <h1>Subscription for [% bibliotitle | html %] [% IF closed %](closed)[% END %]</h1>
29 [% IF ( abouttoexpire ) %]
31 <div class="dialog message">Subscription will expire [% enddate | html %]. <a href="#" id="renewsub">Renew this subscription</a>.</div>
34 [% IF ( NEEDSCONFIRMATION ) %]
35 <div id="circ_needsconfirmation" class="dialog alert">
36 <h3>Please confirm subscription deletion</h3>
39 [% IF ( NOTEXPIRED ) %] <li>The subscription has not expired yet</li> [% END %]
40 [% IF ( LINKEDISSUES ) %] <li>The subscription has linked issues</li> [% END %]
41 [% IF ( LINKEDITEMS ) %] <li>The subscription has linked items<br /> Those items won't be deleted</li> [% END %]
43 <form method="post" action="/cgi-bin/koha/serials/subscription-detail.pl">
44 <input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" />
45 <input type="hidden" name="issueconfirmed" value="1" />
46 <input type="hidden" name="op" value="del" />
47 <button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> Yes, delete (Y)</button>
49 <form method="get" action="/cgi-bin/koha/serials/subscription-detail.pl">
50 <input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" />
51 <button type="submit" class="deny" accesskey="n"><i class="fa fa-fw fa-remove"></i> No, don't delete (N)</button>
55 [% END %] <!-- NEEDSCONFIRMATION -->
57 <div id="subscription_description" class="toptabs">
58 <ul class="ui-tabs-nav">
59 <li><a href="#subscription_info">Information</a></li>
60 <li><a href="#subscription_planning">Planning</a></li>
61 <li><a href="#subscription_issues">Issues</a></li>
62 <li><a href="#subscription_summary">Summary</a></li>
65 <div id="subscription_info">
67 <div class="yui-u first">
70 <li><span class="label">Subscription ID: </span>[% subscriptionid | html %]</li>
71 <li><span class="label">Librarian identity:</span> [% librarian | html %]</li>
72 <li><span class="label">Vendor:</span> <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% aqbooksellerid | html %]">[% aqbooksellername | html %]</a></li>
73 <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>
74 [% IF ( OPACBaseURL ) %]
76 <span class="label">OPAC view:</span>
77 <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>
80 [% IF ( branchcode ) %]<li><span class="label">Library:</span> [% Branches.GetName( branchcode ) | html %]</li>[% END %]
81 [% IF ( serialsadditems ) %]
82 <li><span class="label">Items:</span> Serial receipt creates an item record.</li>
84 <li><span class="label">Items:</span> Serial receipt does not create an item record.</li>
87 <span class="label">Serial number:</span>
88 [% IF skip_serialseq %]
89 Serial number is skipped when an irregularity is found.
91 Serial number is kept when an irregularity is found.
94 <li><span class="label">Grace period:</span> [% graceperiod | html %]</li>
101 [% IF ( location ) %]<li><span class="label">Location:</span> [% location | html %]</li>[% END %]
102 [% IF ( callnumber ) %]<li><span class="label">Call number:</span> [% callnumber | html %]</li>[% END %]
103 [% IF ( staffdisplaycount ) %]<li><span class="label">Number of issues to display to staff:</span>[% staffdisplaycount | html %]</li>[% END %]
104 [% IF ( opacdisplaycount ) %]<li><span class="label">Number of issues to display in OPAC:</span>[% opacdisplaycount | html %]</li>[% END %]
107 <span class="label">Patron notification:</span> [% letter | html %]
108 (<a href="/cgi-bin/koha/serials/viewalerts.pl?subscriptionid=[% subscriptionid | html %]">subscribers</a>)
111 [% IF ( hasRouting ) %]<li><span class="label">Routing:</span> yes</li>[% END %]
117 [% IF additional_fields_for_subscription %]
119 <div class="yui-u first">
121 <legend>Additional fields:</legend>
123 [% FOR field IN additional_fields_for_subscription %]
125 <span class="label">[% field.name | html %]:</span>
126 [% IF field.authorised_value_category %]
127 [% AuthorisedValues.GetByCode( field.authorised_value_category, additional_fields.${field.name} ) | html %]
129 [% additional_fields.${field.name} | html %]
140 <div id="subscription_planning">
144 <li><span class="label">Beginning date:</span> [% startdate | html %]
146 <li><span class="label">Frequency:</span>
147 [% frequency.description | html %]
150 <span class="label">Manual history: </span>
151 [% IF ( manualhistory ) %]
152 Enabled <a href="/cgi-bin/koha/serials/subscription-history.pl?subscriptionid=[% subscriptionid | html %]">Edit history</a>
157 <li><span class="label">Number pattern:</span>
158 [% numberpattern.label | html %]
162 <td>Starting with:</td>
164 <td align="center">[% lastvalue1 | html %]</td>
167 <td align="center">[% lastvalue2 | html %]</td>
170 <td align="center">[% lastvalue3 | html %]</td>
176 <td align="center">[% numberpattern.whenmorethan1 | html %]</td>
179 <td align="center">[% numberpattern.whenmorethan2 | html %]</td>
182 <td align="center">[% numberpattern.whenmorethan3 | html %]</td>
186 [% IF ( irregular_issues ) %]
187 <li><span class="label">Irregularity:</span> [% irregular_issues | html %] issues
190 <li><span class="label">First arrival:</span> [% firstacquidate | html %]
192 [% IF ( numberlength ) %]<li><span class="label">Number of issues:</span> [% numberlength | html %]</li>[% END %]
193 [% IF ( weeklength ) %]<li><span class="label">Number of weeks:</span> [% weeklength | html %]</li>[% END %]
194 [% IF ( monthlength ) %]<li><span class="label">Number of months:</span> [% monthlength | html %]</li>[% END %]
199 <div id="subscription_numbering" style="display:none;">
200 <h3>Numbering calculation</h3>
201 <p><label>Numbering formula:</label> [% numberingmethod | html %]</p>
223 <td>[% every1 | html %]</td>
224 <td>[% every2 | html %]</td>
225 <td>[% every3 | html %]</td>
228 <td>When more than</td>
229 <td>[% whenmorethan1 | html %] [% IF ( innerloop1 ) %]<br />
230 <i>(is [% innerloop1 | html %])</i>[% END %]</td>
231 <td>[% whenmorethan2 | html %] [% IF ( innerloop2 ) %]<br />
232 <i>(is [% innerloop2 | html %])</i>[% END %]</td>
233 <td>[% whenmorethan3 | html %] [% IF ( innerloop3 ) %]<br />
234 <i>(is [% innerloop3 | html %])</i>[% END %]</td>
238 <td>[% setto1 | html %]</td>
239 <td>[% setto2 | html %]</td>
240 <td>[% setto3 | html %]</td>
246 <td>[% innerloop1 | html %]</td>
247 <td>[% innerloop2 | html %]</td>
248 <td>[% innerloop3 | html %]</td>
254 <td>[% lastvalue1 | html %]</td>
255 <td>[% lastvalue2 | html %]</td>
256 <td>[% lastvalue3 | html %]</td>
260 <div id="subscription_issues">
263 <th>Issue number</th>
264 <th>Planned date</th>
265 <th>Published date</th>
266 <th>Published date (text)</th>
269 [% FOREACH serialslis IN serialslist %]
272 [% serialslis.serialseq | html %]
275 [% IF serialslis.planneddate %]
276 [% serialslis.planneddate | html %]
282 [% IF serialslis.publisheddate %]
283 [% serialslis.publisheddate | html %]
289 [% serialslis.publisheddatetext | html %]
292 [% IF ( serialslis.status1 ) %]Expected[% END %]
293 [% IF ( serialslis.status2 ) %]Arrived[% END %]
294 [% IF ( serialslis.status3 ) %]Late[% END %]
295 [% IF ( serialslis.status4 ) %]Missing[% END %]
296 [% IF ( serialslis.status41 ) %]Missing (never received)[% END %]
297 [% IF ( serialslis.status42 ) %]Missing (sold out)[% END %]
298 [% IF ( serialslis.status43 ) %]Missing (damaged)[% END %]
299 [% IF ( serialslis.status44 ) %]Missing (lost)[% END %]
300 [% IF ( serialslis.status5 ) %]Not issued[% END %]
301 [% IF ( serialslis.status6 ) %]Delete[% END %]
302 [% IF ( serialslis.status7 ) %]
304 [% IF ( serialslis.claimdate ) %]
305 [% serialslis.claimdate | html %]
308 [% IF ( serialslis.status8 ) %]Stopped[% END %]
314 <div id="subscription_summary">
318 <li><span class="label">Start date:</span> [% startdate | html %] </li>
319 <li><span class="label">End date:</span> [% enddate | html %]</li>
320 <li><span class="label">History start date:</span> [% histstartdate | html %] </li>
321 <li><span class="label">History end date:</span> [% histenddate | html %]</li>
322 <li><span class="label">Received issues:</span>[% recievedlist | html %]</li>
323 <li><span class="label">Missing issues:</span>[% missinglist | html %]</li>
324 <li><span class="label">Nonpublic note:</span>[% internalnotes FILTER html_line_break | html %]</li>
325 <li><span class="label">Public note:</span>[% notes FILTER html_line_break | html %]</li>
326 <li><span class="label">History staff note:</span>[% librariannote FILTER html_line_break | html %]</li>
327 <li><span class="label">History OPAC note:</span>[% opacnote FILTER html_line_break | html %]</li>
335 <div id="acquisition_details">
336 <h2>Acquisition details</h2>
339 <span class="actions">
340 <a href="#" id="hide_received_orders">Hide already received orders</a>
341 | <a href="#" id="show_all_orders">Show all orders</a></span>
348 <th>Order number</th>
349 <th class="title-string">Creation date</th>
350 <th class="title-string">Receive date</th>
358 [% FOR order IN orders %]
361 [% IF order.invoice %]
362 [% IF CAN_user_acquisition %]
363 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid %]" title="Invoice detail page">
364 [% order.invoice.invoicenumber | html %]</a>
366 [% order.invoice.invoicenumber | html %]
370 <td>[% IF CAN_user_acquisition_order_manage %]
371 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% order.basketno | uri %]">[% order.basket.basketname | html %] ([% order.basketno | html %])</a>
373 [% order.basket.basketname | html %] ([% order.basketno | html %])
375 <td>[% order.ordernumber | html %]</td>
376 <td><span title="[% order.basket.creationdate | uri %]">[% order.basket.creationdate | $KohaDates%]</span></td>
377 <td>[% IF order.datereceived %]<span title="[% order.datereceived | uri %]">[% order.datereceived | $KohaDates %]</span>[% END %]</td>
379 [% SWITCH order.orderstatus %]
381 [% CASE 'ordered' %]Ordered
382 [% CASE 'partial' %]Partial
383 [% CASE 'complete' %]Complete
384 [% CASE 'cancelled' %]Cancelled
387 <td>[% order.fund.budget_name | html %]</td>
389 [% UNLESS order.datereceived %]
390 [% order.ecost_tax_excluded | $Price %] / [% order.ecost_tax_included | $Price %]
394 [% IF order.datereceived %]
395 [%# FIXME What if unitprice has not been filled? %]
396 [% order.unitprice_tax_excluded | $Price %] / [% order.unitprice_tax_included | $Price %]
410 [% INCLUDE 'serials-menu.inc' %]
414 [% MACRO jsinclude BLOCK %]
415 <script type="text/javascript">
416 var subscriptionid = "[% subscriptionid | html %]";
417 var MSG_CLOSE_SUBSCRIPTION = _("Are you sure you want to close this subscription?");
418 var MSG_REOPEN_SUBSCRIPTION = _("Are you sure you want to reopen this subscription?");
419 var CONFIRM_DELETE_SUBSCRIPTION = _("Are you sure you want to delete this subscription?");
421 [% Asset.js("js/serials-toolbar.js") | $raw %]
422 [% INCLUDE 'datatables.inc' %]
423 <script type="text/javascript">
424 // the english words used in display purposes
425 var text = new Array(_("Number"),_("Volume"),_("Issue"),_("Month"),_("Week"),_("Starting with:"),_("Rollover at:"),_("Choose Hemisphere:"),_("Northern"),_("Southern",
426 "Autumn"),_("Winter"),_("Spring"),_("Summer"),_("Fall"),_("Season"),_("Year"));
427 $(document).ready(function() {
428 $("#subscription_description").tabs();
429 $("#renewsub").click(function(){
430 popup([% subscriptionid | html %]);
434 var table = $("#orders").dataTable($.extend(true, {}, dataTablesDefaults, {
437 "aaSorting": [[ 4, "desc" ]],
439 { "aTargets": "title-string", "sType": "title-string" }
443 $("#hide_received_orders").click(function(e){
445 table.fnFilter( '.', 4, true ); // Not empty "Receive date" columns
447 $("#show_all_orders").click(function(e){
449 table.fnFilter( '', 4 ); // Not filter, display all columns
451 $("#show_all_orders").click();
458 [% INCLUDE 'intranet-bottom.inc' %]