X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=cataloguing%2Fvalue_builder%2Funimarc_field_106.pl;h=bf2573bb70a832b7cf9e674182fa47f08bdf216a;hb=9f41fe64beb579dd6edd0a7ad81aee96e474a842;hp=bdda256c2423041220be20b2ba16aecdc64b4ce9;hpb=f8e9fb6445dadbdef91e13a253c9c6bcb75e0eec;p=koha.git diff --git a/cataloguing/value_builder/unimarc_field_106.pl b/cataloguing/value_builder/unimarc_field_106.pl index bdda256c24..bf2573bb70 100755 --- a/cataloguing/value_builder/unimarc_field_106.pl +++ b/cataloguing/value_builder/unimarc_field_106.pl @@ -1,6 +1,5 @@ #!/usr/bin/perl -# $Id$ # Copyright 2000-2002 Katipo Communications # @@ -42,47 +41,43 @@ my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_; my $function_name= "106".(int(rand(100000))+1); my $res=" "; -return ($function_name,$res); +return ($field_number,$res); } sub plugin { my ($input) = @_; - my %env; - -# my $input = new CGI; my $index= $input->param('index'); my $result= $input->param('result'); -warn ("Je suis quand meme ici\n"); my $dbh = C4::Context->dbh; my ($template, $loggedinuser, $cookie) = get_template_and_user({template_name => "cataloguing/value_builder/unimarc_field_106.tmpl", query => $input, type => "intranet", authnotrequired => 0, - flagsrequired => {editcatalogue => 1}, + flagsrequired => {editcatalogue => '*'}, debug => 1, }); my $f1 = substr($result,0,1); $template->param(index => $index, "f1$f1" => $f1 ); - print $input->header(-cookie => $cookie),$template->output; + output_html_with_http_headers $input, $cookie, $template->output; } 1;