merging 2.2 branch with head. Sorry for not making it before, many many commits done...
[koha.git] / koha-tmpl / intranet-tmpl / default / es / value_builder / unimarc_field_100.tmpl
1 <html>
2 <head>
3 <title>UNIMARC Field 100 builder</title>
4 </head>
5 <body>
6 <form name="f_pop" onSubmit="javascript:report()">
7 <table>
8         <tr>
9                 <td>Date d'enregistrement </td>
10                 <td><input type="text" name="f1" maxlength=8 size=8 value="<TMPL_VAR name="f1">"></td>
11         </tr>
12         <tr>
13                 <td>Code date publication </td><td><select name="f2" size="1">
14                 <option value="a" <TMPL_IF name="f2a">SELECTED</TMPL_IF>>périodique en cours</option>
15                         <option value="b" <TMPL_IF name="f2b">SELECTED</TMPL_IF>>périodique mort</option>
16                         <option value="c" <TMPL_IF name="f2c">SELECTED</TMPL_IF>>périodique d'état inconnu</option>
17                         <option value="d" <TMPL_IF name="f2d">SELECTED</TMPL_IF>>monographie complète</option>
18                         <option value="e" <TMPL_IF name="f2e">SELECTED</TMPL_IF>>reproduction</option>
19                         </select>
20                 </td>
21         </tr>
22         <tr>
23                 <td>Année début</td>
24                 <td><input type="text" name="f3" maxlength=4 size=5 value="<TMPL_VAR name="f3">"></td>
25         </tr>
26         <tr>
27         <td>Année fin</td>
28         <td><input type="text" name="f4" maxlength=4 size=5 value="<TMPL_VAR name="f4">"></td>
29         </tr>
30         <tr><td colspan=2><input type="submit" value="OK"></td></tr>
31 </table>
32 </form>
33 <script>
34         function report() {
35                 document.f_pop.f1.value=document.f_pop.f1.value+'        ';
36                 document.f_pop.f3.value=document.f_pop.f3.value+'    ';
37                 document.f_pop.f4.value=document.f_pop.f4.value+'    ';
38                 document.f_pop.f1.value=document.f_pop.f1.value.substring(0,8);
39                 document.f_pop.f3.value=document.f_pop.f3.value.substring(0,4);
40                 document.f_pop.f4.value=document.f_pop.f4.value.substring(0,4);
41
42                 opener.document.f.field_value[<TMPL_VAR name="index">].value= document.f_pop.f1.value + document.f_pop.f2.value +document.f_pop.f3.value +document.f_pop.f4.value;
43                 self.close();
44                 return false;
45         }
46 </script>
47 </body>
48 </html>