X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=reports%2Fcat_issues_top.pl;h=22b88ae017b368efaf243b54657663c2515994d8;hb=c4c5496ec656ee4745587b3cea239cc849d2c09a;hp=d07335e5246291fffb42a178f18bd13974a32e6f;hpb=f46abf8b909257a54c9e2c1fdd999ba30c7ac0ae;p=koha.git diff --git a/reports/cat_issues_top.pl b/reports/cat_issues_top.pl index d07335e524..22b88ae017 100755 --- a/reports/cat_issues_top.pl +++ b/reports/cat_issues_top.pl @@ -53,7 +53,6 @@ $filters[2]=format_date_in_iso($filters[2]); $filters[3]=format_date_in_iso($filters[3]); my $output = $input->param("output"); my $basename = $input->param("basename"); -my $mime = $input->param("MIME"); #warn "calcul : ".$calc; my ($template, $borrowernumber, $cookie) = get_template_and_user({template_name => $fullreportname, @@ -66,7 +65,6 @@ my ($template, $borrowernumber, $cookie) our $sep = $input->param("sep"); $sep = "\t" if ($sep eq 'tabulation'); $template->param(do_it => $do_it, - DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(), ); if ($do_it) { # Displaying results @@ -76,7 +74,7 @@ if ($do_it) { $template->param(mainloop => $results, limit => $limit); output_html_with_http_headers $input, $cookie, $template->output; - exit(1); + exit; } else { # Printing to a csv file print $input->header(-type => 'application/vnd.sun.xml.calc', @@ -109,7 +107,7 @@ if ($do_it) { print $sep.$col->{totalcol}; } print $sep.@$results[0]->{total}; - exit(1); + exit; } # Displaying choices } else { @@ -119,15 +117,10 @@ if ($do_it) { my %select; my $req; - my @mime = ( C4::Context->preference("MIME") ); -# foreach my $mime (@mime){ -# warn "".$mime; -# } - my $CGIextChoice=CGI::scrolling_list( -name => 'MIME', -id => 'MIME', - -values => \@mime, + -values => ['CSV'], # FIXME translation -size => 1, -multiple => 0 );