[Koha-cvs] koha/koha-tmpl/intranet-tmpl/prog/en/circ circu... [rel_3_0]

Antoine Farnault antoine at koha-fr.org
Mon Nov 27 11:28:23 CET 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch:		rel_3_0
Changes by:	Antoine Farnault <toins>	06/11/27 10:28:23

Modified files:
	koha-tmpl/intranet-tmpl/prog/en/circ: circulation.tmpl 

Log message:
	General display changed.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/prog/en/circ/circulation.tmpl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.6.2.11&r2=1.6.2.12

Patches:
Index: circulation.tmpl
===================================================================
RCS file: /sources/koha/koha/koha-tmpl/intranet-tmpl/prog/en/circ/circulation.tmpl,v
retrieving revision 1.6.2.11
retrieving revision 1.6.2.12
diff -u -b -r1.6.2.11 -r1.6.2.12
--- circulation.tmpl	24 Nov 2006 11:07:09 -0000	1.6.2.11
+++ circulation.tmpl	27 Nov 2006 10:28:23 -0000	1.6.2.12
@@ -7,67 +7,145 @@
 <!-- TMPL_INCLUDE NAME="menus.inc" -->
 <!-- TMPL_INCLUDE NAME="menu-circ.inc" -->
 
-
-<h1>Circulation: Issues</h1>
+<!-- TMPL_IF NAME="borrowernumber" -->
+    <h1>Issues to <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --></h1>
+        <!-- TMPL_IF NAME="overduecount" -->
+            <span class="problem"><b><big>This borrower has <!-- TMPL_VAR name="overduecount" --> overdue(s) items</big></b></span>
+        <!--/TMPL_IF-->
+     <a id="ViewHidden" href="JavaScript:MoreBorrowerDetails();">View borrower details</a><br />
+<!-- TMPL_ELSE -->
+    <h1>Circulation issues</h1>
+<!-- /TMPL_IF -->
 
 <!--  INITIAL BLOC : PARAMETERS & BORROWER INFO --> 	
-<fieldset>
-<!-- TMPL_IF NAME="ManualLocation" -->
-<legend>Circulation Parameters</legend>
-<ul>
-  <li>Branch: <!-- TMPL_VAR NAME="branchname" --></li>
-  <!-- TMPL_IF name="printername" -->
-  	<li>Printer: <!-- TMPL_VAR NAME="printername" --></li>
-  <!-- /TMPL_IF --> 
-  	<li> <a href="selectbranchprinter.pl">Change Settings</a> </li>
-</ul>
-</fieldset>
-<!-- /TMPL_IF -->
+<!-- Branch: <a href="/cgi-bin/koha/circ/selectbranchprinter.pl" title="change"><!-- TMPL_VAR NAME="branchname"--></a>
+<!-- TMPL_IF name="printername" --> | Printer: <!-- TMPL_VAR NAME="printername" --><!-- /TMPL_IF -->-->
 
-<!-- RESULT OF ISSUING REQUEST -->
+<!-- TMPL_IF NAME="borrowernumber" -->
 
-<!-- TMPL_IF NAME="IMPOSSIBLE" -->
-<fieldset id="circ_circulation_impossible">
-  <legend>Error Issuing Item</legend>
+  <div id="BorrowerDetails" class="content_hidden">
   <ul>
-  <!-- TMPL_IF NAME="INVALID_DATE" -->
-    <li><span class="problem">The due date is invalid</span></li>
+    <li>
+        <!-- TMPL_IF NAME="streetaddress"-->
+            <!-- TMPL_VAR NAME="streetaddress" -->,
+        <!-- TMPL_ELSE -->
+            <span class="problem">No Adress stored</span>
   <!-- /TMPL_IF -->
-  
-  <!-- TMPL_IF NAME="UNKNOWN_BARCODE" -->
-    <li><span class="problem">The barcode was not found</span></li>
+        <!-- TMPL_IF NAME="city" -->
+             <!-- TMPL_VAR NAME="city" -->
+        <!-- TMPL_ELSE -->
+            No city stored.     
   <!-- /TMPL_IF -->
