Merge commit 'kc/master'
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / serials-home.tmpl
index 62585e0..dd22f10 100644 (file)
@@ -1,12 +1,26 @@
 <!-- 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({
+            headers: {
+                2: { sorter: false },
+                4: { sorter: false },
+                               5: { sorter: false }
+            }
+        }); 
+ }); 
+ //]]>
+</script>
 </head>
-<body>
+<body> 
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="serials-search.inc" -->
 
-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; Serials </div>
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <!-- TMPL_IF NAME="done_searched"--><a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; Search results<!-- TMPL_ELSE -->Serials <!-- /TMPL_IF --> </div>
 
 <div id="doc3" class="yui-t2">
    
@@ -57,89 +71,70 @@ Serials updated :
 </table>
 <!--/TMPL_IF-->
         <!-- TMPL_IF NAME="done_searched"-->
-<h1>Serials subscriptions</h1>
+<h2>Serials subscriptions</h2>
 
-<!-- TMPL_IF NAME="routing" -->
-        <h3>Search for Serial Routing List</h3>
-<!-- /TMPL_IF -->
-
-    <table>
+    <table id="srlt">
+       <thead>
         <tr>
             <th>ISSN</th>
             <th>Title</th>
+            <th> Notes </th>
             <th>
-                Note
-            </th>
-            <th>
-                Branch
+                Library (Callnumber)
             </th>
             <!-- TMPL_IF NAME="routing" -->
-              <th colspan="3">&nbsp;</th>
-            <!-- TMPL_ELSE -->
-              <th colspan="2">&nbsp;</th>
+              <th>Routing list</th>
             <!-- /TMPL_IF -->        
+            <th colspan="2">&nbsp;</th>
         </tr>
-        
+       </thead>
+       <tbody> 
         <!-- TMPL_LOOP name="subscriptions" -->
+        <!-- TMPL_UNLESS name="__odd__" -->
+            <tr class="highlight">
+        <!-- TMPL_ELSE -->
             <tr>
-                <!-- TMPL_IF name="toggle" -->
-                    <td class="hilighted">
-                <!-- TMPL_ELSE -->
-                    <td>
-                <!-- /TMPL_IF -->
+        <!-- /TMPL_UNLESS -->
+                <td>
                 <!-- TMPL_IF name="issn" --><!-- TMPL_VAR name="issn" -->
                 <!-- /TMPL_IF -->
                 </td>
-                <!-- TMPL_IF name="toggle" -->
-                    <td class="hilighted">
-                <!-- TMPL_ELSE -->
-                    <td>
-                <!-- /TMPL_IF -->
-                
-                    <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->" class="button" title="subscription detail"><!-- TMPL_IF name="title" --><!-- TMPL_VAR name="title" --><!-- TMPL_ELSE -->
+                <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->" class="button" title="subscription detail"><!-- TMPL_IF name="title" --><!-- TMPL_VAR name="title" escape="html" --><!-- TMPL_ELSE -->
                     ---
                 <!-- /TMPL_IF --></a>
-                
                 </td>
-                <!-- TMPL_IF name="toggle" -->
-                    <td class="hilighted">
-                <!-- TMPL_ELSE -->
-                    <td>
-                <!-- /TMPL_IF -->
-                <!-- TMPL_IF name="notes" -->(<!-- TMPL_VAR name="notes" -->)<!-- /TMPL_IF -->
+                <td><!-- TMPL_IF name="notes" --><!-- TMPL_VAR name="notes" --><!-- /TMPL_IF -->
+                <!-- TMPL_IF name="internalnotes" -->(<!-- TMPL_VAR name="internalnotes" -->)<!-- /TMPL_IF -->
                 </td>
-                <!-- TMPL_IF name="toggle" -->
-                    <td class="hilighted">
-                <!-- TMPL_ELSE -->
-                    <td>
-                <!-- /TMPL_IF -->
+                <td>
                 <!-- TMPL_IF name="branchcode" --><!-- TMPL_VAR name="branchcode" --><!-- /TMPL_IF -->
+                <!-- TMPL_IF name="callnumber" -->(<!-- TMPL_VAR name="callnumber" -->)<!-- /TMPL_IF -->
                 </td>
-                  <!-- TMPL_IF name="toggle" -->
-                        <td class="hilighted">
-                    <!-- TMPL_ELSE -->
-                        <td>
-                    <!-- /TMPL_IF -->
-                                               <a href="/cgi-bin/koha/serials/serial-issues.pl?biblionumber=<!-- TMPL_VAR name="biblionumber" -->">Issue History</a>
-                                       </td>
                 <!-- TMPL_IF NAME="routing" -->
-                    <!-- TMPL_IF name="toggle" -->
-                        <td class="hilighted">
-                    <!-- TMPL_ELSE -->
-                        <td>
-                    <!-- /TMPL_IF -->
-                        <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" --><!-- TMPL_UNLESS NAME="routingedit" -->&amp;op=new<!-- /TMPL_UNLESS -->">Routing List</a>
-                    </td>
+                <td>
+                <!-- TMPL_IF NAME="cannotedit" -->
+                  &nbsp;        
+                <!-- TMPL_ELSE -->
+                    <!--TMPL_IF Name="routingedit"-->
+                        <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->">Edit</a>
+                       <!-- TMPL_ELSE -->
+                                               <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->&amp;op=new">New</a>
+                                       <!--/TMPL_IF-->
                 <!-- /TMPL_IF -->
-                <!-- TMPL_IF name="toggle" -->
-                    <td class="hilighted">
+                </td>
+                <!-- /TMPL_IF -->
+                <td><a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->">Issue History</a>
+                </td>
+                <td>
+                <!-- TMPL_IF NAME="cannotedit" -->
+                  &nbsp;        
                 <!-- TMPL_ELSE -->
-                    <td>
+                  <!-- TMPL_IF name="CAN_user_serials_receive_serials" --><a href="/cgi-bin/koha/serials/serials-edit.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->&amp;serstatus=1,3,7">Serial receive</a><!-- /TMPL_IF -->
                 <!-- /TMPL_IF -->
-                  <a href="/cgi-bin/koha/serials/serials-edit.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->&amp;serstatus=1,3">Serial receive</a>
                 </td>
             </tr>
         <!-- /TMPL_LOOP -->
+       </tbody>
     </table>
     
         <!-- /TMPL_IF -->
@@ -151,4 +146,4 @@ Serials updated :
 <!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
 </div>
 </div>
-<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
\ No newline at end of file
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->