Plugin for field 123d

This commit is contained in:
doxulting 2005-06-02 15:42:54 +00:00
parent 5278870c27
commit 6efb7f7bf4

View file

@ -39,7 +39,7 @@ return "";
sub plugin_javascript {
my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_;
my $function_name= "123g".(int(rand(100000))+1);
my $function_name= "123d".(int(rand(100000))+1);
my $res="
<script>
function Focus$function_name(subfield_managed) {
@ -52,7 +52,7 @@ function Blur$function_name(subfield_managed) {
function Clic$function_name(i) {
defaultvalue=document.forms[0].field_value[i].value;
newin=window.open(\"../plugin_launcher.pl?plugin_name=unimarc_field_123g.pl&index=\"+i+\"&result=\"+defaultvalue,\"unimarc field 123g\",'width=1000,height=375,toolbar=false,scrollbars=yes');
newin=window.open(\"../plugin_launcher.pl?plugin_name=unimarc_field_123d.pl&index=\"+i+\"&result=\"+defaultvalue,\"unimarc field 123d\",'width=800,height=400,toolbar=false,scrollbars=yes');
}
</script>
@ -72,7 +72,7 @@ my ($input) = @_;
my $dbh = C4::Context->dbh;
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "value_builder/unimarc_field_123g.tmpl",
= get_template_and_user({template_name => "value_builder/unimarc_field_123d.tmpl",
query => $input,
type => "intranet",
authnotrequired => 0,