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' %]
12 <body id="ser_serials-collection" 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> › Serial collection information for <i>[% bibliotitle | html %]</i></div>
18 <div class="main container-fluid">
20 <div class="col-sm-10 col-sm-push-2">
23 [% INCLUDE 'modals/serials_multi_receiving.inc' %]
25 [% UNLESS ( popup ) %]
26 [% INCLUDE 'serials-toolbar.inc' %]
28 <h1>Serial collection information for <i>[% bibliotitle | html %]</i>
29 [% IF location %] ([% AuthorisedValues.GetByCode( 'LOC', location ) | html %]) [% END %]
30 [% IF ( callnumber ) %]callnumber: [% callnumber | html %][% END %]</h1>
33 [% IF ( subscriptions ) %]
35 [% IF ( subscriptions.size == 1 ) %]
36 <caption> Subscription summary</caption>
38 <caption> Subscription summaries</caption>
41 <th>Subscription num.</th>
43 <th>Numbering pattern</th>
49 [% FOREACH subscription IN subscriptions %]
51 <td><a href="subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]"># [% subscription.subscriptionid | html %]</a> </td>
52 <td>[% subscription.frequency.description | html %]</td>
53 <td>[% subscription.numberpattern.label | html %]</td>
54 <td>[% IF subscription.branchcode %][% Branches.GetName( subscription.branchcode ) | html %][% END %]</td>
55 <td> [% subscription.callnumber | html %]</td>
56 <td> [% subscription.notes | html | html_line_break %]
57 [% UNLESS subscription.closed %]
58 [% IF ( subscription.subscriptionexpired ) %]
59 <br /><span class="problem"> Subscription expired</span>
62 <br /> Subscription closed
65 [% IF ( subscription.abouttoexpire ) || ( subscription.subscriptionexpired ) %]<td class="problem actions">[% ELSE %]<td class="actions">[% END %]
66 [% UNLESS subscription.closed %]
67 [% IF ( routing && CAN_user_serials_routing ) %]
68 [% IF ( subscription.hasRouting ) %]
69 <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>
71 <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>
74 [% 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>
76 [% 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>
88 [% IF ( subscriptioncount > 1 ) %]
89 <tr ><td colspan="8"> <a href="serials-collection.pl?biblionumber=[% biblionumber | uri %]">See any subscription attached to this biblio</a></td>
97 [% IF ( years ) %]<form name="edition" action="serials-edit.pl" method="post">
98 <div id="subscription_years" class="toptabs numbered">
100 [% FOREACH year IN years %]
101 [% IF ( year.year ) %]
102 [% IF year.year == 'manage' %]
103 <li><a href="#subscription-year-manage">Manage</a></li>
105 <li><a href="#subscription-year-[% year.year | uri %]">[% year.year | html %]</a></li>
111 [% FOREACH year IN years %]
112 <div id="subscription-year-[% year.year | html %]">
113 [% IF ( CAN_user_serials_receive_serials ) %]
115 <div class="btn-group"><input type="submit" value="Edit serials" class="btn btn-default btn-sm" /></div>
116 [% UNLESS subscription.closed %]
117 <div class="btn-group"><input type="button" value="Generate next" onclick="javascription:generateNext([% subscriptionidlist | html %])" class="btn btn-default btn-sm" /></div>
118 [% IF ( subscriptions.size == 1 and !serialsadditems ) %]
119 <div class="btn-group"><input type="button" value="Multi receiving" href="#multi_receiving" class="btn btn-default btn-sm" data-toggle="modal"></div>
124 <span class="checkall">
125 <a class="CheckAll" href="#" onclick="CheckAll('subscription-year-[% year.year | html %]'); return false;">Select all</a>
127 <span class="clearall">
128 <a class="CheckNone" href="#" onclick="CheckNone('subscription-year-[% year.year | html %]'); return false;">Clear all</a>
130 <table class="subscription-year-table">
133 [% IF ( CAN_user_serials_receive_serials ) %]<th>Edit</th>[% END %]
134 [% IF ( subscriptions.size > 1 ) %]
137 <th class="title-string">Date published
139 <th class="title-string">Date published (text)
141 <th class="title-string">Date received
151 [% IF ( routing ) %]<th>Routing</th>[% END %]
155 [% FOREACH serial IN year.serials %]
157 [% IF ( CAN_user_serials_receive_serials ) %]
159 [% UNLESS CAN_user_serials_receive_serials %]
162 [% IF ( serial.subscriptionexpired ) %]
163 <input type="checkbox" name="serialid" value="[% serial.serialid | html %]" disabled="disabled" />
165 [% IF ( serial.checked ) %]
166 <input type="checkbox" class="checkboxed" name="serialid" checked="checked" value="[% serial.serialid | html %]" />
168 <input type="checkbox" class="checkboxed" name="serialid" value="[% serial.serialid | html %]" />
174 [% IF ( subscriptions.size > 1 ) %]
175 <td><a href="serials-collection.pl?subscriptionid=[% serial.subscriptionid | uri %]">[% serial.subscriptionid | html %]</a></td>
178 <span title="[% serial.publisheddate | html %]">
179 [% IF serial.publisheddate %]
180 [% serial.publisheddate | $KohaDates %]
187 [% IF serial.publisheddatetext %]
188 <span title="[% serial.publisheddatetext | html %]">
189 [% serial.publisheddatetext | html %]
194 <span title="[% serial.planneddate | html %]">
195 [% IF serial.planneddate %]
196 [% serial.planneddate | $KohaDates %]
203 [% IF ( matches = serial.serialseq.match('(.*)Spring(.*)') ) %]
204 [% matches.0 | html %]Spring[% matches.1 | html %]
205 [% ELSIF ( matches = serial.serialseq.match('(.*)Summer(.*)') ) %]
206 [% matches.0 | html %]Summer[% matches.1 | html %]
207 [% ELSIF ( matches = serial.serialseq.match('(.*)Fall(.*)') ) %]
208 [% matches.0 | html %]Fall[% matches.1 | html %]
209 [% ELSIF ( matches = serial.serialseq.match('(.*)Winter(.*)') ) %]
210 [% matches.0 | html %]Winter[% matches.1 | html %]
211 [% ELSIF ( matches = prediction.number.match('(.*)Spr(.*)') ) %]
212 [% matches.0 | html %]Spr[% matches.1 | html %]
213 [% ELSIF ( matches = prediction.number.match('(.*)Sum(.*)') ) %]
214 [% matches.0 | html %]Sum[% matches.1 | html %]
215 [% ELSIF ( matches = prediction.number.match('(.*)Fal(.*)') ) %]
216 [% matches.0 | html %]Fal[% matches.1 | html %]
217 [% ELSIF ( matches = prediction.number.match('(.*)Win(.*)') ) %]
218 [% matches.0 | html %]Win[% matches.1 | html %]
220 [% serial.serialseq | html %]
224 [% IF ( serial.status1 ) %]Expected[% END %]
225 [% IF ( serial.status2 ) %]Arrived[% END %]
226 [% IF ( serial.status3 ) %]Late[% END %]
227 [% IF ( serial.status4 ) %]Missing[% END %]
228 [% IF ( serial.status41 ) %]Missing (never received)[% END %]
229 [% IF ( serial.status42 ) %]Missing (sold out)[% END %]
230 [% IF ( serial.status43 ) %]Missing (damaged)[% END %]
231 [% IF ( serial.status44 ) %]Missing (lost)[% END %]
232 [% IF ( serial.status5 ) %]Not issued[% END %]
233 [% IF ( serial.status6 ) %]Delete[% END %]
234 [% IF ( serial.status7 ) %]Claimed[% END %]
235 [% IF ( serial.status8 ) %]Stopped[% END %]
238 [% serial.notes | html %]
241 [% Branches.GetName( serial.branchcode ) | html %]
245 <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>
254 <input type="hidden" name="subscriptionid" value="[% subscriptionidlist | html %]" />
261 </div> <!-- /.col-sm-10.col-sm-push-2 -->
263 <div class="col-sm-2 col-sm-pull-10">
265 [% INCLUDE 'serials-menu.inc' %]
267 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
268 </div> <!-- /.row -->
270 [% MACRO jsinclude BLOCK %]
271 [% INCLUDE 'datatables.inc' %]
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 %]
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' %]