5 [% USE AuthorisedValues %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Koha › Serials › Details for subscription #[% subscriptionid | html %]</title>
9 [% INCLUDE 'doc-head-close.inc' %]
12 <body id="ser_subscription-detail" class="ser">
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'serials-search.inc' %]
16 <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>
18 <div id="doc3" class="yui-t2">
23 [% INCLUDE 'serials-toolbar.inc' %]
25 <h1>Subscription for [% bibliotitle | html %] [% IF closed %](closed)[% END %]</h1>
26 [% IF ( abouttoexpire ) %]
28 <div class="dialog message">Subscription will expire [% enddate | html %]. <a href="#" id="renewsub">Renew this subscription</a>.</div>
31 [% IF ( NEEDSCONFIRMATION ) %]
32 <div id="circ_needsconfirmation" class="dialog alert">
33 <h3>Please confirm subscription deletion</h3>
36 [% IF ( NOTEXPIRED ) %] <li>The subscription has not expired yet</li> [% END %]
37 [% IF ( LINKEDISSUES ) %] <li>The subscription has linked issues</li> [% END %]
38 [% IF ( LINKEDITEMS ) %] <li>The subscription has linked items<br /> Those items won't be deleted</li> [% END %]
40 <form method="post" action="/cgi-bin/koha/serials/subscription-detail.pl">
41 <input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" />
42 <input type="hidden" name="issueconfirmed" value="1" />
43 <input type="hidden" name="op" value="del" />
44 <button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> Yes, delete (Y)</button>
46 <form method="get" action="/cgi-bin/koha/serials/subscription-detail.pl">
47 <input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" />
48 <button type="submit" class="deny" accesskey="n"><i class="fa fa-fw fa-remove"></i> No, don't delete (N)</button>
52 [% END %] <!-- NEEDSCONFIRMATION -->
54 <div id="subscription_description" class="toptabs">
55 <ul class="ui-tabs-nav">
56 <li><a href="#subscription_info">Information</a></li>
57 <li><a href="#subscription_planning">Planning</a></li>
58 <li><a href="#subscription_issues">Issues</a></li>
59 <li><a href="#subscription_summary">Summary</a></li>
62 <div id="subscription_info">
64 <div class="yui-u first">
67 <li><span class="label">Subscription ID: </span>[% subscriptionid | html %]</li>
68 <li><span class="label">Librarian identity:</span> [% librarian | html %]</li>
69 <li><span class="label">Vendor:</span> <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% aqbooksellerid | html %]">[% aqbooksellername | html %]</a></li>
70 <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>
71 [% IF ( OPACBaseURL ) %]
73 <span class="label">OPAC view:</span>
74 <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>
77 [% IF ( branchcode ) %]<li><span class="label">Library:</span> [% Branches.GetName( branchcode ) | html %]</li>[% END %]
78 [% IF ( serialsadditems ) %]
79 <li><span class="label">Items:</span> Serial receipt creates an item record.</li>
81 <li><span class="label">Items:</span> Serial receipt does not create an item record.</li>
84 <span class="label">Serial number:</span>
85 [% IF skip_serialseq %]
86 Serial number is skipped when an irregularity is found.
88 Serial number is kept when an irregularity is found.
91 <li><span class="label">Grace period:</span> [% graceperiod | html %]</li>
98 [% IF ( location ) %]<li><span class="label">Location:</span> [% location | html %]</li>[% END %]
99 [% IF ( callnumber ) %]<li><span class="label">Call number:</span> [% callnumber | html %]</li>[% END %]
100 [% IF ( staffdisplaycount ) %]<li><span class="label">Number of issues to display to staff:</span>[% staffdisplaycount | html %]</li>[% END %]
101 [% IF ( opacdisplaycount ) %]<li><span class="label">Number of issues to display in OPAC:</span>[% opacdisplaycount | html %]</li>[% END %]
104 <span class="label">Patron notification:</span> [% letter | html %]
105 (<a href="/cgi-bin/koha/serials/viewalerts.pl?subscriptionid=[% subscriptionid | html %]">subscribers</a>)
108 [% IF ( hasRouting ) %]<li><span class="label">Routing:</span> yes</li>[% END %]
114 [% IF additional_fields_for_subscription %]
116 <div class="yui-u first">
118 <legend>Additional fields:</legend>
120 [% FOR field IN additional_fields_for_subscription %]
122 <span class="label">[% field.name | html %]:</span>
123 [% IF field.authorised_value_category %]
124 [% AuthorisedValues.GetByCode( field.authorised_value_category, additional_fields.${field.name} ) | html %]
126 [% additional_fields.${field.name} | html %]
137 <div id="subscription_planning">
141 <li><span class="label">Beginning date:</span> [% startdate | html %]
143 <li><span class="label">Frequency:</span>
144 [% frequency.description | html %]
147 <span class="label">Manual history: </span>
148 [% IF ( manualhistory ) %]
149 Enabled <a href="/cgi-bin/koha/serials/subscription-history.pl?subscriptionid=[% subscriptionid | html %]">Edit history</a>
154 <li><span class="label">Number pattern:</span>
155 [% numberpattern.label | html %]
159 <td>Starting with:</td>
161 <td align="center">[% lastvalue1 | html %]</td>
164 <td align="center">[% lastvalue2 | html %]</td>
167 <td align="center">[% lastvalue3 | html %]</td>
173 <td align="center">[% numberpattern.whenmorethan1 | html %]</td>
176 <td align="center">[% numberpattern.whenmorethan2 | html %]</td>
179 <td align="center">[% numberpattern.whenmorethan3 | html %]</td>
183 [% IF ( irregular_issues ) %]
184 <li><span class="label">Irregularity:</span> [% irregular_issues | html %] issues
187 <li><span class="label">First arrival:</span> [% firstacquidate | html %]
189 [% IF ( numberlength ) %]<li><span class="label">Number of issues:</span> [% numberlength | html %]</li>[% END %]
190 [% IF ( weeklength ) %]<li><span class="label">Number of weeks:</span> [% weeklength | html %]</li>[% END %]
191 [% IF ( monthlength ) %]<li><span class="label">Number of months:</span> [% monthlength | html %]</li>[% END %]
196 <div id="subscription_numbering" style="display:none;">
197 <h3>Numbering calculation</h3>
198 <p><label>Numbering formula:</label> [% numberingmethod | html %]</p>
220 <td>[% every1 | html %]</td>
221 <td>[% every2 | html %]</td>
222 <td>[% every3 | html %]</td>
225 <td>When more than</td>
226 <td>[% whenmorethan1 | html %] [% IF ( innerloop1 ) %]<br />
227 <i>(is [% innerloop1 | html %])</i>[% END %]</td>
228 <td>[% whenmorethan2 | html %] [% IF ( innerloop2 ) %]<br />
229 <i>(is [% innerloop2 | html %])</i>[% END %]</td>
230 <td>[% whenmorethan3 | html %] [% IF ( innerloop3 ) %]<br />
231 <i>(is [% innerloop3 | html %])</i>[% END %]</td>
235 <td>[% setto1 | html %]</td>
236 <td>[% setto2 | html %]</td>
237 <td>[% setto3 | html %]</td>
243 <td>[% innerloop1 | html %]</td>
244 <td>[% innerloop2 | html %]</td>
245 <td>[% innerloop3 | html %]</td>
251 <td>[% lastvalue1 | html %]</td>
252 <td>[% lastvalue2 | html %]</td>
253 <td>[% lastvalue3 | html %]</td>
257 <div id="subscription_issues">
260 <th>Issue number</th>
261 <th>Planned date</th>
262 <th>Published date</th>
263 <th>Published date (text)</th>
266 [% FOREACH serialslis IN serialslist %]
269 [% serialslis.serialseq | html %]
272 [% IF serialslis.planneddate %]
273 [% serialslis.planneddate | html %]
279 [% IF serialslis.publisheddate %]
280 [% serialslis.publisheddate | html %]
286 [% serialslis.publisheddatetext | html %]
289 [% IF ( serialslis.status1 ) %]Expected[% END %]
290 [% IF ( serialslis.status2 ) %]Arrived[% END %]
291 [% IF ( serialslis.status3 ) %]Late[% END %]
292 [% IF ( serialslis.status4 ) %]Missing[% END %]
293 [% IF ( serialslis.status41 ) %]Missing (never received)[% END %]
294 [% IF ( serialslis.status42 ) %]Missing (sold out)[% END %]
295 [% IF ( serialslis.status43 ) %]Missing (damaged)[% END %]
296 [% IF ( serialslis.status44 ) %]Missing (lost)[% END %]
297 [% IF ( serialslis.status5 ) %]Not issued[% END %]
298 [% IF ( serialslis.status6 ) %]Delete[% END %]
299 [% IF ( serialslis.status7 ) %]
301 [% IF ( serialslis.claimdate ) %]
302 [% serialslis.claimdate | html %]
305 [% IF ( serialslis.status8 ) %]Stopped[% END %]
311 <div id="subscription_summary">
315 <li><span class="label">Start date:</span> [% startdate | html %] </li>
316 <li><span class="label">End date:</span> [% enddate | html %]</li>
317 <li><span class="label">History start date:</span> [% histstartdate | html %] </li>
318 <li><span class="label">History end date:</span> [% histenddate | html %]</li>
319 <li><span class="label">Received issues:</span>[% recievedlist | html %]</li>
320 <li><span class="label">Missing issues:</span>[% missinglist | html %]</li>
321 <li><span class="label">Nonpublic note:</span>[% internalnotes FILTER html_line_break | html %]</li>
322 <li><span class="label">Public note:</span>[% notes FILTER html_line_break | html %]</li>
323 <li><span class="label">History staff note:</span>[% librariannote FILTER html_line_break | html %]</li>
324 <li><span class="label">History OPAC note:</span>[% opacnote FILTER html_line_break | html %]</li>
331 [% IF ( show_acquisition_details ) %]
332 <div id="acquisition_details">
333 <h2>Acquisition details</h2>
336 <tr><th></th><th>Price exc. taxes</th><th>Price inc. taxes</th><th>Fund</th><th></th></tr>
340 <td>Ordered amount</td>
341 <td>[% value_tax_excluded_ordered | html %]</td>
342 <td>[% value_tax_included_ordered | html %]</td>
343 <td>[% budget_name_ordered | html %]</td>
345 [% IF ( ordered_exists ) %]
346 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | html %]">See basket information</a>
351 <td>Spent amount</td>
352 <td>[% value_tax_excluded_spent | html %]</td>
353 <td>[% value_tax_included_spent | html %]</td>
354 <td>[% budget_name_spent | html %]</td>
356 [% IF ( spent_exists ) %]
357 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid | html %]">See invoice information</a>
372 [% INCLUDE 'serials-menu.inc' %]
376 [% MACRO jsinclude BLOCK %]
377 <script type="text/javascript">
378 var subscriptionid = "[% subscriptionid | html %]";
379 var MSG_CLOSE_SUBSCRIPTION = _("Are you sure you want to close this subscription?");
380 var MSG_REOPEN_SUBSCRIPTION = _("Are you sure you want to reopen this subscription?");
381 var CONFIRM_DELETE_SUBSCRIPTION = _("Are you sure you want to delete this subscription?");
383 [% Asset.js("js/serials-toolbar.js") | $raw %]
384 <script type="text/javascript">
385 // the english words used in display purposes
386 var text = new Array(_("Number"),_("Volume"),_("Issue"),_("Month"),_("Week"),_("Starting with:"),_("Rollover at:"),_("Choose Hemisphere:"),_("Northern"),_("Southern",
387 "Autumn"),_("Winter"),_("Spring"),_("Summer"),_("Fall"),_("Season"),_("Year"));
388 $(document).ready(function() {
389 $("#subscription_description").tabs();
390 $("#renewsub").click(function(){
391 popup([% subscriptionid | html %]);
398 [% INCLUDE 'intranet-bottom.inc' %]