[Koha-patches] [PATCH] Bug 4223: Divides the information on the Serials Subscription detail page into tabs.

Garry Collum gcollum at gmail.com
Sat Jun 5 04:20:55 CEST 2010


---
 .../en/modules/serials/subscription-detail.tmpl    |  158 +++++++++++---------
 1 files changed, 86 insertions(+), 72 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tmpl
index 86c3efc..17cee63 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tmpl
@@ -34,6 +34,9 @@ function popup(subscriptionid) {
     newin=window.open("subscription-renew.pl?mode=popup&subscriptionid="+subscriptionid,'popup','width=590,height=440,toolbar=false,scrollbars=yes');
 }
 
+$(document).ready(function() {
+  $("#subscription_description").tabs();
+});
 -->
 </script>
 </head>
@@ -75,6 +78,89 @@ function popup(subscriptionid) {
 	</div>
 	<!-- /TMPL_IF --> <!-- NEEDSCONFIRMATION -->
 
+<div id="subscription_description" class="toptabs">
+<ul class="ui-tabs-nav">
+    <li class="ui-tabs-selected"><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->#subscription_issues">Issues</a></li>
+    <li><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->#subscription_summary">Summary</a></li>
+    <li><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->#subscription_info">Information</a></li>
+    <li><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->#subscription_planning">Planning</a></li>
+</ul>
+
+    <div id="subscription_issues">
+        <h2>Serial issues</h2>
+        <table>
+        <tr>
+            <th>Issue number</th>
+            <th>Planned date</th>
+            <th>Published date</th>
+            <th>Status</th>
+        </tr>
+        <!-- TMPL_LOOP name="serialslist" -->
+            <tr>
+                <td>
+                    <!-- TMPL_VAR name="serialseq" -->
+                </td>
+                <td>
+                    <!-- TMPL_VAR name="planneddate" -->
+                </td>
+                <td>
+                    <!-- TMPL_VAR name="publisheddate" -->
+                </td>
+                <td>
+                        <!--TMPL_IF name="status1" -->
+                            Expected
+                        <!-- /TMPL_IF -->
+                        <!--TMPL_IF name="status2" -->
+                            Arrived
+                        <!-- /TMPL_IF -->
+                        <!--TMPL_IF name="status3" -->
+                            Late
+                        <!-- /TMPL_IF -->
+                        <!--TMPL_IF name="status4" -->
+                            Missing
+                        <!-- /TMPL_IF -->
+                        <!--TMPL_IF name="status5" -->
+                            Not Available
+                        <!-- /TMPL_IF -->
+                        <!-- TMPL_IF name="status7" -->
+                            Claimed
+                             <!-- TMPL_IF name="claimdate" -->
+                             <!-- TMPL_VAR NAME="claimdate" -->
+                             <!-- /TMPL_IF -->
+                        <!-- /TMPL_IF -->
+                </td>
+            </tr>
+        <!-- /TMPL_LOOP -->
+        </table>
+    </div>
+
+    <div id="subscription_summary">
+        <h2>Subscription summary</h2>
+        <table cellpadding="0" cellspacing="0">
+            <tr>
+                <td><label>Start date</label></td>
+                <td> <!-- TMPL_VAR name="startdate" --> </td>
+            </tr>
+            <tr>
+                <td><label>End date</label></td>
+                <td> <!-- TMPL_VAR name="enddate" --></td>
+            </tr>
+            <tr>
+                <td><label>History start date</label></td>
+                <td> <!-- TMPL_VAR name="histstartdate" --> </td>
+            </tr>
+            <tr>
+                <td><label>History end date</label></td>
+                <td> <!-- TMPL_VAR name="histenddate" --></td>
+            </tr>
+            <tr><td><label>Received issues</label></td><td><!-- TMPL_VAR name="recievedlist" --></td></tr>
+            <tr><td><label>Missing issues</label></td><td><!-- TMPL_VAR name="missinglist" --></td></tr>
+            <tr><td><label>Nonpublic note</label></td><td><!-- TMPL_VAR name="librariannote" --></td></tr>
+            <tr><td><label>Public note</label></td><td><!-- TMPL_VAR name="opacnote" --></td></tr>
+        </table>
+    </div>
+
+</div>
  
     <div id="subscription_info">
         <h2>Subscription information</h2>
@@ -285,78 +371,6 @@ function popup(subscriptionid) {
                 </tr>
             </table>
     </div>
-    <div id="subscription_issues">
-        <h2>Serial issues</h2>
-        <table>
-        <tr>
-            <th>Issue number</th>
-            <th>Planned date</th>
-            <th>Published date</th>
-            <th>Status</th>
-        </tr>
-        <!-- TMPL_LOOP name="serialslist" -->
-            <tr>
-                <td>
-                    <!-- TMPL_VAR name="serialseq" -->
-                </td>
-                <td>
-                    <!-- TMPL_VAR name="planneddate" -->
-                </td>
-                <td>
-                    <!-- TMPL_VAR name="publisheddate" -->
-                </td>
-                <td>
-                        <!--TMPL_IF name="status1" -->
-                            Expected
-                        <!-- /TMPL_IF -->
-                        <!--TMPL_IF name="status2" -->
-                            Arrived
-                        <!-- /TMPL_IF -->
-                        <!--TMPL_IF name="status3" -->
-                            Late
-                        <!-- /TMPL_IF -->
-                        <!--TMPL_IF name="status4" -->
-                            Missing
-                        <!-- /TMPL_IF -->
-                        <!--TMPL_IF name="status5" -->
-                            Not Available
-                        <!-- /TMPL_IF -->
-                        <!-- TMPL_IF name="status7" -->
-                            Claimed
-                             <!-- TMPL_IF name="claimdate" -->
-                             <!-- TMPL_VAR NAME="claimdate" -->
-                             <!-- /TMPL_IF -->
-                        <!-- /TMPL_IF -->
-                </td>
-            </tr>
-        <!-- /TMPL_LOOP -->
-        </table>
-    </div>
-    <div id="subscription_summary">
-        <h2>Subscription summary</h2>
-        <table cellpadding="0" cellspacing="0">
-            <tr>
-                <td><label>Start date</label></td>
-                <td> <!-- TMPL_VAR name="startdate" --> </td>
-            </tr>
-            <tr>
-                <td><label>End date</label></td>
-                <td> <!-- TMPL_VAR name="enddate" --></td>
-            </tr>
-            <tr>
-                <td><label>History start date</label></td>
-                <td> <!-- TMPL_VAR name="histstartdate" --> </td>
-            </tr>
-            <tr>
-                <td><label>History end date</label></td>
-                <td> <!-- TMPL_VAR name="histenddate" --></td>
-            </tr>
-            <tr><td><label>Received issues</label></td><td><!-- TMPL_VAR name="recievedlist" --></td></tr>
-            <tr><td><label>Missing issues</label></td><td><!-- TMPL_VAR name="missinglist" --></td></tr>
-            <tr><td><label>Nonpublic note</label></td><td><!-- TMPL_VAR name="librariannote" --></td></tr>
-            <tr><td><label>Public note</label></td><td><!-- TMPL_VAR name="opacnote" --></td></tr>
-        </table>
-    </div>
 
 </div>
 </div>
-- 
1.5.6.5



More information about the Koha-patches mailing list