}
+foreach my $isbn_method (qw/
+ open-ils.search.biblio.isbn
+ open-ils.search.biblio.isbn.staff
+/) {
__PACKAGE__->register_method(
method => "biblio_search_isbn",
- api_name => "open-ils.search.biblio.isbn",
+ api_name => $isbn_method,
signature => {
- desc => 'Retrieve biblio IDs for a given ISBN',
+ desc => 'Retrieve biblio IDs for a given ISBN. The .staff version of the call includes otherwise hidden hits.',
params => [
{desc => 'ISBN', type => 'string'}
],
}
}
);
+}
sub biblio_search_isbn {
my( $self, $client, $isbn ) = @_;
# reworking 'open-ils.storage.id_list.biblio.record_entry.search.isbn',
# which is functionally deprecated at this point, or a custom call to
# 'open-ils.storage.biblio.multiclass.search_fts'
- my $method = $self->method_lookup('open-ils.search.biblio.multiclass.query');
+
+ my $isbn_method = 'open-ils.search.biblio.multiclass.query';
+ if ($self->api_name =~ m/.staff$/) {
+ $isbn_method .= '.staff';
+ }
+
+ my $method = $self->method_lookup($isbn_method);
my ($search_result) = $method->run({'limit' => 1000000}, "identifier|isbn:$isbn");
my @recs = map { $_->[0] } @{$search_result->{'ids'}};
return { ids => \@recs, count => $search_result->{'count'} };
return { ids => \@recs, count => scalar(@recs) };
}
+foreach my $issn_method (qw/
+ open-ils.search.biblio.issn
+ open-ils.search.biblio.issn.staff
+/) {
__PACKAGE__->register_method(
method => "biblio_search_issn",
- api_name => "open-ils.search.biblio.issn",
+ api_name => $issn_method,
signature => {
desc => 'Retrieve biblio IDs for a given ISSN',
params => [
}
}
);
+}
sub biblio_search_issn {
my( $self, $client, $issn ) = @_;
# reworking 'open-ils.storage.id_list.biblio.record_entry.search.issn',
# which is functionally deprecated at this point, or a custom call to
# 'open-ils.storage.biblio.multiclass.search_fts'
- my $method = $self->method_lookup('open-ils.search.biblio.multiclass.query');
+
+ my $issn_method = 'open-ils.search.biblio.multiclass.query';
+ if ($self->api_name =~ m/.staff$/) {
+ $issn_method .= '.staff';
+ }
+
+ my $method = $self->method_lookup($issn_method);
my ($search_result) = $method->run({'limit' => 1000000}, "identifier|issn:$issn");
my @recs = map { $_->[0] } @{$search_result->{'ids'}};
return { ids => \@recs, count => $search_result->{'count'} };
var FETCH_ACONT_SUMMARY = "open-ils.search:open-ils.search.added_content.summary.retrieve";
var FETCH_USER_BYBARCODE = "open-ils.actor:open-ils.actor.user.fleshed.retrieve_by_barcode";
var FETCH_ADV_MARC_MRIDS = "open-ils.search:open-ils.search.biblio.marc:1";
-var FETCH_ADV_ISBN_RIDS = "open-ils.search:open-ils.search.biblio.isbn";
-var FETCH_ADV_ISSN_RIDS = "open-ils.search:open-ils.search.biblio.issn";
+var FETCH_ADV_ISBN_RIDS = "open-ils.search:open-ils.search.biblio.isbn:1";
+var FETCH_ADV_ISSN_RIDS = "open-ils.search:open-ils.search.biblio.issn:1";
var FETCH_ADV_TCN_RIDS = "open-ils.search:open-ils.search.biblio.tcn";
var FETCH_CNBROWSE = 'open-ils.search:open-ils.search.callnumber.browse';
var FETCH_CONTAINERS = 'open-ils.actor:open-ils.actor.container.retrieve_by_class';