Bug 13941: [2/2] Fix <body> tags missing id/class
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / value_builder / unimarc_field_123i_j.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>UNIMARC field 123i/j builder</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5 <body id="cat_unimarc_field_123ij" class="cat" style="padding:1em;">
6 <h3>UNIMARC field 123i/j builder</h3>
7 <form name="f_pop" action="">
8 <table>
9     <tr>
10         <td><label for="f1">Hemisphere:</label></td>
11         <td>
12             <select name="f1" id="f1" size="1">
13
14             [% IF ( f1n ) %]
15                 <option value="+" selected="selected">north</option>
16             [% ELSE %]
17                 <option value="+">north</option>
18             [% END %]
19             [% IF ( f1s ) %]
20                 <option value="-" selected="selected">south</option>
21             [% ELSE %]
22                 <option value="-">south</option>
23             [% END %]
24             </select>
25         </td></tr>
26
27 <tr>          <td><label for="f2">Degree (complete with 0):</label></td>
28                          <td><input type="text" name="f2" id="f2" maxlength="3" size="4" value="[% f2 %]" /></td>
29 </tr>
30 <tr>          <td><label for="f3">Minute (complete with 0):</label></td>
31                          <td><input type="text" name="f3" id="f3" maxlength="2" size="3" value="[% f3 %]" /></td>
32 </tr>
33 <tr>          <td><label for="f4">Second (complete with 0):</label></td>
34                          <td><input type="text" name="f4" id="f4" maxlength="2" size="3" value="[% f4 %]" /></td>
35 </tr>
36 </table>
37 <fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
38 </form>
39 <script type="text/javascript">
40 //<![CDATA[
41     function report() {
42         var f2= "000" + document.f_pop.f2.value;
43         f2 = f2.substring(f2.length-3);
44         var f3= "00" + document.f_pop.f3.value;
45         f3 = f3.substring(f3.length-2);
46         var f4= "00" + document.f_pop.f4.value;
47         f4 = f4.substring(f4.length-2);
48         var doc   = opener.document;
49         var field = doc.getElementById("[% index %]");
50         field.value =  document.f_pop.f1.value+ f2 + f3 + f4;
51         window.close();
52         return false;
53     }
54 //]]>
55 </script>
56
57 [% INCLUDE 'popup-bottom.inc' %]