Add JQuery tablesorters on serials-edit and booksellers
authorMatthias Meusburger <matthias.meusburger@biblibre.com>
Fri, 13 Nov 2009 16:11:49 +0000 (17:11 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Thu, 19 Nov 2009 22:09:46 +0000 (23:09 +0100)
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tmpl

index 860b754..48d138f 100644 (file)
@@ -6,6 +6,21 @@
        vertical-align: top;
 }
 </style>
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
+<script type="text/javascript">
+//<![CDATA[
+ $(document).ready(function() {
+        $("#vendorst").tablesorter({
+           headers: { 
+               3: { 
+                   sorter: false 
+               }
+           } 
+       }); 
+ }); 
+ //]]>
+</script>
+
 </head>
 <body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- /TMPL_IF -->
 <!-- TMPL_IF name="loop_suppliers" -->
     <div id="acqui_order_supplierlist">
-        <table>
+        <table id="vendorst">
+       <thead>
         <tr>
             <th>Order</th>
             <th>Order receive</th>
             <th>Vendor</th>
             <th>&nbsp;</th>
         </tr>
-        
+       </thead>
+       <tbody> 
         <!-- TMPL_LOOP name="loop_suppliers" -->
         <!-- TMPL_UNLESS name="__odd__" -->
             <tr class="highlight">
                 </td>
                 </tr>
             <!-- /TMPL_LOOP -->
+           </tbody>
             </table>
         </div>
     <!-- /TMPL_IF -->
index 1296d05..63f78f7 100644 (file)
@@ -1,6 +1,14 @@
 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
 <title>Koha &rsaquo; Serials <!-- TMPL_VAR name="biblionumber" --></title>
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
+<script type="text/javascript">
+//<![CDATA[
+ $(document).ready(function() {
+        $("#srlt").tablesorter(); 
+ }); 
+ //]]>
+</script>
 </head>
 <body> 
 <!-- TMPL_INCLUDE NAME="header.inc" -->
@@ -63,7 +71,8 @@ Serials updated :
         <h3>Search for Serial Routing List</h3>
 <!-- /TMPL_IF -->
 
-    <table>
+    <table id="srlt">
+       <thead>
         <tr>
             <th>ISSN</th>
             <th>Title</th>
@@ -76,7 +85,8 @@ Serials updated :
             <!-- /TMPL_IF -->        
             <th colspan="2">&nbsp;</th>
         </tr>
-        
+       </thead>
+       <tbody> 
         <!-- TMPL_LOOP name="subscriptions" -->
         <!-- TMPL_UNLESS name="__odd__" -->
             <tr class="highlight">
@@ -122,6 +132,7 @@ Serials updated :
                 </td>
             </tr>
         <!-- /TMPL_LOOP -->
+       </tbody>
     </table>
     
         <!-- /TMPL_IF -->