X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=cataloguing%2Faddbooks.pl;h=b768a29e877862b881ab7ec2ad7e7645fff7741c;hb=ceb81cfc5200341f1782c754df47516f1ed932af;hp=4c8a9898aba8593b7cb2e8c5867588cc55f94c44;hpb=b1ed3af63350d0d754fb309644b3d57be707041b;p=koha_gimpoz diff --git a/cataloguing/addbooks.pl b/cataloguing/addbooks.pl index 4c8a9898ab..b768a29e87 100755 --- a/cataloguing/addbooks.pl +++ b/cataloguing/addbooks.pl @@ -85,8 +85,11 @@ if ($query) { # format output # SimpleSearch() give the results per page we want, so 0 offet here - my $total = scalar @$marcresults; - my @newresults = searchResults( 'intranet', $query, $total, $results_per_page, 0, 0, @$marcresults ); + my $total = @{$marcresults}; + my @newresults = searchResults( 'intranet', $query, $total, $results_per_page, 0, 0, $marcresults ); + foreach my $line (@newresults) { + if ( not exists $line->{'size'} ) { $line->{'size'} = "" } + } $template->param( total => $total_hits, query => $query,