-  
-  <!-- TMPL_IF NAME="NOT_FOR_LOAN" -->
-    <li><span class="problem">Item not for loan</span></li>
+    </li>
+    <li><!--TMPL_IF NAME="phone" -->
+		<!-- TMPL_VAR NAME="phone" -->
+	<!-- TMPL_ELSE -->
+		<span class="problem">No phone stored.</span>
   <!-- /TMPL_IF -->
+    </li>
   
-  <!-- TMPL_IF NAME="WTHDRAWN" -->
-    <li><span class="problem">Item is cancelled</span></li>
+    <!-- TMPL_IF NAME="emailaddress" -->
+    <li>
+      <a href="mailto:<!-- TMPL_VAR NAME="emailaddress" -->"><!-- TMPL_VAR NAME="emailaddress" --></a>
+    </li>
   <!-- /TMPL_IF -->
   
-  <!-- TMPL_IF NAME="GNA" -->
-    <li><span class="problem">Patron's address is in doubt</span></li>
+    <li>Category: <!-- TMPL_VAR name="categorycode" --></li>
+    <li>
+      (<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">details</a>
+        / <a href="/cgi-bin/koha/members/memberentry.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->&amp;modify=edit&amp;destination=circ&categorycode=<!-- TMPL_VAR name="categorycode" -->">edit</a>)
+    </li>
+  </ul>
+    <!-- TMPL_IF NAME="flagged" -->
+
+  <ul>
+      <!-- TMPL_IF NAME="gna" -->
+    <li>Address: Patron's address in doubt</li>
   <!-- /TMPL_IF -->
   
-  <!-- TMPL_IF NAME="CARD_LOST" -->
-    <li><span class="problem">Patron's card is lost</span></li>
+      <!-- TMPL_IF NAME="lost" -->
+    <li>Lost: Patron's card is lost</li>
   <!-- /TMPL_IF -->
   
-  <!-- TMPL_IF NAME="DEBARRED" -->
-    <li><span class="problem">Patron is debarred</span></li>
+      <!-- TMPL_IF NAME="dbarred" -->
+    <li>
+      Debarred: Patron is debarred
+      <form class="inline compact" action="/cgi-bin/koha/members/setdebar.pl" method="post">
+        <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
+        <input type="hidden" name="cardnumber" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
+        <input type="hidden" value="circ" name="destination" />
+        <input type="hidden" name="status" value="0" />
+
+        <div id="action">
+          <input type="submit" value="Lift Debarment" />
+        </div>
+      </form>
+    </li>
   <!-- /TMPL_IF -->
   
-  <!-- TMPL_IF NAME="NO_MORE_RENEWALS" -->
-    <li><span class="problem">No more renewals possible</span></li>
+      <!-- TMPL_IF name="odues" -->
+    <li>
+        <!-- TMPL_IF name="nonreturns" -->
+      Overdues: See highlighted items <a href="JavaScript:active(1)">below</a>
   <!-- /TMPL_IF -->
+    </li>
+      <!-- /TMPL_IF --> <!-- odues -->
   
-  <!-- TMPL_IF NAME="EXPIRED" -->
-    <li><span class="problem">Patron's card is expired</span></li>
+      <!-- TMPL_IF NAME="charges" -->
+    <li>
+      Fines: Patron has 
+      <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">outstanding fines</a>.
+      Make <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">Payment</a>
+    </li>
   <!-- /TMPL_IF -->
   </ul>
