bug_7647: Table sorter on issue history
authorSrdjan <srdjan@catalyst.net.nz>
Thu, 29 Mar 2012 00:38:16 +0000 (13:38 +1300)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 14 May 2012 13:39:44 +0000 (15:39 +0200)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt

index bb963a3..dd384d6 100644 (file)
@@ -1,6 +1,18 @@
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Catalog &rsaquo; Checkout history for [% title |html %]</title>
 [% INCLUDE 'doc-head-close.inc' %]
+<link rel="stylesheet" href="[% themelang %]/css/datatables.css" />
+<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
+<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
+[% INCLUDE 'datatables-strings.inc' %]
+<script type="text/javascript" id="js">
+$(document).ready(function() {
+    $("#table_issues").dataTable($.extend(true, {}, dataTablesDefaults, {
+//      maybe some defaults?
+        })
+    );
+}); </script>
+
 </head>
 <body id="catalog_issuehistory" class="catalog">
 
@@ -21,7 +33,7 @@
 <div class="searchresults">
     [% IF ( issues ) %]
         <h4>Checked out [% total %] times</h4>
-        <table>
+        <table id="table_issues">
             <thead><tr>
             <th>Patron</th>
             <th>Barcode</th>