Make the ContainerCSV reactor output more than 10 records.
authorJason Stephenson <jstephenson@mvlc.org>
Thu, 26 Jul 2012 17:45:06 +0000 (13:45 -0400)
committerDan Scott <dscott@laurentian.ca>
Wed, 22 Aug 2012 19:39:04 +0000 (15:39 -0400)
Call AppUtils->bib_container_items_via_search with an args hashref
that hard codes the search limit to 1,000 records instead of using
the biblio.multiclass search default of 10.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>

Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/ContainerCSV.pm

index 6e2306e..5749ee0 100644 (file)
@@ -28,9 +28,14 @@ sub handler {
 
     # get items for bookbags (bib containers of btype bookbag)
     if ($env->{user_data}{item_search}) {
+        # Since the search is by default limited to 10, let's bump the limit
+        # to 1,000 just for giggles. This oughta be a setting, either YAOUS
+        # or YAUS.
+        my $args = {limit => 1000};
+
         # use the search api for bib container items.  fetch record IDs only.
         my $items = $U->bib_container_items_via_search(
-            $env->{target}->id, $env->{user_data}{item_search}, undef, 1 
+            $env->{target}->id, $env->{user_data}{item_search}, $args, 1
         ) or return 0;  # TODO build error output for db?
 
         $env->{items} = $items;