LP#1078787 Fix serial scoping in TPAC
authorDan Wells <dbw2@calvin.edu>
Thu, 8 May 2014 20:18:11 +0000 (16:18 -0400)
committerDan Wells <dbw2@calvin.edu>
Tue, 26 Aug 2014 17:12:25 +0000 (13:12 -0400)
If you have generated holdings, but are not using the "compressed"
display, your holdings show up regardless of scope.  This change
limits the display to only sdists with a holding_lib in your current
search scope.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Serial.pm

index 933f031..d445250 100644 (file)
@@ -128,7 +128,8 @@ sub bib_to_svr {
     # TODO: 'deleted' ssub support
     my $sdists = $e->search_serial_distribution([
         {
-            "+ssub" => {"record_entry" => $bib}
+            "+ssub" => {"record_entry" => $bib},
+            "holding_lib" => { "in" => @orgs }
         },
         {
             "flesh" => 1,