2 [% PROCESS 'i18n.inc' %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>[% FILTER collapse %]
6 [% t("UNIMARC field 123d builder") | html %] ›
7 [% t("Cataloguing") | html %] ›
10 [% INCLUDE 'doc-head-close.inc' %]
12 <body id="cat_unimarc_field_123d" class="cat" style="padding:1em;">
13 <h1>UNIMARC field 123d builder</h1>
14 <div class="page-section">
15 <form name="f_pop" action="">
18 <td><label for="f1">Hemisphere:</label></td>
20 <select name="f1" id="f1">
23 <option value="w" selected="selected">west</option>
25 <option value="w">west</option>
28 <option value="e" selected="selected">east</option>
30 <option value="e">east</option>
33 <option value="n" selected="selected">north</option>
35 <option value="n">north</option>
38 <option value="s" selected="selected">south</option>
40 <option value="s">south</option>
45 <tr><td><label for="f2">Degree (complete with 0):</label></td>
46 <td><input type="text" name="f2" id="f2" maxlength="3" size="4" value="[% f2 | html %]" /></td>
48 <tr><td><label for="f3">Minute (complete with 0):</label></td>
49 <td><input type="text" name="f3" id="f3" maxlength="2" size="3" value="[% f3 | html %]" /></td>
51 <tr><td><label for="f4">Second (complete with 0):</label></td>
52 <td><input type="text" name="f4" id="f4" maxlength="2" size="3" value="[% f4 | html %]" /></td>
55 <fieldset class="action"><input type="button" class="btn btn-primary" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
57 </div> <!-- /.page-section -->
59 [% MACRO jsinclude BLOCK %]
62 document.f_pop.f2.value=document.f_pop.f2.value+' ';
63 document.f_pop.f3.value=document.f_pop.f3.value+' ';
64 document.f_pop.f4.value=document.f_pop.f4.value+' ';
65 document.f_pop.f2.value=document.f_pop.f2.value.substring(0,3);
66 document.f_pop.f3.value=document.f_pop.f3.value.substring(0,2);
67 document.f_pop.f4.value=document.f_pop.f4.value.substring(0,2);
69 var doc = opener.document;
70 var field = doc.getElementById("[% index | html %]");
71 field.value = document.f_pop.f1.value+document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value;
78 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]