-</fieldset>
-<!-- /TMPL_IF --> <!-- IMPOSSIBLE -->
+<!-- this part must be removed if we keep the new waiting infos display-->
+      <!-- TMPL_IF NAME="waiting" -->
+  <ul>
+    <li>
+      Reserves waiting:
+      <ul>
+        <!-- TMPL_LOOP name="itemswaiting" -->
+        <li>
+          <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR name="biblionumber" -->&amp;type=intra"><!-- TMPL_VAR name="title" --></a>
+          (<!-- TMPL_VAR name="barcode" --> -- <!-- TMPL_VAR name="branchname" -->)
+        </li>
+        <!-- /TMPL_LOOP --> <!-- itemswaiting -->
+      </ul>
+    </li>
+  </ul>
+      <!-- /TMPL_IF --> <!-- waiting -->
+<!-- end of this part must be removed if we keep the new waiting infos display-->
+
+      <!-- TMPL_IF name="notes" -->
+  <ul>
+    <li>Notes: <!-- TMPL_VAR name="notesmsg" --></li>
+  </ul>
+      <!-- /TMPL_IF --> <!-- notes -->
+
+    <!-- /TMPL_IF --> <!-- flagged -->
+
+  <!-- TMPL_ELSE --> <!-- borrowernumber -->
+
+<!-- TMPL_UNLESS NAME="CGIselectborrower"-->
+<!-- No card entered yet -->
+<form method="post" action="/cgi-bin/koha/circ/circulation.pl" name="mainform" id="mainform">
+  <fieldset id="circ_circulation_borrower_search">
+    <legend>Search a borrower</legend>
+  
+    <p>
+      <label for="findborrower">Enter borrower card number or partial last name: </label>
+      <input name="findborrower" type="text" size="40";/>
+    </p>
+
+    <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
+    <input type="hidden" name="printer" value="<!-- TMPL_VAR NAME="printer" -->" />
+    <input type="submit" value="Submit" />
+  </fieldset>
+</form>
+<!-- /TMPL_UNLESS -->
+<!-- /TMPL_IF --> <!-- borrowernumber -->
+</div> <!-- id=BorrowerDetails -->
   
 <!-- TMPL_IF NAME="NEEDSCONFIRMATION" -->
 <fieldset id="circ_circulation_needsconfirmation">
@@ -124,7 +202,7 @@
     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
 
     <div id="action">
-      <input type="submit" value="Confirm Issue (Y)" accesskey="y" />
+      <input type="submit" value="Confirm Issue" accesskey="y" />
     </div>
 
   </form>
@@ -133,7 +211,7 @@
     <input type="hidden" name="borrowernumberber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
 
     <div id="action">
-      <input type="submit" value="Don't Issue (N)" accesskey="n" />
+      <input type="submit" value="Don't Issue" accesskey="n" />
     </div>
   </form>
   
@@ -153,6 +231,7 @@
 </p>
 <!-- /TMPL_IF -->
 
+
 <!-- TMPL_IF NAME="CGIselectborrower" -->
 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform">
   <fieldset id="circ_circulation_selectborrower">
@@ -172,151 +251,66 @@
       Patron not found?
       <a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=A"/>Add adult</a>
       <a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=C"/>Add child</a>  
+      or <a href="JavaScript:back();">try another search</a>
     </p>
   </fieldset>
 </form>
 <!-- TMPL_ELSE --> <!-- CGIselectborrower -->
 
-  <!-- TMPL_IF NAME="borrowernumber" -->
-<fieldset id="circ_circulation_borrower_informations">
-  <legend>Borrower informations</legend>
+<!-- BARCODE ENTRY -->
 
-  <h3><!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)</h3>
+<!-- TMPL_IF NAME="borrowernumber" -->
+<form method="post" action="/cgi-bin/koha/circ/circulation.pl" name="mainform">
+  <fieldset id="circ_circulation_issue">
+    <legend>Issue an item</legend>
 
-  <h4>
-    &nbsp; &nbsp; <!-- TMPL_VAR NAME="issuecount" --> out
-    <!-- TMPL_IF NAME="overduecount" -->
-    , <!-- TMPL_VAR name="overduecount" --> overdue
-    <!-- /TMPL_IF -->
-  </h4>
+    <p>
+	<label for="barcode">Enter Item Barcode: </label><input type="text" name="barcode" size="14" />
 
+		<!-- RESULT OF ISSUING REQUEST -->
+		<!-- TMPL_IF NAME="IMPOSSIBLE" -->
   <ul>
