LP#1284864 correct TPAC metarecord list pagination
authorBill Erickson <berick@esilibrary.com>
Thu, 6 Mar 2014 21:40:31 +0000 (16:40 -0500)
committerMike Rylander <mrylander@gmail.com>
Mon, 10 Mar 2014 16:29:52 +0000 (12:29 -0400)
Set the template hit_count value for metarecord constituent records page
to show the correct counts and pagination.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm

index 21d96e2..3a69fb1 100644 (file)
@@ -407,6 +407,7 @@ sub load_rresults {
        
         # force the metarecord result blob to match the format of regular search results
         $results->{ids} = [map { [$_] } @$bre_ids];
+        $results->{count} = scalar(@{$results->{ids}});
 
     } else {