Bugzilla – Attachment 13549 Details for
Bug 8971
Sort holds queue report using DataTables
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8971 - Sort holds queue report using DataTables
Bug-8971---Sort-holds-queue-report-using-DataTable.patch (text/plain), 2.12 KB, created by
Paul Poulain
on 2012-11-20 11:20:14 UTC
(
hide
)
Description:
Bug 8971 - Sort holds queue report using DataTables
Filename:
MIME Type:
Creator:
Paul Poulain
Created:
2012-11-20 11:20:14 UTC
Size:
2.12 KB
patch
obsolete
>From cf1daa067bdf4c5ad373e56a31c9557bff980faf Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 25 Oct 2012 12:38:46 -0400 >Subject: [PATCH] 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> >--- > .../prog/en/modules/circ/view_holdsqueue.tt | 18 +++++++++++++----- > 1 file changed, 13 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt >index d8d8536..aefd8d9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt >@@ -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> >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8971
:
13056
|
13232
| 13549