From dde8191aa5c92390d2c14f4481b8143cce9204ef Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Wed, 3 Feb 2010 19:34:58 +0000 Subject: [PATCH] Bug 3808 Display correct number of records in neworderbiblio screen New version of patch to apply against 3.2alpha Also remove related FIXME message that was displaying to the user Signed-off-by: Galen Charlton --- acqui/neworderbiblio.pl | 14 +++++--------- .../prog/en/modules/acqui/neworderbiblio.tmpl | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/acqui/neworderbiblio.pl b/acqui/neworderbiblio.pl index 471af4a3b1..1bb8c672ba 100755 --- a/acqui/neworderbiblio.pl +++ b/acqui/neworderbiblio.pl @@ -107,19 +107,15 @@ if (defined $error) { my @results; if ($marcresults) { - foreach my $i ( 0 .. scalar @$marcresults ) { - my %resultsloop; - my $marcrecord = MARC::File::USMARC::decode( $marcresults->[$i] ); + foreach my $result ( @{$marcresults} ) { + my $marcrecord = MARC::File::USMARC::decode( $result ); my $biblio = TransformMarcToKoha( C4::Context->dbh, $marcrecord, '' ); - #build the hash for the template. - %resultsloop = %$biblio; - $resultsloop{highlight} = ( $i % 2 ) ? (1) : (0); - $resultsloop{booksellerid} = $booksellerid; - push @results, \%resultsloop; + $biblio->{booksellerid} = $booksellerid; + push @results, $biblio; + } } - $template->param( basketno => $basketno, booksellerid => $bookseller->{'id'}, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderbiblio.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderbiblio.tmpl index 6fa0229140..e8ef0eb083 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderbiblio.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderbiblio.tmpl @@ -19,7 +19,7 @@ -results found, FIXME:: pagenum count is wrong!!! +results found

No results found

-- 2.39.2