Follow up to Bug 6857: Change language from 'reserve' to 'hold'
[koha_gimpoz] / koha-tmpl / opac-tmpl / prog / en / modules / opac-full-serial-issues.tt
index 9cb5629..0729ea6 100644 (file)
@@ -1,5 +1,6 @@
 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog ›  Subscription information for [% bibliotitle %]
 [% INCLUDE 'doc-head-close.inc' %]
+<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
 <script type="text/javascript" language="javascript">
 //<![CDATA[
 
@@ -23,6 +24,11 @@ $(document).ready(function(){
                $("a.tabsubs").removeClass("currentsubtab");
                $(this).addClass("currentsubtab");
        });
+       $(".subscriptionstclass").tablesorter({[% IF ( dateformat == 'metric' ) %]
+    dateFormat: 'uk',[% END %]
+            widgets : ['zebra'],
+            sortList: [[0,0]]
+        });
 });
 
 // Filters initialization
@@ -164,8 +170,11 @@ function showlayer(numlayer){
     </div>
 
     [% FOREACH year IN years %]
-  [% IF ( year.first ) %]  
-    <div class="yeardata tabsub" id="show[% year.year %]" style="display:block">[% ELSE %]<div class="yeardata tabsub" id="show[% year.year %]" style="display:none">[% END %]
+        [% IF loop.first %]
+           <div class="yeardata tabsub" id="show[% year.year %]" style="display:block">
+        [% ELSE %]
+           <div class="yeardata tabsub" id="show[% year.year %]" style="display:none">
+        [% END %]
         <table class="subscriptionstclass">
            <thead>
                <tr>