Bug 13914 : Fix UNION in SQL request for reserves statistics
[koha.git] / reports / catalogue_out.pl
index a4e40a9..73595f4 100755 (executable)
@@ -24,7 +24,6 @@ use CGI qw ( -utf8 );
 use C4::Auth;
 use C4::Context;
 use C4::Debug;
-use C4::Branch;    # GetBranchesLoop
 use C4::Output;
 use C4::Koha;      # GetItemTypes
 # use Date::Manip;  # TODO: add not borrowed since date X criteria
@@ -40,7 +39,7 @@ my $input   = new CGI;
 my $do_it   = $input->param('do_it');
 my $limit   = $input->param("Limit") || 10;
 my $column  = $input->param("Criteria");
-my @filters = $input->param("Filter");
+my @filters = $input->multi_param("Filter");
 
 my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
     {
@@ -65,20 +64,19 @@ if ($do_it) {
 my $itemtypes = GetItemTypes();
 my @itemtypeloop;
 foreach (
-    sort { $itemtypes->{$a}->{'description'} cmp $itemtypes->{$b}->{'description'} }
+    sort { $itemtypes->{$a}->{translated_description} cmp $itemtypes->{$b}->{translated_description} }
     keys %$itemtypes
   )
 {
     push @itemtypeloop,
       {
         value       => $_,
-        description => $itemtypes->{$_}->{'description'},
+        description => $itemtypes->{$_}->{translated_description},
       };
 }
 
 $template->param(
     itemtypeloop => \@itemtypeloop,
-    branchloop   => GetBranchesLoop(),
 );
 output_html_with_http_headers $input, $cookie, $template->output;