Enable TPAC to display records via HSTORE-based unapi
authorDan Scott <dscott@laurentian.ca>
Sun, 18 Dec 2011 05:40:55 +0000 (00:40 -0500)
committerDan Scott <dan@coffeecode.net>
Thu, 15 Mar 2012 04:34:32 +0000 (00:34 -0400)
Now that unapi requires HSTORE-based LIMIT and OFFSET arguments, take
the simplest possible approach to get get_records_and_facets() working
again by specifying acp as the limit type.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm

index e672eac..eba77a3 100644 (file)
@@ -209,7 +209,7 @@ sub get_records_and_facets {
             $unapi_args->{flesh}, 
             $unapi_args->{site}, 
             $unapi_args->{depth}, 
-            $unapi_args->{flesh_depth}, 
+            'acp=>' . $unapi_args->{flesh_depth}, 
         ]}
     ) for @$rec_ids;