1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7 <title>UNIMARC_Field 122 builder</title>
13 <td>Era identifier</td>
15 <select name="f1" size="1">
16 <!-- TMPL_IF name="f1c" -->
17 <option value="c" SELECTED> date falls before the year 1 in the Gregorian calendar, i.e. B.C.</option>
19 <option value="c"> date falls before the year 1 in the Gregorian calendar, i.e. B.C.</option>
21 <!-- TMPL_IF name="f1d" -->
22 <option value="d" SELECTED>date falls after the year 1 in the Gregorian calendar, i.e. A.D.</option>
24 <option value="d">date falls after the year 1 in the Gregorian calendar, i.e. A.D.</option>
32 <td><input type="text" name="f2" maxlength=4 size=5
33 value="<!-- TMPL_VAR name="f2" -->">
37 <td><input type="text" name="f3" maxlength=2
39 value="<!-- TMPL_VAR name="f3" -->"></td>
41 <td><input type="text" name="f4" maxlength=2
43 value="<!-- TMPL_VAR name="f4" -->"></td>
46 <td><input type="text" name="f5" maxlength=2
48 value="<!-- TMPL_VAR name="f5" -->"></td>
51 <tr><td colspan=2><input type="button" value="OK" onclick="javascript:report()"></td></tr>
54 <script type="text/javascript">
56 document.f_pop.f2.value=document.f_pop.f2.value+' ';
57 document.f_pop.f3.value=document.f_pop.f3.value+' ';
58 document.f_pop.f4.value=document.f_pop.f4.value+' ';
59 document.f_pop.f5.value=document.f_pop.f5.value+' ';
60 document.f_pop.f2.value=document.f_pop.f2.value.substring(0,4);
61 document.f_pop.f3.value=document.f_pop.f3.value.substring(0,2);
62 document.f_pop.f4.value=document.f_pop.f4.value.substring(0,2);
63 document.f_pop.f5.value=document.f_pop.f5.value.substring(0,2);
65 var doc = opener.document;
66 var field = doc.getElementById("<!-- TMPL_VAR NAME='index'-->");
68 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 ;