1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>UNIMARC field 123d builder</title>
3 [% INCLUDE 'doc-head-close.inc' %]
5 <body id="cat_unimarc_field_123d" class="cat" style="padding:1em;">
6 <h3>UNIMARC field 123d 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="w" selected="selected">west</option>
17 <option value="w">west</option>
20 <option value="e" selected="selected">east</option>
22 <option value="e">east</option>
25 <option value="n" selected="selected">north</option>
27 <option value="n">north</option>
30 <option value="s" selected="selected">south</option>
32 <option value="s">south</option>
37 <tr> <td><label for="f2">Degree (complete with 0):</label></td>
38 <td><input type="text" name="f2" id="f2" maxlength="3" size="4" value="[% f2 %]" /></td>
40 <tr> <td><label for="f3">Minute (complete with 0):</label></td>
41 <td><input type="text" name="f3" id="f3" maxlength="2" size="3" value="[% f3 %]" /></td>
43 <tr> <td><label for="f4">Second (complete with 0):</label></td>
44 <td><input type="text" name="f4" id="f4" maxlength="2" size="3" value="[% f4 %]" /></td>
47 <fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
49 <script type="text/javascript">
52 document.f_pop.f2.value=document.f_pop.f2.value+' ';
53 document.f_pop.f3.value=document.f_pop.f3.value+' ';
54 document.f_pop.f4.value=document.f_pop.f4.value+' ';
55 document.f_pop.f2.value=document.f_pop.f2.value.substring(0,3);
56 document.f_pop.f3.value=document.f_pop.f3.value.substring(0,2);
57 document.f_pop.f4.value=document.f_pop.f4.value.substring(0,2);
59 var doc = opener.document;
60 var field = doc.getElementById("[% index %]");
62 field.value = document.f_pop.f1.value+document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value;
69 [% INCLUDE 'popup-bottom.inc' %]