|
Lines 1-83
Link Here
|
| 1 |
[% USE AuthorisedValues %] |
1 |
[% USE AuthorisedValues %] |
| 2 |
[% USE Branches %] |
2 |
[% USE Branches %] |
| 3 |
[% USE KohaDates %] |
3 |
[% USE KohaDates %] |
|
|
4 |
[% SET footerjs = 1 %] |
| 4 |
[% INCLUDE 'doc-head-open.inc' %] |
5 |
[% INCLUDE 'doc-head-open.inc' %] |
| 5 |
<title>Koha › Serials › Serial collection information for [% bibliotitle %]</title> |
6 |
<title>Koha › Serials › Serial collection information for [% bibliotitle %]</title> |
| 6 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
[% INCLUDE 'doc-head-close.inc' %] |
| 7 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
8 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
| 8 |
[% INCLUDE 'datatables.inc' %] |
|
|
| 9 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
| 10 |
|
| 11 |
<script type="text/javascript"> |
| 12 |
//<![CDATA[ |
| 13 |
function generateReceive(subscriptionid) { |
| 14 |
if(nbissues=prompt(_("How many issues do you want to receive ?"))){ |
| 15 |
document.location = 'serials-collection.pl?op=gennext&subscriptionid='+subscriptionid+'&nbissues='+nbissues; |
| 16 |
} |
| 17 |
} |
| 18 |
function print_slip(subscriptionid,issue){ |
| 19 |
var myurl = 'routing-preview.pl?ok=1&subscriptionid='+subscriptionid+'&issue='+issue; |
| 20 |
window.open(myurl,'PrintSlip','width=500,height=500,toolbar=no,scrollbars=yes'); |
| 21 |
} |
| 22 |
function addsubscriptionid() |
| 23 |
{ |
| 24 |
var tab=new Array(); |
| 25 |
var serialids = document.edition.serialid; |
| 26 |
for (i=0; i<serialids.length; i++){ |
| 27 |
if (serialids[i].checked == true){ |
| 28 |
var found=false; |
| 29 |
for (var val in tab){ |
| 30 |
if (tab[val] == document.getElementsByName("subs")[i].getAttribute('val')){found = true;} |
| 31 |
} |
| 32 |
if (found == false){ |
| 33 |
tab=tab.concat((document.getElementsByName("subs")[i].getAttribute('val'))); |
| 34 |
} |
| 35 |
} |
| 36 |
} |
| 37 |
var string=""; |
| 38 |
for (var val in tab){ |
| 39 |
string = string + tab[val] + ","; |
| 40 |
} |
| 41 |
string=string.substring(0,string.length -1); |
| 42 |
document.edition.subscriptionid.value=string; |
| 43 |
} |
| 44 |
function popup(subscriptionid) { |
| 45 |
newin=window.open('subscription-renew.pl?mode=popup&subscriptionid='+subscriptionid,'popup','width=500,height=400,toolbar=false,scrollbars=yes'); |
| 46 |
} |
| 47 |
|
| 48 |
function generateNext(subscriptionid) { |
| 49 |
if(confirm(_("Do you really want to generate next serial?"))){ |
| 50 |
document.location = 'serials-collection.pl?op=gennext&subscriptionid='+subscriptionid; |
| 51 |
} |
| 52 |
} |
| 53 |
|
| 54 |
function CheckAll( node ) { |
| 55 |
$("#"+node).checkCheckboxes(); |
| 56 |
return false; |
| 57 |
} |
| 58 |
function CheckNone( node ) { |
| 59 |
$("#"+node).unCheckCheckboxes(); |
| 60 |
return false; |
| 61 |
} |
| 62 |
$(document).ready(function() { |
| 63 |
$('#subscription_years').tabs(); |
| 64 |
$(".subscription-year-table").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 65 |
"aoColumnDefs": [ |
| 66 |
{ "aTargets": [ 0,-1 ], "bSortable": false, "bSearchable": false }, |
| 67 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
| 68 |
], |
| 69 |
"aaSorting": [[0, 'desc']], |
| 70 |
"sDom": 't', |
| 71 |
"bAutoWidth": false, |
| 72 |
"bPaginate": false, |
| 73 |
"bInfo": false, |
| 74 |
"bFilter": false, |
| 75 |
} )); |
| 76 |
}); |
| 77 |
|
| 78 |
//]]> |
| 79 |
</script> |
| 80 |
</head> |
9 |
</head> |
|
|
10 |
|
| 81 |
<body id="ser_serials-collection" class="ser"> |
11 |
<body id="ser_serials-collection" class="ser"> |
| 82 |
[% INCLUDE 'header.inc' %] |
12 |
[% INCLUDE 'header.inc' %] |
| 83 |
[% INCLUDE 'serials-search.inc' %] |
13 |
[% INCLUDE 'serials-search.inc' %] |
|
Lines 331-334
$(document).ready(function() {
Link Here
|
| 331 |
[% INCLUDE 'serials-menu.inc' %] |
261 |
[% INCLUDE 'serials-menu.inc' %] |
| 332 |
</div> |
262 |
</div> |
| 333 |
</div> |
263 |
</div> |
|
|
264 |
|
| 265 |
[% MACRO jsinclude BLOCK %] |
| 266 |
[% INCLUDE 'datatables.inc' %] |
| 267 |
<script type="text/javascript"> |
| 268 |
var subscriptionid = "[% subscriptionid %]"; |
| 269 |
var MSG_CLOSE_SUBSCRIPTION = _("Are you sure you want to close this subscription?"); |
| 270 |
var MSG_REOPEN_SUBSCRIPTION = _("Are you sure you want to reopen this subscription?"); |
| 271 |
var CONFIRM_DELETE_SUBSCRIPTION = _("Are you sure you want to delete this subscription?"); |
| 272 |
</script> |
| 273 |
<script type="text/javascript" src="[% interface %]/[% theme %]/js/serials-toolbar.js"></script> |
| 274 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
| 275 |
<script type="text/javascript"> |
| 276 |
function generateReceive(subscriptionid) { |
| 277 |
if(nbissues=prompt(_("How many issues do you want to receive ?"))){ |
| 278 |
document.location = 'serials-collection.pl?op=gennext&subscriptionid='+subscriptionid+'&nbissues='+nbissues; |
| 279 |
} |
| 280 |
} |
| 281 |
function print_slip(subscriptionid,issue){ |
| 282 |
var myurl = 'routing-preview.pl?ok=1&subscriptionid='+subscriptionid+'&issue='+issue; |
| 283 |
window.open(myurl,'PrintSlip','width=500,height=500,toolbar=no,scrollbars=yes'); |
| 284 |
} |
| 285 |
|
| 286 |
function popup(subscriptionid) { |
| 287 |
newin=window.open('subscription-renew.pl?mode=popup&subscriptionid='+subscriptionid,'popup','width=500,height=400,toolbar=false,scrollbars=yes'); |
| 288 |
} |
| 289 |
|
| 290 |
function generateNext(subscriptionid) { |
| 291 |
if(confirm(_("Do you really want to generate next serial?"))){ |
| 292 |
document.location = 'serials-collection.pl?op=gennext&subscriptionid='+subscriptionid; |
| 293 |
} |
| 294 |
} |
| 295 |
|
| 296 |
function CheckAll( node ) { |
| 297 |
$("#"+node).checkCheckboxes(); |
| 298 |
return false; |
| 299 |
} |
| 300 |
function CheckNone( node ) { |
| 301 |
$("#"+node).unCheckCheckboxes(); |
| 302 |
return false; |
| 303 |
} |
| 304 |
$(document).ready(function() { |
| 305 |
$('#subscription_years').tabs(); |
| 306 |
$(".subscription-year-table").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 307 |
"aoColumnDefs": [ |
| 308 |
{ "aTargets": [ 0,-1 ], "bSortable": false, "bSearchable": false }, |
| 309 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
| 310 |
], |
| 311 |
"aaSorting": [[0, 'desc']], |
| 312 |
"sDom": 't', |
| 313 |
"bAutoWidth": false, |
| 314 |
"bPaginate": false, |
| 315 |
"bInfo": false, |
| 316 |
"bFilter": false, |
| 317 |
} )); |
| 318 |
}); |
| 319 |
|
| 320 |
</script> |
| 321 |
[% END %] |
| 322 |
|
| 334 |
[% INCLUDE 'intranet-bottom.inc' %] |
323 |
[% INCLUDE 'intranet-bottom.inc' %] |