Lines 33-41
sub plugin_javascript {
Link Here
|
33 |
my ($dbh,$record,$tagslib,$field_number) = @_; |
33 |
my ($dbh,$record,$tagslib,$field_number) = @_; |
34 |
my $res=" |
34 |
my $res=" |
35 |
<script> |
35 |
<script> |
36 |
function Clic$field_number() { |
36 |
function Clic$field_number(ev) { |
37 |
defaultvalue=document.getElementById(\"$field_number\").value; |
37 |
ev.preventDefault(); |
38 |
window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_110.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_110\",'width=700,height=600,toolbar=false,scrollbars=yes'); |
38 |
defaultvalue=document.getElementById(ev.data.id).value; |
|
|
39 |
window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_110.pl&index=\" + ev.data.id + \"&result=\"+defaultvalue,\"unimarc_field_110\",'width=700,height=600,toolbar=false,scrollbars=yes'); |
39 |
|
40 |
|
40 |
} |
41 |
} |
41 |
</script> |
42 |
</script> |
42 |
- |
|
|