adding new input to marc21 plugins
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / value_builder / unimarc_field_123f.tmpl
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <html>
5 <head>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7 <title>UNIMARC_constructeur champ 123f</title>
8 </head>
9 <body>
10 <form name="f_pop">
11 <table>
12         <tr>
13                 <td>Hemisphere:</td>
14                 <td>
15                         <select name="f1" size="1">            
16                         <!-- TMPL_IF name="f1w" -->
17                                 <option value="w" SELECTED>Ouest</option>
18                         <!-- TMPL_ELSE -->
19                                 <option value="w">Ouest</option>
20                         <!-- /TMPL_IF -->
21                         <!-- TMPL_IF name="f1e" -->
22                                 <option value="e" SELECTED>Est</option>
23                         <!-- TMPL_ELSE -->
24                                 <option value="e">Est</option>
25                         <!-- /TMPL_IF -->
26                         <!-- TMPL_IF name="f1n" -->
27                                 <option value="n" SELECTED>Nord</option>
28                         <!-- TMPL_ELSE -->
29                                 <option value="n">Nord</option>
30                         <!-- /TMPL_IF -->
31                         <!-- TMPL_IF name="f1s" -->
32                                 <option value="s" SELECTED>Sud</option>
33                         <!-- TMPL_ELSE -->
34                                 <option value="s">Sud</option>
35                         <!-- /TMPL_IF -->
36                         </select>
37                 </td></tr>
38
39 <tr>          <td>Degres (completer avec des 0):</td>
40                          <td><input type="text" name="f2" maxlength=3
41                          size=4
42                    value="<!-- TMPL_VAR name="f2" -->"></td>
43 </tr>
44 <tr>          <td>Minutes (completer avec des 0):</td>
45                          <td><input type="text" name="f3" maxlength=2
46                          size=3
47                    value="<!-- TMPL_VAR name="f3" -->"></td>
48 </tr>
49 <tr>          <td>Secondes (completer avec des 0):</td>
50                          <td><input type="text" name="f4" maxlength=2
51                          size=3
52                    value="<!-- TMPL_VAR name="f4" -->"></td>
53 </tr>
54         <tr><td colspan=2><input type="button" value="OK"  onClick="javascript:report()"></td></tr>
55 </table>
56 </form>
57 <script type="text/javascript">
58     function report() {
59         document.f_pop.f2.value=document.f_pop.f2.value+'   ';
60         document.f_pop.f3.value=document.f_pop.f3.value+'  ';
61         document.f_pop.f4.value=document.f_pop.f4.value+'  ';
62         document.f_pop.f2.value=document.f_pop.f2.value.substring(0,3);
63         document.f_pop.f3.value=document.f_pop.f3.value.substring(0,2);
64         document.f_pop.f4.value=document.f_pop.f4.value.substring(0,2);
65
66         var doc   = opener.document; 
67         var field = doc.getElementById("<!-- TMPL_VAR NAME='index'-->");
68         field.value =  document.f_pop.f1.value+document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value;
69         window.close();
70         return false;
71     }
72 </script>
73 </body>
74 </html>