[Koha-patches] [PATCH] Correcting code to pass total number of hits returned to the template.

Chris Nighswonger cnighswonger at foundations.edu
Mon Apr 14 14:33:08 CEST 2008


---
 labels/label-item-search.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/labels/label-item-search.pl b/labels/label-item-search.pl
index 3da74f5..4bd4a5a 100755
--- a/labels/label-item-search.pl
+++ b/labels/label-item-search.pl
@@ -182,7 +182,7 @@ if ( $show_results ) {
         startfromnext  => $startfrom + min( $resultsperpage, scalar @results ),
         startfromprev  => max( $startfrom - $resultsperpage, 0 ),
         searchdata     => \@field_data,
-        total          => $total,
+        total          => (scalar @results),
         from           => $startfrom + 1,
         to             => $startfrom + min( $resultsperpage, scalar @results ),
         numbers        => \@numbers,
-- 
1.5.3.7




More information about the Koha-patches mailing list