koha-cvs
[Top][All Lists]
Advanced

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

[Koha-cvs] koha/koha-tmpl/intranet-tmpl/prog/en/cataloguin...


From: Henri-Damien LAURENT
Subject: [Koha-cvs] koha/koha-tmpl/intranet-tmpl/prog/en/cataloguin...
Date: Tue, 10 Jul 2007 08:50:08 +0000

CVSROOT:        /cvsroot/koha
Module name:    koha
Changes by:     Henri-Damien LAURENT <hdl>      07/07/10 08:50:08

Added files:
        koha-tmpl/intranet-tmpl/prog/en/cataloguing/value_builder: 
                                                                   macles.tmpl 

Log message:
        Adding macle_plugin for FRANTIQ

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/prog/en/cataloguing/value_builder/macles.tmpl?cvsroot=koha&rev=1.1

Patches:
Index: macles.tmpl
===================================================================
RCS file: macles.tmpl
diff -N macles.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ macles.tmpl 10 Jul 2007 08:50:08 -0000      1.1
@@ -0,0 +1,247 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
+<html xmlns="http://www.w3.org/1999/xhtml";>
+<html>
+<head>
+<title>Gestion_des_index_MACLES</title>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" 
-->/includes/common-style.css">
+<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" 
-->/includes/marc-editor.css">
+</head>
+
+<body onload="javascript:Activate(0);load_macles(630);">
+<h1 class="catalogue">Gestion des index MACLES</h1>
+<form name="f_pop"> <!-- onSubmit="javascript:add_macles('630');"> -->
+
+<div class="tabbed">
+       <div class="tabs">
+        <!--TMPL_LOOP name="BIGLOOP" -->
+            <a href="#" onclick="javascript:Activate('<!-- TMPL_VAR 
name="number"-->'); return false;" id="link<!-- TMPL_VAR name="number"-->"><!-- 
TMPL_VAR name="number"--></a>
+        <!--/TMPL_LOOP -->
+       </div>
+
+<!-- RESET PAGINATION -->
+<!-- TMPL_LOOP name="BIGLOOP" -->
+<!-- hide every tab except the 1st -->
+<!-- TMPL_IF name="number" -->
+    <div name="<!-- TMPL_VAR name="number" -->XX" id="<!-- TMPL_VAR 
name="number" -->XX" class="tab" style="visibility:hidden">
+<!-- TMPL_ELSE -->
+    <div name="<!-- TMPL_VAR name="number" -->XX" id="<!-- TMPL_VAR 
name="number" -->XX" class="tab" style="visibility:visible">
+<!-- /TMPL_IF -->
+          <h2 class="catalogue"> <!--TMPL_VAR Name="hdr_tab"--></h2>
+         <a href="#" class="button catalogue" 
onclick="JavaScript:add_macles('630');">Envoyer</a>
+          <!-- <input type="submit" class="button catalogue" value="Envoyer" 
/> -->
+          <a class="button catalogue" href="" 
onclick="javascript:load_macles(630);">R&eacute;initialiser</a>
+          <a class="button catalogue" href="javascript:uncheck_tab(<!-- 
TMPL_VAR name="number" -->)">d&eacute;selectionner onglet</a>
+          <input type="reset" class="button catalogue" 
value="d&eacute;selectionner tout" />
+        <!--TMPL_IF Name="Table"-->
+          <table>
+            <tr>
+              <th class="catalogue">Espace\Temps</th>
+              <!--TMPL_LOOP Name="col_hdr"-->
+                <th class="catalogue" scope="col" id="<!--TMPL_VAR 
Name="colvalue"-->">  <!--TMPL_VAR Name="collib" ESCAPE=HTML--> <br /><input 
type="checkbox" name="<!--TMPL_VAR Name="colvalue"-->" 
OnClick="check_col('<!--TMPL_VAR Name="colvalue"-->')" />
+                </th>
+              <!--/TMPL_LOOP-->
+            </tr>
+            <!--TMPL_LOOP Name="lines"-->
+            <tr>
+                <th class="catalogue" scope="row" id="<!--TMPL_VAR 
Name="rowvalue"-->">  <!--TMPL_VAR Name="rowlib" ESCAPE=HTML--> <br /><input 
type="checkbox" name="<!--TMPL_VAR Name="rowvalue"-->" 
OnClick="check_row('<!--TMPL_VAR Name="rowvalue"-->')" />
+                </th>
+                <!--TMPL_LOOP Name="cells"-->
+                <td headers="<!--TMPL_VAR Name="rowvalue"--> <!--TMPL_VAR 
Name="colvalue"-->">
+                  <span TITLE="<!--TMPL_LOOP Name="libs" --><!--TMPL_VAR 
Name="lib" ESCAPE=HTML--> - <!--/TMPL_LOOP-->">
+                  <!--TMPL_VAR Name="celvalue"--> <br /><input type="checkbox" 
name="<!--TMPL_VAR Name="celvalue"-->" value="<!--TMPL_VAR Name="celvalue"-->" 
/>
+                  </span>
+                </td>
+                <!--/TMPL_LOOP-->
+            </tr>
+            <!--/TMPL_LOOP-->
+          </table>
+        <!--/TMPL_IF-->
+        <!--TMPL_IF Name="Lists" -->
+          <h2 class="catalogue">s&eacute;lection au moyen d'une liste de 
descripteurs</h2>
+          <!--TMPL_LOOP name="Lists"-->
+            <h3 class="catalogue"><!--TMPL_VAR name="lib"--></h3>
+            <!--TMPL_LOOP name=liblist -->
+              <a href="#<!--TMPL_VAR Name="listvalue"-->" 
onclick="javascript:check_multiple(<!--TMPL_VAR Name="listvalue"-->)"> 
<!--TMPL_VAR name="listlib" escape=html--></a><br />
+            <!--/TMPL_LOOP-->
+          <!--/TMPL_LOOP-->
+        <!--/TMPL_IF-->
+        <!--TMPL_UNLESS Name="Table"-->
+        <!-- Listes simples :Onglets 0 et 9-->
+          <!--TMPL_LOOP Name="lines"-->
+            <h3><!--TMPL_VAR Name="rowvalue" 
ESCAPE=HTML-->&nbsp;-&nbsp;<!--TMPL_VAR Name="rowlib" 
ESCAPE=HTML-->&nbsp;<input type="checkbox" name="<!--TMPL_VAR 
Name="rowvalue"-->" OnClick="javascript:check_row('<!--TMPL_VAR 
Name="rowvalue"-->')" /></h3>
+            <!--TMPL_LOOP Name="cells"-->
+              <p><!--TMPL_VAR Name="celvalue" 
ESCAPE=HTML-->&nbsp;-&nbsp;<!--TMPL_LOOP Name="libs" -->
+                    <!--TMPL_VAR Name="lib" ESCAPE=HTML--> &nbsp;
+                 <!--/TMPL_LOOP-->
+                 <input type="checkbox" name="<!--TMPL_VAR Name="celvalue"-->" 
value="<!--TMPL_VAR Name="celvalue"-->" />
+              </p>
+            <!--/TMPL_LOOP-->
+          <!--/TMPL_LOOP-->
+        <!--/TMPL_UNLESS-->
+    </div>
+<!-- /TMPL_LOOP -->
+</div>
+</form>
+<script language="JavaScript" type="text/javascript">
+function Activate(numlayer)
+{
+       for (var i=0; i <= 9 ; i++ ) {
+               var ong = i+"XX";
+               var link = "link"+i;
+               if (numlayer==i) {
+                       with(document){
+                       if (document.getElementById(ong)){
+                               
document.getElementById(ong).style.visibility="visible";
+                       }
+                       if(document.getElementById(link)){
+                               
document.getElementById(link).style.color="#000066";
+                               
document.getElementById(link).style.backgroundColor="#FFFFCC";
+                       }
+                       }
+               } else {
+                       with(document){
+                       if (document.getElementById(ong)){
+                               
document.getElementById(ong).style.visibility="hidden";
+                       }
+                       if (document.getElementById(link)) {
+                               
document.getElementById(link).style.color="#669999";
+                               
document.getElementById(link).style.backgroundColor="#D8DEB8";
+                       }
+                       }
+               }
+       }
+}
+
+function add_macles(myvalue)
+{
+  var myinputs=document.getElementsByTagName("input");
+  var mycountMACLESgen=0;
+  var tab = new Array();
+  for (var i=0;i<myinputs.length;i++){
+    if (myinputs[i].checked) {
+      tab[mycountMACLESgen]=myinputs[i].value;
+      mycountMACLESgen++;
+    }
+  }
+  if (mycountMACLESgen==1){opener.document.f.field_value[<!-- TMPL_VAR 
name="index" -->].value = tab[0];
+  } else {
+    var mytags=opener.document.getElementsByName("tag");
+    var mycountMACLESinit=0;
+    var indexmin=0
+    //Compter le nombre de MACLES present
+    for (i=0;i<mytags.length;i++){
+      if (mytags[i].value==myvalue) {
+        if (indexmin==0){
+          indexmin=i
+        }
+        mycountMACLESinit++;
+      }
+    }
+    // Si Nombre de Macles <Nombre de cases cochees, ajouter le nombre de 
champ manquant
+    if (mycountMACLESinit < mycountMACLESgen){
+    //for (i=0;i< (mycountMACLESgen - mycountMACLESinit);i++){
+    //  PluginAddField(myvalue);
+    //}
+      alert("veuillez d'abord creer le nombre de champs necessaires ");
+    } else {
+    // Pour chaque valeur cochee, ajouter la valeur dans un noeud MACLES.
+      k=indexmin;
+      for (i=0;i<tab.length;i++){
+          // Se positionner sur le prochain noeud MACLES
+          opener.document.f.field_value[k].value = tab[i];
+          k=k+2;
+      }
+    }
+  }
+  window.close();
+  return false;
+}
+
+function uncheck_tab(number)
+{
+  var myinputs=document.getElementsByTagName("input");
+  var myRegEx=new RegExp(number+"..");
+  for(i=0;i<myinputs.length;i++){
+    if ((myinputs[i].name.search(myRegEx)>=0) && myinputs[i].checked == true) {
+      myinputs[i].checked = false;
+    }
+  }
+}
+function check_col(col)
+{
+  var myref=document.getElementsByName(col);
+  var myinputs=document.getElementsByTagName("input");
+  var myRegEx=new RegExp(col);
+  for(i=0;i<myinputs.length;i++){
+    if (myinputs[i].name.search(myRegEx)>=0) {
+      if (myref[0].checked){
+        myinputs[i].checked = true;
+      } else {
+        myinputs[i].checked = false;
+      }
+    } 
+  }
+  return false;
+}
+
+function check_multiple()
+{
+  for(myi=0;myi<check_multiple.arguments.length;myi++){
+    var myinput=document.getElementsByName(""+check_multiple.arguments[myi]);
+    myinput[0].checked=true;
+  }
+  return false;
+}
+
+function check_row(row)
+{
+  var myref=document.getElementsByName(row);
+  var myinputs=document.getElementsByTagName("input");
+  var myRegEx=new RegExp(row);
+//   alert myRegEx;
+  for(i=0;i<myinputs.length;i++){
+    if (myinputs[i].name.search(myRegEx)>=0){
+      if (myref[0].checked){
+        myinputs[i].checked = true;
+      } else {
+        myinputs[i].checked = false;
+      }
+    } 
+  }
+  return false;
+}
+
+function load_macles(myvalue)
+{
+  document.forms.f_pop.reset;
+  var mystart=<!-- TMPL_VAR name="index" -->;
+  var descent=mystart;
+  var countchecked=0;
+  // Remonter a la source
+  while (opener.document.f.tag[descent].value==myvalue && descent>0){
+    var checkvalue=opener.document.f.field_value[descent].value;
+    var myinput=document.getElementsByName(checkvalue);
+    if (myinput.length>0){
+      myinput[0].checked=true;
+      countchecked++;
+    }
+    descent = descent - 2;
+  }
+  // Continuer jusqu'a la fin
+  var ascent=mystart+2;
+  while (opener.document.f.tag[ascent].value==myvalue && ascent>0){
+    var checkvalue=opener.document.f.field_value[ascent].value;
+    var myinput=document.getElementsByName(checkvalue);
+    if (myinput.length>0){
+      myinput[0].checked=true;
+      countchecked++;
+    }
+    ascent=ascent+2;
+  }
+  return false;
+}
+</script>
+</body>
+</html>




reply via email to

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