Bug 8971 - Sort holds queue report using DataTables
Replacing the old tablesorter plugin with DataTables on this page will fix sorting bugs related to whitespace and markup in table cells which tablesorter couldn't handle. I have also taken the liberty of changing the default sort from patron to call number, assuming that the librarian uses this list to pull items from the shelf, and the shelf is organized by call number. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
8ae00e638b
commit
29d1aa1be0
|
|
@ -6,13 +6,21 @@
|
|||
<body id="circ_view_holdsqueue" class="circ">
|
||||
[% INCLUDE 'header.inc' %]
|
||||
[% INCLUDE 'cat-search.inc' %]
|
||||
|
||||
<script type="text/javascript" src="[% ( themelang ) %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/intranet-tmpl/prog/en/css/datatables.css" />
|
||||
<script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.dataTables.min.js"></script>
|
||||
[% INCLUDE 'datatables-strings.inc' %]
|
||||
<script type="text/javascript" src="/intranet-tmpl/prog/en/js/datatables.js"></script>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
$(document).ready(function() {
|
||||
$("#holdst").tablesorter({
|
||||
sortList: [[6,0]],
|
||||
});
|
||||
$("#holdst").dataTable({
|
||||
"aaSorting": [[ 2, "asc" ]],
|
||||
"bPaginate": false,
|
||||
"bLengthChange": false,
|
||||
"bFilter": false,
|
||||
"bSort": true,
|
||||
"bInfo": false,
|
||||
"bAutoWidth": false
|
||||
});
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue