View | Details | Raw Unified | Return to bug 32833
Collapse All | Expand All

(-)a/cataloguing/value_builder/unimarc_field_121a.pl (-4 / +4 lines)
Lines 33-41 my ($dbh,$record,$tagslib,$field_number) = @_; Link Here
33
my $function_name= $field_number;
33
my $function_name= $field_number;
34
my $res="
34
my $res="
35
<script>
35
<script>
36
function Clic$function_name(i) {
36
function Clic$function_name(event) {
37
	defaultvalue=document.getElementById(\"$field_number\").value;
37
    event.preventDefault();
38
	newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_121a.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_121a\",'width=1210,height=750,toolbar=false,scrollbars=yes');
38
    defaultvalue=document.getElementById(event.data.id).value;
39
    newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_121a.pl&index=\" + event.data.id + \"&result=\"+defaultvalue,\"unimarc_field_121a\",'width=1210,height=750,toolbar=false,scrollbars=yes');
39
40
40
}
41
}
41
</script>
42
</script>
42
- 

Return to bug 32833