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