ca0fe80f2d887c46a17c4d0d435034619719647b
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / value_builder / unimarc_field_123e.tt
1 [% SET footerjs = 1 %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>UNIMARC field 123e builder</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6 <body id="cat_unimarc_field_123e" class="cat" style="padding:1em;">
7 <h1>UNIMARC field 123e builder</h1>
8 <form name="f_pop" action="">
9 <table>
10         <tr>
11                 <td><label for="f1">Hemisphere:</label></td>
12                 <td>
13             <select name="f1" id="f1">
14             
15                         [% IF ( f1w ) %]
16                                 <option value="w" selected="selected">west</option>
17                         [% ELSE %]
18                                 <option value="w">west</option>
19                         [% END %]
20                         [% IF ( f1e ) %]
21                                 <option value="e" selected="selected">east</option>
22                         [% ELSE %]
23                                 <option value="e">east</option>
24                         [% END %]
25                         [% IF ( f1n ) %]
26                                 <option value="n" selected="selected">north</option>
27                         [% ELSE %]
28                                 <option value="n">north</option>
29                         [% END %]
30                         [% IF ( f1s ) %]
31                                 <option value="s" selected="selected">south</option>
32                         [% ELSE %]
33                                 <option value="s">south</option>
34                         [% END %]
35                         </select>
36                 </td></tr>
37
38 <tr>          <td><label for="f2">Degree (complete with 0):</label></td>
39                          <td><input type="text" name="f2" id="f2" maxlength="3" size="4" value="[% f2 | html %]" /></td>
40 </tr>
41 <tr>          <td><label for="f3">Minute (complete with 0):</label></td>
42                          <td><input type="text" name="f3" id="f3" maxlength="2" size="3" value="[% f3 | html %]" /></td>
43 </tr>
44 <tr>          <td><label for="f4">Second (complete with 0):</label></td>
45                          <td><input type="text" name="f4" id="f4" maxlength="2" size="3" value="[% f4 | html %]" /></td>
46 </tr>
47 </table>
48 <fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
49 </form>
50
51 [% MACRO jsinclude BLOCK %]
52     <script>
53         function report() {
54             document.f_pop.f2.value=document.f_pop.f2.value+'   ';
55             document.f_pop.f3.value=document.f_pop.f3.value+'  ';
56             document.f_pop.f4.value=document.f_pop.f4.value+'  ';
57             document.f_pop.f2.value=document.f_pop.f2.value.substring(0,3);
58             document.f_pop.f3.value=document.f_pop.f3.value.substring(0,2);
59             document.f_pop.f4.value=document.f_pop.f4.value.substring(0,2);
60
61             var doc   = opener.document;
62             var field = doc.getElementById("[% index | html %]");
63
64             field.value =  document.f_pop.f1.value+document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value;
65             window.close();
66             return false;
67         }
68     </script>
69 [% END %]
70
71 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]