From f6bb7916c865d0f7b0843b73dd89a8479b4be4bc Mon Sep 17 00:00:00 2001 From: Thomas Berezansky Date: Tue, 22 Apr 2014 09:20:20 -0400 Subject: [PATCH] LP#1310283: Propogate .staff through Z3950 searches So that local catalog Z3950 searches don't only show opac visible bibs. Signed-off-by: Thomas Berezansky Signed-off-by: Ben Shum --- .../src/perlmods/lib/OpenILS/Application/Search/Biblio.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm index 00090242df..15685b0af1 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm @@ -1008,7 +1008,10 @@ sub cat_search_z_style_wrapper { $$searchhash{searches}{keyword}{term} .= join ' ', $$searchhash{searches}{keyword}{term}, $$args{search}{pubdate} if $$args{search}{pubdate}; $$searchhash{searches}{keyword}{term} .= join ' ', $$searchhash{searches}{keyword}{term}, $$args{search}{item_type} if $$args{search}{item_type}; - my ($list) = $self->method_lookup('open-ils.search.biblio.multiclass.staged')->run( $searchhash ); + my $method = 'open-ils.search.biblio.multiclass.staged'; + $method .= '.staff' if $self->api_name =~ /staff$/; + + my ($list) = $self->method_lookup($method)->run( $searchhash ); if ($list->{count} > 0 and @{$list->{ids}}) { $result->{count} = $list->{count}; -- 2.43.2