1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>UNIMARC Field 122 builder</title>
3 [% INCLUDE 'doc-head-close.inc' %]
5 <body style="padding:1em;">
6 <h3>UNIMARC Field 122 builder</h3>
7 <form name="f_pop" action="">
10 <td><label for="f1">Era identifier</label></td>
12 <select name="f1" id="f1" size="1">
14 <option value="c" selected="selected"> date falls before the year 1 in the Gregorian calendar, i.e. B.C.</option>
16 <option value="c"> date falls before the year 1 in the Gregorian calendar, i.e. B.C.</option>
19 <option value="d" selected="selected">date falls after the year 1 in the Gregorian calendar, i.e. A.D.</option>
21 <option value="d">date falls after the year 1 in the Gregorian calendar, i.e. A.D.</option>
28 <td><label for="f2">Year</label></td>
29 <td><input type="text" name="f2" id="f2" maxlength="4" size="5" value="[% f2 %]" />
32 <td><label for="f3">Month</label></td>
33 <td><input type="text" name="f3" id="f3" maxlength="2" size="3" value="[% f3 %]" /></td>
34 <td><label for="f4">Day</label></td>
35 <td><input type="text" name="f4" id="f4" maxlength="2" size="3" value="[% f4 %]" /></td>
36 <td><label for="f5">Time</label></td>
37 <td><input type="text" name="f5" id="f5" maxlength="2" size="3" value="[% f5 %]" /></td>
40 <fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
42 <script type="text/javascript">
45 document.f_pop.f2.value=document.f_pop.f2.value+' ';
46 document.f_pop.f3.value=document.f_pop.f3.value+' ';
47 document.f_pop.f4.value=document.f_pop.f4.value+' ';
48 document.f_pop.f5.value=document.f_pop.f5.value+' ';
49 document.f_pop.f2.value=document.f_pop.f2.value.substring(0,4);
50 document.f_pop.f3.value=document.f_pop.f3.value.substring(0,2);
51 document.f_pop.f4.value=document.f_pop.f4.value.substring(0,2);
52 document.f_pop.f5.value=document.f_pop.f5.value.substring(0,2);
54 var doc = opener.document;
55 var field = doc.getElementById("[% index %]");
57 field.value = document.f_pop.f1.value + document.f_pop.f2.value +document.f_pop.f3.value +document.f_pop.f4.value +document.f_pop.f5.value ;
64 [% INCLUDE 'popup-bottom.inc' %]