|
Lines 1-6
Link Here
|
| 1 |
[% INCLUDE 'doc-head-open.inc' %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
| 2 |
<title>Koha › Serials › Serial collection information for [% bibliotitle %]</title> |
2 |
<title>Koha › Serials › Serial collection information for [% bibliotitle %]</title> |
|
|
3 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
| 3 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% INCLUDE 'doc-head-close.inc' %] |
|
|
5 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script> |
| 6 |
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script> |
| 7 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
| 4 |
|
8 |
|
| 5 |
<script type="text/javascript"> |
9 |
<script type="text/javascript"> |
| 6 |
//<![CDATA[ |
10 |
//<![CDATA[ |
|
Lines 45-54
function generateNext(subscriptionid) {
Link Here
|
| 45 |
} |
49 |
} |
| 46 |
} |
50 |
} |
| 47 |
|
51 |
|
|
|
52 |
function CheckAll( node ) { |
| 53 |
$("#"+node).checkCheckboxes(); |
| 54 |
return false; |
| 55 |
} |
| 56 |
function CheckNone( node ) { |
| 57 |
$("#"+node).unCheckCheckboxes(); |
| 58 |
return false; |
| 59 |
} |
| 48 |
$(document).ready(function() { |
60 |
$(document).ready(function() { |
| 49 |
$('#subscription_years').tabs(); |
61 |
$('#subscription_years').tabs(); |
|
|
62 |
[% IF dateformatmetric %] |
| 63 |
dt_add_type_uk_date(); |
| 64 |
[% END %] |
| 65 |
|
| 66 |
$(".subscription-year-table").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 67 |
"aoColumnDefs": [ |
| 68 |
{ "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }, |
| 69 |
], |
| 70 |
"aaSorting": [[0, 'desc']], |
| 71 |
"bAutoWidth": false, |
| 72 |
"bPaginate": false, |
| 73 |
"bInfo": false, |
| 74 |
"bFilter": false, |
| 75 |
} )); |
| 50 |
}); |
76 |
}); |
| 51 |
|
|
|
| 52 |
|
77 |
|
| 53 |
//]]> |
78 |
//]]> |
| 54 |
</script> |
79 |
</script> |
|
Lines 198-206
$(document).ready(function() {
Link Here
|
| 198 |
[% IF ( subscriptions.size == 1 and !serialsadditems ) %] <input type="button" value="Multi receiving" onclick="javascript:generateReceive([% subscriptionidlist %])" />[% END %] |
223 |
[% IF ( subscriptions.size == 1 and !serialsadditems ) %] <input type="button" value="Multi receiving" onclick="javascript:generateReceive([% subscriptionidlist %])" />[% END %] |
| 199 |
</p> |
224 |
</p> |
| 200 |
[% END %] |
225 |
[% END %] |
| 201 |
|
226 |
<span class="checkall"> |
| 202 |
<table> |
227 |
<a class="CheckAll" href="#" onclick="CheckAll('subscription-year-[% year.year %]'); return false;">Select all</a> |
| 203 |
<tr> |
228 |
</span> | |
|
|
229 |
<span class="clearall"> |
| 230 |
<a class="CheckNone" href="#" onclick="CheckNone('subscription-year-[% year.year %]'); return false;">Clear all</a> |
| 231 |
</span> |
| 232 |
<table class="subscription-year-table"> |
| 233 |
<thead> |
| 234 |
<tr> |
| 235 |
[% IF ( CAN_user_serials_receive_serials ) %]<th>Edit</th>[% END %] |
| 204 |
[% IF ( subscriptions.size > 1 ) %] |
236 |
[% IF ( subscriptions.size > 1 ) %] |
| 205 |
<th># Subs</th> |
237 |
<th># Subs</th> |
| 206 |
[% END %] |
238 |
[% END %] |
|
Lines 217-226
$(document).ready(function() {
Link Here
|
| 217 |
<th>Library |
249 |
<th>Library |
| 218 |
</th> |
250 |
</th> |
| 219 |
[% IF ( routing ) %]<th>Routing</th>[% END %] |
251 |
[% IF ( routing ) %]<th>Routing</th>[% END %] |
| 220 |
[% IF ( CAN_user_serials_receive_serials ) %]<th>Edit</th>[% END %] |
|
|
| 221 |
</tr> |
252 |
</tr> |
|
|
253 |
</thead> |
| 254 |
<tbody> |
| 222 |
[% FOREACH serial IN year.serials %] |
255 |
[% FOREACH serial IN year.serials %] |
| 223 |
[% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %] |
256 |
[% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %] |
|
|
257 |
[% IF ( CAN_user_serials_receive_serials ) %] |
| 258 |
<td> |
| 259 |
[% IF ( serial.cannotedit ) %] |
| 260 |
disabled |
| 261 |
[% ELSE %] |
| 262 |
[% IF ( serial.subscriptionexpired ) %] |
| 263 |
<input type="checkbox" name="serialid" value="[% serial.serialid %]" disabled="disabled" /> |
| 264 |
[% ELSE %] |
| 265 |
[% IF ( serial.checked ) %] |
| 266 |
<input type="checkbox" class="checkboxed" name="serialid" checked="checked" value="[% serial.serialid %]" /> |
| 267 |
[% ELSE %] |
| 268 |
<input type="checkbox" class="checkboxed" name="serialid" value="[% serial.serialid %]" /> |
| 269 |
[% END %] |
| 270 |
[% END %] |
| 271 |
[% END %] |
| 272 |
</td> |
| 273 |
[% END %] |
| 224 |
[% IF ( subscriptions.size > 1 ) %] |
274 |
[% IF ( subscriptions.size > 1 ) %] |
| 225 |
<td><a href="serials-collection.pl?subscriptionid=[% serial.subscriptionid %]">[% serial.subscriptionid %]</a></td> |
275 |
<td><a href="serials-collection.pl?subscriptionid=[% serial.subscriptionid %]">[% serial.subscriptionid %]</a></td> |
| 226 |
[% END %] |
276 |
[% END %] |
|
Lines 247-272
$(document).ready(function() {
Link Here
|
| 247 |
<a href="" onclick="print_slip([% serial.subscriptionid |html %], '[% serial.serialseq |html %] ([% serial.planneddate %])'); return false" >Print list</a> |
297 |
<a href="" onclick="print_slip([% serial.subscriptionid |html %], '[% serial.serialseq |html %] ([% serial.planneddate %])'); return false" >Print list</a> |
| 248 |
</td> |
298 |
</td> |
| 249 |
[% END %] |
299 |
[% END %] |
| 250 |
[% IF ( CAN_user_serials_receive_serials ) %] |
|
|
| 251 |
<td> |
| 252 |
[% IF ( serial.cannotedit ) %] |
| 253 |
disabled |
| 254 |
[% ELSE %] |
| 255 |
[% IF ( serial.subscriptionexpired ) %] |
| 256 |
<input type="checkbox" name="serialid" value="[% serial.serialid %]" disabled="disabled" /> |
| 257 |
[% ELSE %] |
| 258 |
[% IF ( serial.checked ) %] |
| 259 |
<input type="checkbox" name="serialid" checked="checked" value="[% serial.serialid %]" /> |
| 260 |
[% ELSE %] |
| 261 |
<input type="checkbox" name="serialid" value="[% serial.serialid %]" /> |
| 262 |
[% END %] |
| 263 |
[% END %] |
| 264 |
[% END %] |
| 265 |
</td> |
| 266 |
[% END %] |
| 267 |
</tr> |
300 |
</tr> |
| 268 |
[% END %] |
301 |
[% END %] |
| 269 |
</table> |
302 |
</tbody> |
|
|
303 |
</table> |
| 270 |
</div> |
304 |
</div> |
| 271 |
[% END %] |
305 |
[% END %] |
| 272 |
<input type="hidden" name="subscriptionid" value="[% subscriptionidlist %]" /> |
306 |
<input type="hidden" name="subscriptionid" value="[% subscriptionidlist %]" /> |