-    <li>
-        <!-- TMPL_IF NAME="streetaddress"-->
-            <!-- TMPL_VAR NAME="streetaddress" -->,
-        <!-- TMPL_ELSE -->
-            <span class="problem">No Adress stored</span>
+		  <!-- TMPL_IF NAME="INVALID_DATE" -->
+		    <li><span class="problem">The due date is invalid</span></li>
         <!-- /TMPL_IF -->
-        <!-- TMPL_IF NAME="city" -->
-             <!-- TMPL_VAR NAME="city" -->
-        <!-- TMPL_ELSE -->
-            No city stored.     
+		  <!-- TMPL_IF NAME="UNKNOWN_BARCODE" -->
+		    <li><span class="problem">The barcode was not found</span></li>
         <!-- /TMPL_IF -->
-    </li>
-    <li><!-- TMPL_VAR NAME="phone" --></li>
   
-    <!-- TMPL_IF NAME="emailaddress" -->
-    <li>
-      <a href="mailto:<!-- TMPL_VAR NAME="emailaddress" -->"><!-- TMPL_VAR NAME="emailaddress" --></a>
-    </li>
+		  <!-- TMPL_IF NAME="NOT_FOR_LOAN" -->
+		    <li><span class="problem">Item not for loan</span></li>
     <!-- /TMPL_IF -->
   
-    <li>Category: <!-- TMPL_VAR name="categorycode" --></li>
-    <li>
-      (<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">details</a>
-        / <a href="/cgi-bin/koha/members/memberentry.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->&amp;modify=edit&amp;destination=circ&categorycode=<!-- TMPL_VAR name="categorycode" -->">edit</a>)
-    </li>
-  </ul>
-    <!-- TMPL_IF NAME="flagged" -->
-
-  <ul>
-      <!-- TMPL_IF NAME="gna" -->
-    <li>Address: Patron's address in doubt</li>
+		  <!-- TMPL_IF NAME="WTHDRAWN" -->
+		    <li><span class="problem">Item is cancelled</span></li>
       <!-- /TMPL_IF -->
 
-      <!-- TMPL_IF NAME="lost" -->
-    <li>Lost: Patron's card is lost</li>
+		  <!-- TMPL_IF NAME="GNA" -->
+		    <li><span class="problem">Patron's address is in doubt</span></li>
       <!-- /TMPL_IF -->
 
-      <!-- TMPL_IF NAME="dbarred" -->
-    <li>
-      Debarred: Patron is debarred
-      <form class="inline compact" action="/cgi-bin/koha/members/setdebar.pl" method="post">
-        <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
-        <input type="hidden" name="cardnumber" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
-        <input type="hidden" value="circ" name="destination" />
-        <input type="hidden" name="status" value="0" />
-
-        <div id="action">
-          <input type="submit" value="Lift Debarment" />
-        </div>
-      </form>
-    </li>
+		  <!-- TMPL_IF NAME="CARD_LOST" -->
+		    <li><span class="problem">Patron's card is lost</span></li>
       <!-- /TMPL_IF -->
   
-      <!-- TMPL_IF name="odues" -->
-    <li>
-        <!-- TMPL_IF name="nonreturns" -->
-      Overdues: Patron has ITEMS OVERDUE See highlighted items <a href="#previous">below</a>
+		  <!-- TMPL_IF NAME="DEBARRED" -->
+		    <li><span class="problem">Patron is debarred</span></li>
         <!-- /TMPL_IF -->
-    </li>
-      <!-- /TMPL_IF --> <!-- odues -->
   
-      <!-- TMPL_IF NAME="charges" -->
-    <li>
-      Fines: Patron has 
-      <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">outstanding fines</a>.
-      Make <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">Payment</a>
-    </li>
+		  <!-- TMPL_IF NAME="NO_MORE_RENEWALS" -->
+		    <li><span class="problem">No more renewals possible</span></li>
       <!-- /TMPL_IF -->
