Lines 2-28
Link Here
|
2 |
<title>Koha › Serials › Claims</title> |
2 |
<title>Koha › Serials › Claims</title> |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% INCLUDE 'calendar.inc' %] |
4 |
[% INCLUDE 'calendar.inc' %] |
5 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> |
5 |
<link rel="stylesheet" type="text/css" href="/intranet-tmpl/prog/en/css/datatables.css" /> |
6 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.uitablefilter.js"></script> |
6 |
<script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.dataTables.min.js"></script> |
7 |
<script type="text/JavaScript" language="JavaScript"> |
7 |
[% INCLUDE 'datatables-strings.inc' %] |
|
|
8 |
<script type="text/javascript" src="/intranet-tmpl/prog/en/js/datatables.js"></script> |
9 |
<script type="text/javascript"> |
8 |
//<![CDATA[ |
10 |
//<![CDATA[ |
|
|
11 |
[% IF (dateformat == 'metric') %]dt_add_type_uk_date();[% END %] |
9 |
$(document).ready(function() { |
12 |
$(document).ready(function() { |
10 |
[% UNLESS ( preview ) %]$("#claimst").tablesorter({[% IF ( dateformat == 'metric' ) %] |
13 |
[% UNLESS ( preview ) %] |
11 |
dateFormat: 'uk',[% END %] |
14 |
var sTable = $("#claimst").dataTable($.extend(true, {}, dataTablesDefaults, { |
12 |
headers: { 0: { sorter: false },1:{sorter:false}} |
15 |
"sDom": 't', |
13 |
});[% END %] |
16 |
"aoColumnDefs": [ |
|
|
17 |
{ "aTargets": [ 0,1,-1 ], "bSortable": false, "bSearchable": false } |
18 |
], |
19 |
"bPaginate": false |
20 |
})); |
21 |
[% END %] |
14 |
$('#supplierid').change(function() { |
22 |
$('#supplierid').change(function() { |
15 |
$('#claims').submit(); |
23 |
$('#claims').submit(); |
16 |
}); |
24 |
}); |
17 |
|
25 |
|
18 |
// Case-insensitive version of jquery's contains function |
|
|
19 |
jQuery.extend( |
20 |
jQuery.expr[':'], { |
21 |
icontains : "jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase())>=0" |
22 |
} |
23 |
); |
24 |
|
25 |
|
26 |
// Checkboxes : Select All / None |
26 |
// Checkboxes : Select All / None |
27 |
$("span.checkall").html("<input type=\"checkbox\" name=\"CheckAll\"> "+_("Check All")+"</input>"); |
27 |
$("span.checkall").html("<input type=\"checkbox\" name=\"CheckAll\"> "+_("Check All")+"</input>"); |
28 |
$("span.exportSelected").html("<a id=\"ExportSelected\" href=\"/cgi-bin/koha/serials/claims.pl\"> "+_("Export selected items data") +"<\/a>"); |
28 |
$("span.exportSelected").html("<a id=\"ExportSelected\" href=\"/cgi-bin/koha/serials/claims.pl\"> "+_("Export selected items data") +"<\/a>"); |
Lines 52-63
Link Here
|
52 |
return false; |
52 |
return false; |
53 |
}); |
53 |
}); |
54 |
|
54 |
|
55 |
$("#titlefilter").keyup(function() { |
55 |
$("#titlefilter").keyup( function () { |
56 |
$.uiTableFilter($("#claimst"), $("#titlefilter").val()) |
56 |
sTable.fnFilter( this.value, 3 ); // 3 is position of title column |
57 |
}); |
57 |
} ); |
58 |
|
58 |
|
59 |
$("#branchfilter").keyup(function() { |
59 |
$("#branchfilter").keyup(function() { |
60 |
$.uiTableFilter($("#claimst"), $("#branchfilter").val()) |
60 |
sTable.fnFilter( this.value, 2 ); // 2 is the position of the author column |
61 |
}); |
61 |
}); |
62 |
}); |
62 |
}); |
63 |
|
63 |
|
Lines 214-220
Link Here
|
214 |
|
214 |
|
215 |
<li> |
215 |
<li> |
216 |
<label for="titlefilter">Title : </label> |
216 |
<label for="titlefilter">Title : </label> |
217 |
<input id="titlefilter" type="text" /> |
217 |
<input id="titlefilter" type="text" /> |
|
|
218 |
</li> |
219 |
<li> |
218 |
<label for="branchfilter">Library: </label> |
220 |
<label for="branchfilter">Library: </label> |
219 |
<select id="branchfilter" onchange="filterByBranch();"> |
221 |
<select id="branchfilter" onchange="filterByBranch();"> |
220 |
[% FOREACH branchloo IN branchloop %] |
222 |
[% FOREACH branchloo IN branchloop %] |
Lines 228-236
Link Here
|
228 |
</li> |
230 |
</li> |
229 |
|
231 |
|
230 |
<li> |
232 |
<li> |
231 |
<label for="from">From</label> |
233 |
<label for="from">From:</label> |
232 |
<input type="text" name="begindate" id="from" value="[% begindate %]" size="10" maxlength="10" class="datepickerfrom" /> |
234 |
<input type="text" name="begindate" id="from" value="[% begindate %]" size="10" maxlength="10" class="datepickerfrom" /> |
233 |
<label for="to" style="float:none;">To</label> |
235 |
<label for="to" style="float:none;">To:</label> |
234 |
<input type="text" name="enddate" id="to" value="[% enddate %]" size="10" maxlength="10" class="datepickerto" /> |
236 |
<input type="text" name="enddate" id="to" value="[% enddate %]" size="10" maxlength="10" class="datepickerto" /> |
235 |
<span class="hint">[% INCLUDE 'date-format.inc' %]</span> |
237 |
<span class="hint">[% INCLUDE 'date-format.inc' %]</span> |
236 |
<input type="button" value="OK" onclick="filterByDate();" /> |
238 |
<input type="button" value="OK" onclick="filterByDate();" /> |
237 |
- |
|
|