[open-ils-commits] [GIT] Evergreen ILS branch master updated. 5e892c31a8b66ac0029d70446581ee4bae2dc018

Evergreen Git git at git.evergreen-ils.org
Wed Aug 22 15:38:33 EDT 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  5e892c31a8b66ac0029d70446581ee4bae2dc018 (commit)
       via  8cb436c41319fbe65bf52e3a72e60ee49df9fb26 (commit)
       via  6350230cb0f9aac4a22396da1c32aec2bb464b5f (commit)
      from  94d5e4c887cb7ac071144b1b3b36026216be514b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5e892c31a8b66ac0029d70446581ee4bae2dc018
Author: Jason Stephenson <jstephenson at mvlc.org>
Date:   Thu Jul 26 13:45:06 2012 -0400

    Make the ContainerCSV reactor output more than 10 records.
    
    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 at mvlc.org>
    Signed-off-by: Ben Shum <bshum at biblio.org>
    Signed-off-by: Dan Scott <dscott at laurentian.ca>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/ContainerCSV.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/ContainerCSV.pm
index 6e2306e..5749ee0 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/ContainerCSV.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/ContainerCSV.pm
@@ -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;

commit 8cb436c41319fbe65bf52e3a72e60ee49df9fb26
Author: Jason Stephenson <jstephenson at mvlc.org>
Date:   Wed Jul 25 11:03:01 2012 -0400

    Make item_barcode_shortcut load user bookbags in EGCatLoader::Search.
    
    Signed-off-by: Jason Stephenson <jstephenson at mvlc.org>
    Signed-off-by: Ben Shum <bshum at biblio.org>
    Signed-off-by: Dan Scott <dscott at laurentian.ca>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
index 9c14242..cfe8853 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
@@ -578,6 +578,8 @@ sub item_barcode_shortcut {
         $self->ctx->{search_facets} = {};
         $self->ctx->{hit_count} = scalar @data;
         $self->ctx->{page_size} = $self->ctx->{hit_count};
+        # load temporary_list settings for user and ou:
+        $self->_load_lists_and_settings if ($self->ctx->{user});
 
         return Apache2::Const::OK;
     } {

commit 6350230cb0f9aac4a22396da1c32aec2bb464b5f
Author: Jason Stephenson <jstephenson at mvlc.org>
Date:   Wed Jul 25 16:41:44 2012 -0400

    Make sure that bookbag information loads in MARC expert search.
    
    Signed-off-by: Jason Stephenson <jstephenson at mvlc.org>
    Signed-off-by: Ben Shum <bshum at biblio.org>
    Signed-off-by: Dan Scott <dscott at laurentian.ca>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
index 30de8e1..9c14242 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
@@ -673,6 +673,9 @@ sub marc_expert_search {
     );
     $self->timelog("Returned from calling get_records_and_facets() for MARC expert");
 
+    # load temporary_list settings for user and ou:
+    $self->_load_lists_and_settings if ($self->ctx->{user});
+
     $self->ctx->{records} = [@data];
 
     return Apache2::Const::OK;

-----------------------------------------------------------------------

Summary of changes:
 .../Application/Trigger/Reactor/ContainerCSV.pm    |    7 ++++++-
 .../perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm |    5 +++++
 2 files changed, 11 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list