3 [% USE AuthorisedValues %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Koha › Serials › Serial collection information for [% bibliotitle | html %]</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 [% Asset.css("css/datatables.css") | $raw %]
13 <body id="ser_serials-collection" class="ser">
14 [% INCLUDE 'header.inc' %]
15 [% INCLUDE 'serials-search.inc' %]
17 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> › Serial collection information for <i>[% bibliotitle | html %]</i></div>
19 <div id="doc3" class="yui-t2">
25 [% INCLUDE 'modals/serials_multi_receiving.inc' %]
27 [% UNLESS ( popup ) %]
28 [% INCLUDE 'serials-toolbar.inc' %]
30 <h1>Serial collection information for <i>[% bibliotitle | html %]</i>
31 [% IF location %] ([% AuthorisedValues.GetByCode( 'LOC', location ) | html %]) [% END %]
32 [% IF ( callnumber ) %]callnumber: [% callnumber | html %][% END %]</h1>
35 [% IF ( subscriptions ) %]
37 [% IF ( subscriptions.size == 1 ) %]
38 <caption> Subscription summary</caption>
40 <caption> Subscription summaries</caption>
43 <th>Subscription num.</th>
45 <th>Numbering pattern</th>
51 [% FOREACH subscription IN subscriptions %]
53 <td><a href="subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | html %]"># [% subscription.subscriptionid | html %]</a> </td>
54 <td>[% subscription.frequency.description | html %]</td>
55 <td>[% subscription.numberpattern.label | html %]</td>
56 <td>[% IF subscription.branchcode %][% Branches.GetName( subscription.branchcode ) | html %][% END %]</td>
57 <td> [% subscription.callnumber | html %]</td>
58 <td> [% subscription.notes | html %]
59 [% UNLESS subscription.closed %]
60 [% IF ( subscription.subscriptionexpired ) %]
61 <br /><span class="problem"> Subscription expired</span>
64 <br /> Subscription closed
67 [% IF ( subscription.abouttoexpire ) || ( subscription.subscriptionexpired ) %]<td class="problem actions">[% ELSE %]<td class="actions">[% END %]
68 [% UNLESS subscription.closed %]
69 [% IF ( routing && CAN_user_serials_routing ) %]
70 [% IF ( subscription.hasRouting ) %]
71 <a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid | html %]"><i class="fa fa-pencil"></i> Edit routing list</a>
73 <a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid | html %]&op=new"><i class="fa fa-plus"></i> Create routing list</a>
76 [% IF ( subscription.abouttoexpire ) %]<a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=[% subscription.subscriptionid | html %]" onclick="popup([% subscription.subscriptionid | html %]); return false;"><i class="fa fa-refresh"></i> Renew</a>
78 [% IF ( subscription.subscriptionexpired ) %]<a class="btn btn-default btn-xs" href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=[% subscription.subscriptionid | html %]" onclick="popup([% subscription.subscriptionid | html %]); return false;"><i class="fa fa-refresh"></i> Renew</a>
90 [% IF ( subscriptioncount > 1 ) %]
91 <tr ><td colspan="8"> <a href="serials-collection.pl?biblionumber=[% biblionumber | html %]">See any subscription attached to this biblio</a></td>
99 [% IF ( years ) %]<form name="edition" action="serials-edit.pl" method="post">
100 <div id="subscription_years" class="toptabs numbered">
102 [% FOREACH year IN years %]
103 [% IF ( year.year ) %]
104 [% IF year.year == 'manage' %]
105 <li><a href="#subscription-year-manage">Manage</a></li>
107 <li><a href="#subscription-year-[% year.year | html %]">[% year.year | html %]</a></li>
113 [% FOREACH year IN years %]
114 <div id="subscription-year-[% year.year | html %]">
115 [% IF ( CAN_user_serials_receive_serials ) %]
117 <div class="btn-group"><input type="submit" value="Edit serials" class="btn btn-default btn-sm" /></div>
118 [% UNLESS subscription.closed %]
119 <div class="btn-group"><input type="button" value="Generate next" onclick="javascription:generateNext([% subscriptionidlist | html %])" class="btn btn-default btn-sm" /></div>
120 [% IF ( subscriptions.size == 1 and !serialsadditems ) %]
121 <div class="btn-group"><input type="button" value="Multi receiving" href="#multi_receiving" class="btn btn-default btn-sm" data-toggle="modal"></div>
126 <span class="checkall">
127 <a class="CheckAll" href="#" onclick="CheckAll('subscription-year-[% year.year | html %]'); return false;">Select all</a>
129 <span class="clearall">
130 <a class="CheckNone" href="#" onclick="CheckNone('subscription-year-[% year.year | html %]'); return false;">Clear all</a>
132 <table class="subscription-year-table">
135 [% IF ( CAN_user_serials_receive_serials ) %]<th>Edit</th>[% END %]
136 [% IF ( subscriptions.size > 1 ) %]
139 <th class="title-string">Date published
141 <th class="title-string">Date published (text)
143 <th class="title-string">Date received
153 [% IF ( routing ) %]<th>Routing</th>[% END %]
157 [% FOREACH serial IN year.serials %]
159 [% IF ( CAN_user_serials_receive_serials ) %]
161 [% UNLESS CAN_user_serials_receive_serials %]
164 [% IF ( serial.subscriptionexpired ) %]
165 <input type="checkbox" name="serialid" value="[% serial.serialid | html %]" disabled="disabled" />
167 [% IF ( serial.checked ) %]
168 <input type="checkbox" class="checkboxed" name="serialid" checked="checked" value="[% serial.serialid | html %]" />
170 <input type="checkbox" class="checkboxed" name="serialid" value="[% serial.serialid | html %]" />
176 [% IF ( subscriptions.size > 1 ) %]
177 <td><a href="serials-collection.pl?subscriptionid=[% serial.subscriptionid | html %]">[% serial.subscriptionid | html %]</a></td>
180 <span title="[% serial.publisheddate | html %]">
181 [% IF serial.publisheddate %]
182 [% serial.publisheddate | $KohaDates %]
189 [% IF serial.publisheddatetext %]
190 <span title="[% serial.publisheddatetext | html %]">
191 [% serial.publisheddatetext | html %]
196 <span title="[% serial.planneddate | html %]">
197 [% IF serial.planneddate %]
198 [% serial.planneddate | $KohaDates %]
205 [% IF ( matches = serial.serialseq.match('(.*)Spring(.*)') ) %]
206 [% matches.0 | html %]Spring[% matches.1 | html %]
207 [% ELSIF ( matches = serial.serialseq.match('(.*)Summer(.*)') ) %]
208 [% matches.0 | html %]Summer[% matches.1 | html %]
209 [% ELSIF ( matches = serial.serialseq.match('(.*)Fall(.*)') ) %]
210 [% matches.0 | html %]Fall[% matches.1 | html %]
211 [% ELSIF ( matches = serial.serialseq.match('(.*)Winter(.*)') ) %]
212 [% matches.0 | html %]Winter[% matches.1 | html %]
213 [% ELSIF ( matches = prediction.number.match('(.*)Spr(.*)') ) %]
214 [% matches.0 | html %]Spr[% matches.1 | html %]
215 [% ELSIF ( matches = prediction.number.match('(.*)Sum(.*)') ) %]
216 [% matches.0 | html %]Sum[% matches.1 | html %]
217 [% ELSIF ( matches = prediction.number.match('(.*)Fal(.*)') ) %]
218 [% matches.0 | html %]Fal[% matches.1 | html %]
219 [% ELSIF ( matches = prediction.number.match('(.*)Win(.*)') ) %]
220 [% matches.0 | html %]Win[% matches.1 | html %]
222 [% serial.serialseq | html %]
226 [% IF ( serial.status1 ) %]Expected[% END %]
227 [% IF ( serial.status2 ) %]Arrived[% END %]
228 [% IF ( serial.status3 ) %]Late[% END %]
229 [% IF ( serial.status4 ) %]Missing[% END %]
230 [% IF ( serial.status41 ) %]Missing (never received)[% END %]
231 [% IF ( serial.status42 ) %]Missing (sold out)[% END %]
232 [% IF ( serial.status43 ) %]Missing (damaged)[% END %]
233 [% IF ( serial.status44 ) %]Missing (lost)[% END %]
234 [% IF ( serial.status5 ) %]Not issued[% END %]
235 [% IF ( serial.status6 ) %]Delete[% END %]
236 [% IF ( serial.status7 ) %]Claimed[% END %]
237 [% IF ( serial.status8 ) %]Stopped[% END %]
240 [% serial.notes | html %]
243 [% Branches.GetName( serial.branchcode ) | html %]
247 <a href="" onclick="print_slip([% serial.subscriptionid | html %], '[% serial.serialseq.replace("'", "\\'") | html %] ([% serial.publisheddate | $KohaDates %])'); return false" class="btn btn-default btn-xs"><i class="fa fa-print"></i> Print list</a>
256 <input type="hidden" name="subscriptionid" value="[% subscriptionidlist | html %]" />
266 [% INCLUDE 'serials-menu.inc' %]
270 [% MACRO jsinclude BLOCK %]
271 [% INCLUDE 'datatables.inc' %]
272 <script type="text/javascript">
273 var subscriptionid = "[% subscriptionid | html %]";
274 var MSG_CLOSE_SUBSCRIPTION = _("Are you sure you want to close this subscription?");
275 var MSG_REOPEN_SUBSCRIPTION = _("Are you sure you want to reopen this subscription?");
276 var CONFIRM_DELETE_SUBSCRIPTION = _("Are you sure you want to delete this subscription?");
278 [% Asset.js("js/serials-toolbar.js") | $raw %]
279 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
281 <script type="text/javascript">
283 function print_slip(subscriptionid,issue){
284 var myurl = 'routing-preview.pl?ok=1&subscriptionid='+subscriptionid+'&issue='+issue;
285 window.open(myurl,'PrintSlip','width=500,height=500,toolbar=no,scrollbars=yes');
288 function popup(subscriptionid) {
289 newin=window.open('subscription-renew.pl?mode=popup&subscriptionid='+subscriptionid,'popup','width=500,height=400,toolbar=false,scrollbars=yes');
292 function generateNext(subscriptionid) {
293 if(confirm(_("Do you really want to generate next serial?"))){
294 document.location = 'serials-collection.pl?op=gennext&subscriptionid='+subscriptionid;
298 function CheckAll( node ) {
299 $("#"+node).checkCheckboxes();
302 function CheckNone( node ) {
303 $("#"+node).unCheckCheckboxes();
306 $(document).ready(function() {
307 $('#subscription_years').tabs();
308 $(".subscription-year-table").dataTable($.extend(true, {}, dataTablesDefaults, {
310 { "aTargets": [ 0,-1 ], "bSortable": false, "bSearchable": false },
311 { "sType": "title-string", "aTargets" : [ "title-string" ] }
313 "aaSorting": [[0, 'desc']],
321 $('#multi_receiving').on('show', function () {
322 $(this).find(".modal-body").html($(".serials_multi_receiving")[0].outerHTML);
325 $("form[name='edition']").on('submit', function(e){
326 if ( $(this).find("input[name='serialid']:checked").size() == 0 ) {
328 alert(_("You must select at least one serial to edit"));
338 [% INCLUDE 'intranet-bottom.inc' %]