merging 2.2 branch with head. Sorry for not making it before, many many commits done...
[koha.git] / koha-tmpl / intranet-tmpl / default / fr / parameters / marctagstructure.tmpl
1 <!-- TMPL_INCLUDE NAME="parameters-top.inc" -->
2
3 <div id="mainbloc">
4 <h1 class="parameters">Gestion de la structure des champs MARC <!-- TMPL_IF NAME="frameworkcode" --><!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)<!-- TMPL_ELSE -->Grille MARC par défaut<!-- /TMPL_IF --></h1>
5 <script language="javascript" type="text/javascript">
6         function _(s) { return s } // dummy function for gettext
7         /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
8         function isNotNull(f,noalert) {
9                 if (f.value.length ==0) {
10    return false;
11                 }
12                 return true;
13         }
14         /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
15         function toUC(f) {
16                 var x=f.value.toUpperCase();
17                 f.value=x;
18                 return true;
19         }
20         /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
21         function isNum(v,maybenull) {
22         var n = new Number(v.value);
23         if (isNaN(n)) {
24                 return false;
25                 }
26         if (maybenull==0 && v.value=='') {
27                 return false;
28         }
29         return true;
30         }
31         /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
32         function isDate(f) {
33                 var t = Date.parse(f.value);
34                 if (isNaN(t)) {
35                         return false;
36                 }
37         }
38         /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
39         function Check(f) {
40                 var ok=1;
41                 var _alertString="";
42                 var alertString2;
43                 if (f.tagfield.value.length==0) {
44                         _alertString += "\n- " + _("étiquette du champ absente");
45                 }
46                 if (_alertString.length==0) {
47                         document.Aform.submit();
48                 } else {
49                         alertString2  = _("Formulaire non soumis à cause du (des) problème(s) suivant(s)");
50                         alertString2 += "\n------------------------------------------------------------------------------------\n";
51                         alertString2 += _alertString;
52                         alert(alertString2);
53                 }
54         }
55         </script>
56
57 <!-- TMPL_IF NAME="add_form" -->
58 <!-- ------------------------------------------------------------------------ -->
59         <h1 class="parameters">
60         <!-- TMPL_IF NAME="use-heading-flags-p" -->
61         <!-- TMPL_IF NAME="heading-modify-tag-p" -->Modifier l'étiquette<!-- /TMPL_IF -->
62         <!-- TMPL_IF NAME="heading-add-tag-p" -->Ajouter un champ<!-- /TMPL_IF -->
63         <!-- TMPL_ELSE --><!-- TMPL_VAR NAME="action" --><!-- /TMPL_IF -->
64         </h1>
65         <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
66                 <input type="hidden" name="op" value="add_validate">
67                 <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
68                 <p><label>Etiquette<label><!-- TMPL_VAR NAME="searchfield" --></p>
69                 <p><label>Libellé pour bibliothécaires</label><input type="text" name="liblibrarian" value="<!-- TMPL_VAR NAME="liblibrarian" escape=HTML -->" size="80" maxlength="100"></p>
70                 <p><label>Libellé pour l'OPAC</label><input type="text" name="libopac" value="<!-- TMPL_VAR NAME="libopac" escape=HTML -->" size="80" maxlength="100"></p>
71                 <p><label>Répétable</label><!-- TMPL_VAR NAME="repeatable" --></p>
72                 <p><label>Obligatoire</label><!-- TMPL_VAR NAME="mandatory" --></p>
73                 <p><label>Valeur autorisée</label><!-- TMPL_VAR NAME="authorised_value" --> (si vous sélectionnez une valeur ici, les informations seront limitées à la liste des valeurs autorisées)</p>
74                 <p><label>&nbsp;</label><input type="button" value="OK" class="button" onclick="Check(this.form)"></p>
75         </form>
76 <!-- /TMPL_IF -->
77
78
79 <!-- TMPL_IF NAME="delete_confirm" -->
80 <!-- ------------------------------------------------------------------------ -->
81 <table>
82         <tr>
83                 <td>Champ</td>
84                 <td><!-- TMPL_VAR NAME="searchfield" --></td>
85         </tr>
86         <tr><td>&nbsp;</td><td><!-- TMPL_VAR NAME="liblibrarian" --></td></tr>
87         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="op" value="delete_confirmed"><input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->"><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
88         <tr><td colspan="2" align="center">CONFIRMEZ SUPPRESSION</td></tr>
89         <tr><td><input type="submit" value="OUI"></form></td><td><form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="NON"></form></td></tr>
90 <!-- /TMPL_IF -->
91
92 <!-- TMPL_IF NAME="delete_confirmed" -->
93 <!-- ------------------------------------------------------------------------ -->
94         Donnée supprimée
95         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
96         <input type="submit" value="OK">
97         </form>
98 <!-- /TMPL_IF -->
99 <!-- TMPL_IF NAME="framework_create" -->
100 <!-- ------------------------------------------------------------------------ -->
101         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
102                 <input type="hidden" name="op" value="framework_create_confirm">
103                 <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
104                 Créer une grille d'autorité pour <!-- TMPL_VAR NAME="frameworkcode" --> (<!-- TMPL_VAR NAME="frameworktext" -->) à partir de
105                 <select name="existingframeworkcode">
106                         <option value="">Par défaut</option>
107                 <!-- TMPL_LOOP NAME="existingframeworkloop" -->
108                         <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="frameworktext" --></option>
109                 <!-- /TMPL_LOOP -->
110                 </select>
111                 <input type="submit" value="OK" class="button">
112         </form>
113 <!-- /TMPL_IF -->
114
115 <!-- ------------------------------------------------------------------------ -->
116 <!-- TMPL_IF NAME="else" -->
117 <div id="bloc25">
118 <h2 class="parameters">Sélectionner une grille</h2>
119 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
120         <select name="frameworkcode">
121                 <option value="">Par défaut</option>
122         <!-- TMPL_LOOP NAME="frameworkloop" -->
123                 <option value="<!-- TMPL_VAR NAME="value" -->" <!-- TMPL_IF NAME="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR NAME="frameworktext" --></option>
124         <!-- /TMPL_LOOP -->
125         </select>
126         <input type="text" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->">
127         <input type="submit" value="OK" class="button">
128 </form>
129 <b>REMARQUE : Si vous changez le lien entre un sous-champ MARC et un champ "non-MARC", demandez à votre administrateur de lancer le script misc/ rebuildnonmarc.pl</b>
130 </div>
131 <div id="bloc100">
132         <table>
133         <tr>
134                 <th>Etiquette</th>
135                 <th>Texte</th>
136                 <th>Répétable</th>
137                 <th>Obligatoire</th>
138                 <th>Autorisé<br />valeur</th>
139                 <th>Sous-champs</th>
140                 <th>Editer</th>
141                 <th>Supprimer</th>
142         <!-- TMPL_LOOP NAME="loop" -->
143         <tr valign="top" bgcolor="<!-- TMPL_VAR NAME="bgcolor" -->">
144                 <td><b><!-- TMPL_VAR NAME="tagfield" --></b></td>
145                 <td><!-- TMPL_VAR NAME="liblibrarian" --></td>
146                 <td><!-- TMPL_IF NAME="repeatable" -->Oui<!-- TMPL_ELSE -->Non<!-- /TMPL_IF --></td>
147                 <td><!-- TMPL_IF NAME="mandatory" -->Oui<!-- TMPL_ELSE -->Non<!-- /TMPL_IF --></td>
148                 <td><!-- TMPL_VAR NAME="authorised_value" --></td>
149                 <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->" class="button">sous-champs</a></td>
150                 <td><a href="<!-- TMPL_VAR NAME="edit" -->"><img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/fileopen.png"  width="32" hspace="0" vspace="0" border="0"></a></td>
151                 <td><a href="<!-- TMPL_VAR NAME="delete" -->"><img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/edittrash.png" width="32" hspace="0" vspace="0" border="0"></a></td>
152         </tr>
153         <!-- /TMPL_LOOP -->
154         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
155         <input type="hidden" name="op" value="add_form">
156         </table>
157         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
158                 <input type="hidden" name="op" value="add_form">
159         <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->">
160                 <input type="submit" class="button" value="Ajouter un champ" title="Ajouter un champ" alt="Ajouter un champ">
161                 <!-- TMPL_IF NAME="isprevpage" -->
162                         <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="prevpage" -->&amp;searchfield=<!-- TMPL_VAR NAME="searchfield" -->">
163                         <input type="image" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/1leftarrow.png" title="précédent" alt="précédent" border="0">
164                         </a>
165                 <!-- /TMPL_IF -->
166                 <!-- TMPL_IF NAME="nextpage" -->
167                         <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="nextpage" -->&amp;searchfield=<!-- TMPL_VAR NAME="searchfield" -->">
168                                 <input type="image" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/1rightarrow.png" title="suivant" alt="suivant" border="0">
169                         </a>
170                 <!-- /TMPL_IF -->
171         </form>
172 </div>
173 <!-- /TMPL_IF -->
174 </div>
175 <!-- TMPL_INCLUDE NAME="parameters-bottom.inc" -->