-  </ul>
-<!-- this part must be removed if we keep the new waiting infos display-->
-      <!-- TMPL_IF name="waiting" -->
-  <ul>
-    <li>
-      Reserves waiting:
-      <ul>
-        <!-- TMPL_LOOP name="itemswaiting" -->
-        <li>
-          <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR name="biblionumber" -->&amp;type=intra"><!-- TMPL_VAR name="title" --></a>
-          (<!-- TMPL_VAR name="barcode" --> -- <!-- TMPL_VAR name="branchname" -->)
-        </li>
-        <!-- /TMPL_LOOP --> <!-- itemswaiting -->
-      </ul>
-    </li>
-  </ul>
-      <!-- /TMPL_IF --> <!-- waiting -->
-<!-- end of this part must be removed if we keep the new waiting infos display-->
 
-      <!-- TMPL_IF name="notes" -->
-  <ul>
-    <li>Notes: <!-- TMPL_VAR name="notesmsg" --></li>
+		  <!-- TMPL_IF NAME="EXPIRED" -->
+		    <li><span class="problem">Patron's card is expired</span></li>
+		  <!-- /TMPL_IF -->
   </ul>
-      <!-- /TMPL_IF --> <!-- notes -->
-
-    <!-- /TMPL_IF --> <!-- flagged -->
-</fieldset>
-  <!-- TMPL_ELSE --> <!-- borrowernumber -->
-
-<!-- No card entered yet -->
-<form method="post" action="/cgi-bin/koha/circ/circulation.pl" name="mainform" id="mainform">
-  <fieldset id="circ_circulation_borrower_search">
-    <legend>Search a borrower</legend>
-  
-    <p>
-      <label for="findborrower">Enter borrower card number or partial last name: </label>
-      <input name="findborrower" type="text" size="40" />
     </p>
-
-    <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
-    <input type="hidden" name="printer" value="<!-- TMPL_VAR NAME="printer" -->" />
-    <input type="submit" value="Submit" />
-  </fieldset>
-</form>
-  <!-- /TMPL_IF --> <!-- borrowernumber -->
-<!-- /TMPL_IF --> <!-- CGIselectborrower -->
-
-<!-- BARCODE ENTRY -->
-
-<!-- TMPL_IF NAME="borrowernumber" -->
-<form method="post" action="/cgi-bin/koha/circ/circulation.pl" name="mainform">
-  <fieldset id="circ_circulation_issue">
-    <legend>Issue an item</legend>
-
-    <p><label for="barcode">Enter Item Barcode: </label><input name="barcode" size="14" /></p>
 	<!-- TMPL_IF NAME="memberofinstution" -->
 	<p><!-- TMPL_VAR NAME="CGIorganisations" --></p>
 	<!-- /TMPL_IF -->
+
+    <!--/TMPL_IF --> <!-- impossible -->
     <p><label for="day">Specify Due Date: </label>
           <select name="day" id="day">
             <option value="0">Day</option>
@@ -610,8 +604,8 @@
                 <option value="2010">2010</option>
             <!-- /TMPL_IF -->
           </select>
-        </p>
-        <p><label for="stickyduedate">
+        
+        <label for="stickyduedate">
             <input type="checkbox" id="stickyduedate" name="stickyduedate" <!-- TMPL_VAR NAME="selected" --> />
             Remember due date for Session
             </label>
@@ -636,9 +630,31 @@
   </fieldset>
 </form>
 
+<div id="tabs">
+    <b><!-- TMPL_VAR NAME="firstname"--> <!-- TMPL_VAR NAME="surname"--> (<!-- TMPL_VAR NAME="cardnumber"-->) has</b>
+    <!-- TMPL_IF NAME="countreserv"-->
+        <a href="javascript:active(0)" class="tab_inactive" id="link0">
+            <!--TMPL_VAR NAME="countreserv"--> reserve(s)
+        </a>
+    <!-- TMPL_ELSE -->
+        <a href="#" class="tab_inactive">
+            0 reserve
+        </a>
+    <!-- /TMPL_IF -->
+    
+    <!--TMPL_IF NAME="issuecount"-->
+        <a href="javascript:active(1)" class="tab_inactive" id="link1">
+            <!-- TMPL_VAR NAME="issuecount"--> issue(s)
+        </a>
+    <!-- TMPL_ELSE -->
+        <a href="#" class="tab_inactive">
+            0 issue(s)
+        </a>
+    <!-- /TMPL_IF -->
+</div>
+
 <!-- TMPL_IF NAME="reservloop" -->
