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_128b.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_128b\",'width=1000,height=375,toolbar=false,scrollbars=yes'); |
38 |
const id = event.data.id; |
|
|
39 |
defaultvalue=document.getElementById(id).value; |
40 |
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_128b.pl&index=\" + id + \"&result=\"+defaultvalue,\"unimarc_field_128b\",'width=1000,height=375,toolbar=false,scrollbars=yes'); |
39 |
|
41 |
|
40 |
} |
42 |
} |
41 |
</script> |
43 |
</script> |
42 |
- |
|
|