So that local catalog Z3950 searches don't only show opac visible bibs.
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
$$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};