X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=cataloguing%2Fvalue_builder%2Funimarc_field_123i.pl;h=159caae85b2a25191c9e8ad1eaac5ab8fffae1f1;hb=03890c90ac41f66b2de04d0280e2e96a0d2e8be8;hp=989b5f506e438855bebb48511675d08717a6f112;hpb=f8e9fb6445dadbdef91e13a253c9c6bcb75e0eec;p=srvgit diff --git a/cataloguing/value_builder/unimarc_field_123i.pl b/cataloguing/value_builder/unimarc_field_123i.pl index 989b5f506e..159caae85b 100755 --- a/cataloguing/value_builder/unimarc_field_123i.pl +++ b/cataloguing/value_builder/unimarc_field_123i.pl @@ -1,6 +1,5 @@ #!/usr/bin/perl -# $Id$ # Copyright 2000-2002 Katipo Communications # @@ -15,11 +14,12 @@ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along with -# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place, -# Suite 330, Boston, MA 02111-1307 USA +# You should have received a copy of the GNU General Public License along +# with Koha; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. use strict; +#use warnings; FIXME - Bug 2505 use C4::Auth; use CGI; use C4::Context; @@ -39,7 +39,7 @@ return ""; sub plugin_javascript { my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_; -my $function_name= "123i".(int(rand(100000))+1); +my $function_name= $field_number; my $res=" @@ -62,9 +62,6 @@ return ($function_name,$res); } sub plugin { my ($input) = @_; - my %env; - -# my $input = new CGI; my $index= $input->param('index'); my $result= $input->param('result'); @@ -76,7 +73,7 @@ my ($template, $loggedinuser, $cookie) query => $input, type => "intranet", authnotrequired => 0, - flagsrequired => {editcatalogue => 1}, + flagsrequired => {editcatalogue => '*'}, debug => 1, }); my $f1 = substr($result,0,1); @@ -88,7 +85,7 @@ my ($template, $loggedinuser, $cookie) f2 => $f2, f3 => $f3, f4 => $f4); - print $input->header(-cookie => $cookie),$template->output; + output_html_with_http_headers $input, $cookie, $template->output; } 1;