-<div id="circ_circulation_issue">
-	<h2>Borrower current reserves</h2>
+<div id="0XX" class="content_hidden">
 	<table>
 		<tr>
 			<th>Reserve date</th>
@@ -686,18 +702,16 @@
 		<!-- /TMPL_LOOP -->
 	</table>
 </div>
-<!-- /TMPL_IF -->
+<!-- /TMPL_IF --> <!-- reservesloop -->
 
 <!-- /TMPL_IF --> <!-- borrowernumber -->
 
 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
 <!-- TMPL_IF NAME="borrowernumber" -->
-<div id="circ_circulation_borrower_issues">
+<div id="1XX" class="content_hidden">
     <form action="/cgi-bin/koha/reserve/renewscript.pl" method="post">
-    <h2>Borrower current issues</h2>
-
     <p>
-      <a href=# onclick="javascript:window.open('/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;print=page')">Print Page</a>
+      <a href="JavaScript:window.open('/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;print=page')">Print Page</a>
       / <a href=# onclick="javascript:window.open('/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;print=slip')">Print Slip</a>
     </p>
     
@@ -716,7 +730,6 @@
         <th>Renew?</th>
       </tr>
     
- 
       <tr>
         <th colspan="6"><a name="today" id="today">Today Issues</a></th>
       </tr>
@@ -751,10 +764,6 @@
         </td>
       </tr>
     <!-- /TMPL_LOOP --> <!-- todayissues -->
-  <!-- TMPL_ELSE --> <!-- todayissues -->
-  <p>
-    No item out.
-  </p>
     <!-- /TMPL_IF --> <!-- todayissues -->
   <!-- TMPL_IF NAME="previssues" -->
     <table>
@@ -810,5 +819,69 @@
 </form>
 </div>
 <!-- /TMPL_IF --> <!-- borrowernumber -->
+<!--/TMPL_IF -->
+
+<script type="text/JavaScript" language="JavaScript">
+    
+    /**
+     *  _(s)
+     *  This function is used to localised.
+     */
+     function _(s) {
+         return s;
+     }
+    /**
+     *  MoreBorrowerDetails();
+     *  This function displays or not borrower information.
+     */
+    function MoreBorrowerDetails() {
+        var div = document.getElementById('BorrowerDetails');
+        if(div.getAttribute('class') == "content_visible"){
+            div.removeAttribute('class');
+            div.setAttribute('class',"content_hidden");
+        }
+        else {
+            div.setAttribute('class',"content_visible");
+            div.setAttribute('style',"height:130px;");
+        }
+    }
+    /**
+     *  active(numlayer)
+     *  This function activate the numlayer div.
+     */
+    function active(numlayer){
+        for (i=0; i <= 1 ; i++ ) {
+            var tab;
+            try{
+                tab = document.getElementById(i+'XX');
+                tab.getAttribute('id'); // that throw an exception.
+            }
+            catch(e){
+                continue; // go to the next step.
+            }
+            if (numlayer==i) {
+                tab.setAttribute("class","content_visible");
+                var tabactive=document.getElementById('link'+i);
+                tabactive.removeAttribute("class");
+                tabactive.setAttribute("class","tab_active");
+            } else {
+                tab.setAttribute("class","content_hidden");
+                try {
+                    var tabactive=document.getElementById('link'+i);
+                    tabactive.removeAttribute("class");
+                    tabactive.setAttribute("class","tab_inactive");
+                }
+                catch(e){};
+            }
+        }
+      }
+
+    <!-- TMPL_IF NAME="borrowernumber" -->
+          document.mainform.barcode.focus(); // set the focus to the barcode entry.
+    <!-- TMPL_ELSE -->
+        document.mainform.findborrower.focus(); // set the focus to te form to search a borrower
+    <!-- /TMPL_IF -->
+
+</script>
 
 <!-- TMPL_INCLUDE name="intranet-bottom.inc" -->





More information about the Koha-cvs mailing list