LP#1284864 correct TPAC metarecord list pagination user/berick/lp1284864-tpac-mr-formats-repairs-and-usability-squash
authorBill Erickson <berick@esilibrary.com>
Thu, 6 Mar 2014 21:40:31 +0000 (16:40 -0500)
committerBill Erickson <berick@esilibrary.com>
Thu, 6 Mar 2014 21:40:31 +0000 (16:40 -0500)
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>
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 {