1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>UNIMARC field 123i/j builder</title>
3 [% INCLUDE 'doc-head-close.inc' %]
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="">
10 <td><label for="f1">Hemisphere:</label></td>
12 <select name="f1" id="f1" size="1">
15 <option value="+" selected="selected">north</option>
17 <option value="+">north</option>
20 <option value="-" selected="selected">south</option>
22 <option value="-">south</option>
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>
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>
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>
37 <fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
39 <script type="text/javascript">
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;
57 [% INCLUDE 'popup-bottom.inc' %]