koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] koha/koha-tmpl/opac-tmpl/css/en opac-full-seria... [rel_2_2]


From: Henri-Damien LAURENT
Subject: [Koha-cvs] koha/koha-tmpl/opac-tmpl/css/en opac-full-seria... [rel_2_2]
Date: Tue, 13 Jun 2006 13:59:50 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         rel_2_2
Changes by:     Henri-Damien LAURENT <hdl>      06/06/13 13:59:50

Modified files:
        koha-tmpl/opac-tmpl/css/en: opac-full-serial-issues.tmpl 

Log message:
        Bug fixing : tab navigation didnot work.
        BUG TO FIX : when using publication date, if publisheddate is null, 
will have many ids with null values.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/opac-tmpl/css/en/opac-full-serial-issues.tmpl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.1.2.6&r2=1.1.2.7

Patches:
Index: opac-full-serial-issues.tmpl
===================================================================
RCS file: 
/sources/koha/koha/koha-tmpl/opac-tmpl/css/en/opac-full-serial-issues.tmpl,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -u -b -r1.1.2.6 -r1.1.2.7
--- opac-full-serial-issues.tmpl        23 Sep 2005 10:02:38 -0000      1.1.2.6
+++ opac-full-serial-issues.tmpl        13 Jun 2006 13:59:50 -0000      1.1.2.7
@@ -8,7 +8,7 @@
        <div class="tabsubs">
        <!-- TMPL_LOOP NAME="years" -->
                <!-- TMPL_IF NAME="year" -->
-                       <a  class="tabsubs" href="javascript:active(<!-- 
TMPL_VAR NAME="year" -->)"><!-- TMPL_VAR NAME="year" --></a>
+                       <a  class="tabsubs" href="javascript:showlayer(<!-- 
TMPL_VAR NAME="year" -->)"><!-- TMPL_VAR NAME="year" --></a>
                <!-- /TMPL_IF -->
        <!-- /TMPL_LOOP -->
        <a class="tabsubs" href="opac-serial-issues.pl?biblionumber=<!-- 
TMPL_VAR name="biblionumber" -->&selectview=small">Compact view</a>
@@ -20,6 +20,8 @@
                        <tr>
                                <th>Date
                                </th>
+                               <th>Date received
+                               </th>
                                <th>Number
                                </th>
                                <th>Status
@@ -28,6 +30,9 @@
                        <!-- TMPL_LOOP Name="serials" -->
                        <tr>
                                <td>
+                                       <!-- TMPL_VAR Name="publisheddate" -->
+                               </td>
+                               <td>
                                        <!-- TMPL_VAR Name="planneddate" -->
                                </td>
                                <td>
@@ -46,16 +51,17 @@
        </div>
        <!--/TMPL_LOOP -->
 <script language="JavaScript" type="text/javascript">
-active(<!-- TMPL_VAR name="yearmin" -->);
-function active(numlayer)
+showlayer(<!-- TMPL_VAR name="yearmin" -->);
+function showlayer(numlayer)
 {
        for (i=<!--TMPL_VAR Name="yearmin"-->; i<=<!--TMPL_VAR 
Name="yearmax"-->; i++ ) {
-               ong = i;
-               link = "link"+i;
-               if (numlayer==i) {
-                       document.getElementById(ong).style.visibility="visible";
+        var children=document.getElementsByName(i)
+        for(j=0;j<children.length;j++){
+          if ((children[j].style.visibility == "hidden") && (numlayer==i)){
+            children[j].style.visibility="visible";
                } else {
-                       document.getElementById(ong).style.visibility="hidden";
+            children[j].style.visibility="hidden";
+          }
                }
        }
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]