2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>UNIMARC field 123e builder</title>
4 [% INCLUDE 'doc-head-close.inc' %]
6 <body id="cat_unimarc_field_123e" class="cat" style="padding:1em;">
7 <h3>UNIMARC field 123e builder</h3>
8 <form name="f_pop" action="">
11 <td><label for="f1">Hemisphere:</label></td>
13 <select name="f1" id="f1" size="1">
16 <option value="w" selected="selected">west</option>
18 <option value="w">west</option>
21 <option value="e" selected="selected">east</option>
23 <option value="e">east</option>
26 <option value="n" selected="selected">north</option>
28 <option value="n">north</option>
31 <option value="s" selected="selected">south</option>
33 <option value="s">south</option>
38 <tr> <td><label for="f2">Degree (complete with 0):</label></td>
39 <td><input type="text" name="f2" id="f2" maxlength="3" size="4" value="[% f2 | html %]" /></td>
41 <tr> <td><label for="f3">Minute (complete with 0):</label></td>
42 <td><input type="text" name="f3" id="f3" maxlength="2" size="3" value="[% f3 | html %]" /></td>
44 <tr> <td><label for="f4">Second (complete with 0):</label></td>
45 <td><input type="text" name="f4" id="f4" maxlength="2" size="3" value="[% f4 | html %]" /></td>
48 <fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
51 [% MACRO jsinclude BLOCK %]
52 <script type="text/javascript">
54 document.f_pop.f2.value=document.f_pop.f2.value+' ';
55 document.f_pop.f3.value=document.f_pop.f3.value+' ';
56 document.f_pop.f4.value=document.f_pop.f4.value+' ';
57 document.f_pop.f2.value=document.f_pop.f2.value.substring(0,3);
58 document.f_pop.f3.value=document.f_pop.f3.value.substring(0,2);
59 document.f_pop.f4.value=document.f_pop.f4.value.substring(0,2);
61 var doc = opener.document;
62 var field = doc.getElementById("[% index | html %]");
64 field.value = document.f_pop.f1.value+document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value;
71 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]