Hard-coding the search org unit to "1" (PINES) for to
authorChris Sharp <csharp@georgialibraries.org>
Fri, 16 Aug 2013 15:01:50 +0000 (11:01 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 16 Aug 2013 15:01:50 +0000 (11:01 -0400)
allow for consortium-wide duplicate patron checking when
registering a patron.

See LP 1185524 for the Right Way to do it.

Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm

index 5f6073f..dd1039a 100644 (file)
@@ -1321,7 +1321,7 @@ sub patron_adv_search {
        # depth boundary outside of which patrons must opt-in, default to 0
        my $opt_boundary = 0;
        $opt_boundary = $U->ou_ancestor_setting_value($e->requestor->ws_ou,'org.patron_opt_boundary') if user_opt_in_enabled($self);
-
+       $search_ou = 1; # hard coding this here - see lp1185524 for details
        return $U->storagereq(
                "open-ils.storage.actor.user.crazy_search", $search_hash, 
             $search_limit, $search_sort, $include_inactive, $e->requestor->ws_ou, $search_ou, $opt_boundary);