|
Lines 11-49
Link Here
|
| 11 |
[% INCLUDE 'cat-search.inc' %] |
11 |
[% INCLUDE 'cat-search.inc' %] |
| 12 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
12 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
| 13 |
[% INCLUDE 'datatables.inc' %] |
13 |
[% INCLUDE 'datatables.inc' %] |
|
|
14 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
| 14 |
<script type="text/javascript">//<![CDATA[ |
15 |
<script type="text/javascript">//<![CDATA[ |
| 15 |
$(document).ready(function() { |
16 |
$(document).ready(function() { |
| 16 |
$("#holdst").dataTable({ |
17 |
$("#holdst").dataTable({ |
| 17 |
"aaSorting": [[ 3, "asc" ]], |
18 |
"aaSorting": [[ 3, "asc" ]], |
| 18 |
"aoColumns": [ |
19 |
"aoColumns": [ |
|
|
20 |
[%- IF (printenable) -%] |
| 21 |
null,{ "sType": "anti-the" },null,null,null,null,null,null,null,null,{ "sType": "title-string" },null |
| 22 |
[%- ELSE -%] |
| 19 |
{ "sType": "anti-the" },null,null,null,null,null,null,null,null,{ "sType": "title-string" },null |
23 |
{ "sType": "anti-the" },null,null,null,null,null,null,null,null,{ "sType": "title-string" },null |
|
|
24 |
[%- END -%] |
| 20 |
], |
25 |
], |
| 21 |
"sDom": 't', |
26 |
"sDom": 't', |
| 22 |
"bPaginate": false |
27 |
"bPaginate": false |
| 23 |
}); |
28 |
}); |
|
|
29 |
[% IF ( printenable ) %] |
| 30 |
$("#CheckAll").click(function(){ |
| 31 |
$(".checkboxed").checkCheckboxes(); |
| 32 |
return false; |
| 33 |
}); |
| 34 |
$("#CheckNone").click(function(){ |
| 35 |
$(".checkboxed").unCheckCheckboxes(); |
| 36 |
return false; |
| 37 |
}); |
| 24 |
}); |
38 |
}); |
| 25 |
|
|
|
| 26 |
function printReservations() { |
39 |
function printReservations() { |
| 27 |
document.hold_print.submit(); |
40 |
document.hold_print.submit(); |
| 28 |
} |
41 |
} |
| 29 |
function selectAll () { |
42 |
[% ELSE %] |
| 30 |
if(document.hold_print.reserve_id.length == undefined ){ |
43 |
}); |
| 31 |
document.hold_print.reserve_id.checked=true; |
44 |
[% END%] |
| 32 |
}else if(document.hold_print.reserve_id.length > 0) { |
|
|
| 33 |
for (var i=0; i < document.hold_print.reserve_id.length; i++) { |
| 34 |
document.hold_print.reserve_id[i].checked=true; |
| 35 |
} |
| 36 |
} |
| 37 |
} |
| 38 |
function clearAll () { |
| 39 |
if(document.hold_print.reserve_id.length == undefined ){ |
| 40 |
document.hold_print.reserve_id.checked=false; |
| 41 |
}else if(document.hold_print.reserve_id.length > 0) { |
| 42 |
for (var i=0; i < document.hold_print.reserve_id.length; i++) { |
| 43 |
document.hold_print.reserve_id[i].checked=false; |
| 44 |
} |
| 45 |
} |
| 46 |
} |
| 47 |
//]]> |
45 |
//]]> |
| 48 |
</script> |
46 |
</script> |
| 49 |
|
47 |
|
|
Lines 72-79
function clearAll () {
Link Here
|
| 72 |
[% IF ( printenable ) %] |
70 |
[% IF ( printenable ) %] |
| 73 |
<p> |
71 |
<p> |
| 74 |
<input id="printhold" type="submit" class="submit" onclick="printReservations()" value="Print checked holds"/> |
72 |
<input id="printhold" type="submit" class="submit" onclick="printReservations()" value="Print checked holds"/> |
| 75 |
<a href="#" onclick="selectAll(); return false;">Select all</a> | |
73 |
<a id="CheckAll" href="#" >Select all</a> | |
| 76 |
<a href="#" onclick="clearAll(); return false;">Clear all</a> |
74 |
<a id="CheckNone" href="#" >Clear all</a> |
| 77 |
<br/> |
75 |
<br/> |
| 78 |
</p> |
76 |
</p> |
| 79 |
<form id="showprinted" name="showprinted" method="get" action="/cgi-bin/koha/circ/view_holdsqueue.pl"> |
77 |
<form id="showprinted" name="showprinted" method="get" action="/cgi-bin/koha/circ/view_holdsqueue.pl"> |
|
Lines 89-95
function clearAll () {
Link Here
|
| 89 |
</form> |
87 |
</form> |
| 90 |
[% END %] |
88 |
[% END %] |
| 91 |
[% IF ( itemsloop ) %] |
89 |
[% IF ( itemsloop ) %] |
| 92 |
<form id="hold_print" name="hold_print" method="get" action="/cgi-bin/koha/circ/hold-pull-print.pl" target="_blank"> |
90 |
[% IF ( printenable ) %] |
|
|
91 |
<form id="hold_print" name="hold_print" class="checkboxed" method="get" action="/cgi-bin/koha/circ/hold-pull-print.pl" target="_blank"> |
| 92 |
[% END %] |
| 93 |
<table id="holdst"> |
93 |
<table id="holdst"> |
| 94 |
<thead> |
94 |
<thead> |
| 95 |
<tr> |
95 |
<tr> |
|
Lines 110-116
function clearAll () {
Link Here
|
| 110 |
<tbody>[% FOREACH itemsloo IN itemsloop %] |
110 |
<tbody>[% FOREACH itemsloo IN itemsloop %] |
| 111 |
<tr> |
111 |
<tr> |
| 112 |
[% IF ( printenable ) %] |
112 |
[% IF ( printenable ) %] |
| 113 |
<td class="hq-print"><input type="checkbox" id="res[% itemsloo.reserve_id %]" name="reserve_id" value="[% itemsloo.reserve_id %]"/></td> |
113 |
<td class="hq-print"><input type="checkbox" id="res[% itemsloo.reserve_id %]" name="reserve_id" value="[% itemsloo.reserve_id %]"/></td> |
| 114 |
[% END %] |
114 |
[% END %] |
| 115 |
<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> |
115 |
<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> |
| 116 |
<p><strong>[% itemsloo.author %]</strong> |
116 |
<p><strong>[% itemsloo.author %]</strong> |