|
Line 0
Link Here
|
| 0 |
- |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
|
|
2 |
<title>UNIMARC field 123i/j builder</title> |
| 3 |
[% INCLUDE 'doc-head-close.inc' %] |
| 4 |
</head> |
| 5 |
<body id="cat_unimarc_field_123ij" class="cat" style="padding:1em;"> |
| 6 |
<h3>UNIMARC field 123i/j builder</h3> |
| 7 |
<form name="f_pop" action=""> |
| 8 |
<table> |
| 9 |
<tr> |
| 10 |
<td><label for="f1">Hemisphere:</label></td> |
| 11 |
<td> |
| 12 |
<select name="f1" id="f1" size="1"> |
| 13 |
|
| 14 |
[% IF ( f1n ) %] |
| 15 |
<option value="+" selected="selected">north</option> |
| 16 |
[% ELSE %] |
| 17 |
<option value="+">north</option> |
| 18 |
[% END %] |
| 19 |
[% IF ( f1s ) %] |
| 20 |
<option value="-" selected="selected">south</option> |
| 21 |
[% ELSE %] |
| 22 |
<option value="-">south</option> |
| 23 |
[% END %] |
| 24 |
</select> |
| 25 |
</td></tr> |
| 26 |
|
| 27 |
<tr> <td><label for="f2">Degree (complete with 0):</label></td> |
| 28 |
<td><input type="text" name="f2" id="f2" maxlength="3" size="4" value="[% f2 %]" /></td> |
| 29 |
</tr> |
| 30 |
<tr> <td><label for="f3">Minute (complete with 0):</label></td> |
| 31 |
<td><input type="text" name="f3" id="f3" maxlength="2" size="3" value="[% f3 %]" /></td> |
| 32 |
</tr> |
| 33 |
<tr> <td><label for="f4">Second (complete with 0):</label></td> |
| 34 |
<td><input type="text" name="f4" id="f4" maxlength="2" size="3" value="[% f4 %]" /></td> |
| 35 |
</tr> |
| 36 |
</table> |
| 37 |
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset> |
| 38 |
</form> |
| 39 |
<script type="text/javascript"> |
| 40 |
//<![CDATA[ |
| 41 |
function report() { |
| 42 |
document.f_pop.f2.value=document.f_pop.f2.value+' '; |
| 43 |
document.f_pop.f3.value=document.f_pop.f3.value+' '; |
| 44 |
document.f_pop.f4.value=document.f_pop.f4.value+' '; |
| 45 |
document.f_pop.f2.value=document.f_pop.f2.value.substring(0,3); |
| 46 |
document.f_pop.f3.value=document.f_pop.f3.value.substring(0,2); |
| 47 |
document.f_pop.f4.value=document.f_pop.f4.value.substring(0,2); |
| 48 |
|
| 49 |
var doc = opener.document; |
| 50 |
var field = doc.getElementById("[% index %]"); |
| 51 |
|
| 52 |
field.value = document.f_pop.f1.value+document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value; |
| 53 |
window.close(); |
| 54 |
return false; |
| 55 |
} |
| 56 |
//]]> |
| 57 |
</script> |
| 58 |
|
| 59 |
[% INCLUDE 'popup-bottom.inc' %] |