Bug 13268: the size should not be emptied in pl script
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 11 Dec 2014 08:50:38 +0000 (09:50 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 5 Feb 2015 17:46:41 +0000 (14:46 -0300)
It duplicates what the first patch does.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>

cataloguing/addbooks.pl

index 1ed4307..54a1208 100755 (executable)
@@ -95,9 +95,6 @@ if ($query) {
     # SimpleSearch() give the results per page we want, so 0 offet here
     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,