TPAC: Set search_ou context in common loader
authorDan Scott <dan@coffeecode.net>
Wed, 28 Dec 2011 02:17:02 +0000 (21:17 -0500)
committerJason Stephenson <jstephenson@mvlc.org>
Thu, 29 Dec 2011 15:13:34 +0000 (10:13 -0500)
By setting the search_ou context in load_common() after checking for a
valid user session, we can catch the remaining pages in TPAC in which
the default search library was not being set properly.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm

index 59a2cb1..5091c50 100644 (file)
@@ -243,6 +243,7 @@ sub load_common {
             return $self->load_logout($self->apache->unparsed_uri);
         }
     }
+    $ctx->{search_ou} = $self->_get_search_lib();
 
     $self->staff_saved_searches_set_expansion_state if $ctx->{is_staff};