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

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

Return to bug 32826