Lines 12-50
Link Here
|
12 |
[% INCLUDE 'cat-search.inc' %] |
12 |
[% INCLUDE 'cat-search.inc' %] |
13 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
13 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
14 |
[% INCLUDE 'datatables.inc' %] |
14 |
[% INCLUDE 'datatables.inc' %] |
|
|
15 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
15 |
<script type="text/javascript">//<![CDATA[ |
16 |
<script type="text/javascript">//<![CDATA[ |
16 |
$(document).ready(function() { |
17 |
$(document).ready(function() { |
17 |
$("#holdst").dataTable({ |
18 |
$("#holdst").dataTable({ |
18 |
"aaSorting": [[ 3, "asc" ]], |
19 |
"aaSorting": [[ 3, "asc" ]], |
19 |
"aoColumns": [ |
20 |
"aoColumns": [ |
|
|
21 |
[%- IF (printenable) -%] |
22 |
{ "bSortable": false },{ "sType": "anti-the" },null,null,null,null,null,null,null,null,{ "sType": "title-string" },null |
23 |
[%- ELSE -%] |
20 |
{ "sType": "anti-the" },null,null,null,null,null,null,null,null,{ "sType": "title-string" },null |
24 |
{ "sType": "anti-the" },null,null,null,null,null,null,null,null,{ "sType": "title-string" },null |
|
|
25 |
[%- END -%] |
21 |
], |
26 |
], |
22 |
"sDom": 't', |
27 |
"sDom": 't', |
23 |
"bPaginate": false |
28 |
"bPaginate": false |
24 |
}); |
29 |
}); |
|
|
30 |
[% IF ( printenable ) %] |
31 |
$("#CheckAll").click(function(){ |
32 |
$(".checkboxed").checkCheckboxes(); |
33 |
return false; |
34 |
}); |
35 |
$("#CheckNone").click(function(){ |
36 |
$(".checkboxed").unCheckCheckboxes(); |
37 |
return false; |
38 |
}); |
25 |
}); |
39 |
}); |
26 |
|
|
|
27 |
function printReservations() { |
40 |
function printReservations() { |
28 |
document.hold_print.submit(); |
41 |
if ( $('input[name="reserve_id"]:checked').length > 0 ){ |
29 |
} |
42 |
document.hold_print.submit(); |
30 |
function selectAll () { |
43 |
} else { |
31 |
if(document.hold_print.reserve_id.length == undefined ){ |
44 |
alert(_("Select holds to print.")); |
32 |
document.hold_print.reserve_id.checked=true; |
|
|
33 |
}else if(document.hold_print.reserve_id.length > 0) { |
34 |
for (var i=0; i < document.hold_print.reserve_id.length; i++) { |
35 |
document.hold_print.reserve_id[i].checked=true; |
36 |
} |
37 |
} |
38 |
} |
39 |
function clearAll () { |
40 |
if(document.hold_print.reserve_id.length == undefined ){ |
41 |
document.hold_print.reserve_id.checked=false; |
42 |
}else if(document.hold_print.reserve_id.length > 0) { |
43 |
for (var i=0; i < document.hold_print.reserve_id.length; i++) { |
44 |
document.hold_print.reserve_id[i].checked=false; |
45 |
} |
46 |
} |
45 |
} |
47 |
} |
46 |
} |
|
|
47 |
[% ELSE %] |
48 |
}); |
49 |
[% END%] |
48 |
//]]> |
50 |
//]]> |
49 |
</script> |
51 |
</script> |
50 |
|
52 |
|
Lines 73-80
function clearAll () {
Link Here
|
73 |
[% IF ( printenable ) %] |
75 |
[% IF ( printenable ) %] |
74 |
<p> |
76 |
<p> |
75 |
<input id="printhold" type="submit" class="submit" onclick="printReservations()" value="Print checked holds"/> |
77 |
<input id="printhold" type="submit" class="submit" onclick="printReservations()" value="Print checked holds"/> |
76 |
<a href="#" onclick="selectAll(); return false;">Select all</a> | |
78 |
<a id="CheckAll" href="#" >Select all</a> | |
77 |
<a href="#" onclick="clearAll(); return false;">Clear all</a> |
79 |
<a id="CheckNone" href="#" >Clear all</a> |
78 |
<br/> |
80 |
<br/> |
79 |
</p> |
81 |
</p> |
80 |
<form id="showprinted" name="showprinted" method="get" action="/cgi-bin/koha/circ/view_holdsqueue.pl"> |
82 |
<form id="showprinted" name="showprinted" method="get" action="/cgi-bin/koha/circ/view_holdsqueue.pl"> |
Lines 90-100
function clearAll () {
Link Here
|
90 |
</form> |
92 |
</form> |
91 |
[% END %] |
93 |
[% END %] |
92 |
[% IF ( itemsloop ) %] |
94 |
[% IF ( itemsloop ) %] |
93 |
<form id="hold_print" name="hold_print" method="get" action="/cgi-bin/koha/circ/hold-pull-print.pl" target="_blank"> |
95 |
[% IF ( printenable ) %] |
|
|
96 |
<form id="hold_print" name="hold_print" class="checkboxed" method="get" action="/cgi-bin/koha/circ/hold-pull-print.pl" target="_blank"> |
97 |
[% END %] |
94 |
<table id="holdst"> |
98 |
<table id="holdst"> |
95 |
<thead> |
99 |
<thead> |
96 |
<tr> |
100 |
<tr> |
97 |
[% IF (printenable) %]<th class="hq-check">Check</th>[% END %] |
101 |
[% IF (printenable) %]<th class="hq-check"> </th>[% END %] |
98 |
<th class="hq-title">Title</th> |
102 |
<th class="hq-title">Title</th> |
99 |
<th class="hq-collection">Collection</th> |
103 |
<th class="hq-collection">Collection</th> |
100 |
<th class="hq-itemtype">Item type</th> |
104 |
<th class="hq-itemtype">Item type</th> |
Lines 111-117
function clearAll () {
Link Here
|
111 |
<tbody>[% FOREACH itemsloo IN itemsloop %] |
115 |
<tbody>[% FOREACH itemsloo IN itemsloop %] |
112 |
<tr> |
116 |
<tr> |
113 |
[% IF ( printenable ) %] |
117 |
[% IF ( printenable ) %] |
114 |
<td class="hq-print"><input type="checkbox" id="res[% itemsloo.reserve_id %]" name="reserve_id" value="[% itemsloo.reserve_id %]"/></td> |
118 |
<td class="hq-print"><input type="checkbox" id="res[% itemsloo.reserve_id %]" name="reserve_id" value="[% itemsloo.reserve_id %]"/></td> |
115 |
[% END %] |
119 |
[% END %] |
116 |
<td class="hq-title"><p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itemsloo.biblionumber %]"><strong>[% itemsloo.title |html %]</strong> [% IF ( itemsloo.subtitle ) %][% itemsloo.subtitle %][% END %]</a></p> |
120 |
<td class="hq-title"><p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itemsloo.biblionumber %]"><strong>[% itemsloo.title |html %]</strong> [% IF ( itemsloo.subtitle ) %][% itemsloo.subtitle %][% END %]</a></p> |
117 |
<p><strong>[% itemsloo.author %]</strong> |
121 |
<p><strong>[% itemsloo.author %]</strong> |