Bug 2780 - Capitalize strings consistently (Cataloging plugins)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / value_builder / unimarc_field_127.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>UNIMARC field 127 builder</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5 <body id="cat_unimarc_field_127" class="cat" style="padding:1em;">
6 <h3>UNIMARC field 127 builder</h3>
7 <form name="f_pop" action="">
8 <table>
9 <tr><th colspan="9">(Complete with 0 on the left)</th></tr>
10 <tr>          <td><label for="f1">Hours:</label></td>
11                          <td><input type="text" name="f1" id="f1" maxlength="2"
12                          size="3"
13                    value="[% f1 %]" /></td>
14           <td><label for="f2">Minutes:</label></td>
15                          <td><input type="text" name="f2" id="f2" maxlength="2"
16                          size="3"
17                    value="[% f2 %]" /></td>
18           <td><label for="f3">Seconds:</label></td>
19                          <td><input type="text" name="f3" id="f3" maxlength="2"
20                          size="3"
21                    value="[% f3 %]" /></td>
22 </tr>
23 </table>
24 <fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
25 </form>
26 <script type="text/javascript">
27 //<![CDATA[
28         function report() {
29 document.f_pop.f1.value=document.f_pop.f1.value+'   ';
30 document.f_pop.f2.value=document.f_pop.f2.value+'  ';
31 document.f_pop.f3.value=document.f_pop.f3.value+'  ';
32
33
34
35 document.f_pop.f1.value=document.f_pop.f1.value.substring(0,2);
36 document.f_pop.f2.value=document.f_pop.f2.value.substring(0,2);
37 document.f_pop.f3.value=document.f_pop.f3.value.substring(0,2);
38
39
40                 var doc   = opener.document; 
41             var field = doc.getElementById("[% index %]");
42         
43             field.value =  document.f_pop.f1.value+document.f_pop.f2.value+document.f_pop.f3.value;
44                 self.close();
45                 return false;
46         }
47 //]]>
48 </script>
49
50 [% INCLUDE 'popup-bottom.inc' %]