Lines 10-15
Link Here
|
10 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script> |
10 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script> |
11 |
[% INCLUDE 'columns_settings.inc' %] |
11 |
[% INCLUDE 'columns_settings.inc' %] |
12 |
<script type="text/javascript" src="[% interface %]/[% theme %]/js/table_filters.js"></script> |
12 |
<script type="text/javascript" src="[% interface %]/[% theme %]/js/table_filters.js"></script> |
|
|
13 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
13 |
<script type='text/javascript'> |
14 |
<script type='text/javascript'> |
14 |
//<![CDATA[ |
15 |
//<![CDATA[ |
15 |
$(document).ready(function() { |
16 |
$(document).ready(function() { |
Lines 18-29
Link Here
|
18 |
"dom": 'B<"clearfix">t', |
19 |
"dom": 'B<"clearfix">t', |
19 |
"aaSorting": [], |
20 |
"aaSorting": [], |
20 |
"aoColumnDefs": [ |
21 |
"aoColumnDefs": [ |
21 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
22 |
{ "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }, |
22 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
23 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
23 |
], |
24 |
], |
24 |
'bAutoWidth': false, |
25 |
'bAutoWidth': false, |
25 |
"bPaginate": false, |
26 |
"bPaginate": false, |
26 |
}, columns_settings, 'with_filters'); |
27 |
}, columns_settings, 'with_filters'); |
|
|
28 |
|
29 |
$(document).ready(function() { |
30 |
function itemSelectionBuildExportLink() { |
31 |
var itemnumbers = new Array(); |
32 |
$("input[name='itemnumber'][type='checkbox']:checked").each(function() { |
33 |
itemnumbers.push($(this).val()); |
34 |
}); |
35 |
if (itemnumbers.length > 0) { |
36 |
var url = '/cgi-bin/koha/tools/batchMod.pl?op=show'; |
37 |
url += '&itemnumber=' + itemnumbers.join('&itemnumber='); |
38 |
$('a.itemselection_action_export').attr('href', url); |
39 |
} else { |
40 |
return false; |
41 |
} |
42 |
return true; |
43 |
} |
44 |
|
45 |
function itemSelectionBuildActionLinks() { |
46 |
var export_link_ok = itemSelectionBuildExportLink(); |
47 |
if (export_link_ok) { |
48 |
$('.itemselection_actions').show(); |
49 |
} else { |
50 |
$('.itemselection_actions').hide(); |
51 |
} |
52 |
} |
53 |
|
54 |
itemSelectionBuildActionLinks(); |
55 |
|
56 |
$("input[name='itemnumber'][type='checkbox']").change(function() { |
57 |
itemSelectionBuildActionLinks(); |
58 |
}); |
59 |
|
60 |
$(".SelectAll").on("click",function(e){ |
61 |
e.preventDefault(); |
62 |
$("#lostitems-table").checkCheckboxes(); |
63 |
itemSelectionBuildActionLinks(); |
64 |
}); |
65 |
|
66 |
$(".ClearAll").on("click",function(e){ |
67 |
e.preventDefault(); |
68 |
$("#lostitems-table").unCheckCheckboxes(); |
69 |
itemSelectionBuildActionLinks(); |
70 |
}); |
71 |
}); |
27 |
}); |
72 |
}); |
28 |
//]]> |
73 |
//]]> |
29 |
</script> |
74 |
</script> |
Lines 54-62
Link Here
|
54 |
</div> |
99 |
</div> |
55 |
|
100 |
|
56 |
[% IF items.count %] |
101 |
[% IF items.count %] |
|
|
102 |
<div class="lostitems-table_table_controls"> |
103 |
| <a href="#" class="SelectAll"><i class="fa fa-check"></i> Select all</a> | |
104 |
<a href="#" class="ClearAll"><i class="fa fa-remove"></i> Clear all</a> |
105 |
<span class="itemselection_actions"> |
106 |
| Actions: |
107 |
<a class="itemselection_action_export"><i class="fa fa-trash"></i> Export selected items</a> |
108 |
</span> |
109 |
</div> |
110 |
|
57 |
<table id="lostitems-table"> |
111 |
<table id="lostitems-table"> |
58 |
<thead> |
112 |
<thead> |
59 |
<tr> |
113 |
<tr> |
|
|
114 |
<th class="NoSort"></th> |
60 |
<th>Title</th> |
115 |
<th>Title</th> |
61 |
<th>Author</th> |
116 |
<th>Author</th> |
62 |
<th>Lost status</th> |
117 |
<th>Lost status</th> |
Lines 77-82
Link Here
|
77 |
<tbody> |
132 |
<tbody> |
78 |
[% FOREACH item IN items %] |
133 |
[% FOREACH item IN items %] |
79 |
<tr> |
134 |
<tr> |
|
|
135 |
<td style="text-align:center;vertical-align:middle"> |
136 |
<input type="checkbox" value="[% item.itemnumber %]" name="itemnumber" /> |
137 |
</td> |
80 |
<td> |
138 |
<td> |
81 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber %]" title="[% item.itemnotes %]">[% item.biblio.title |html %]</a> |
139 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber %]" title="[% item.itemnotes %]">[% item.biblio.title |html %]</a> |
82 |
</td> |
140 |
</td> |
83 |
- |
|
|