From: Bill Erickson Date: Fri, 31 Jul 2020 14:00:24 +0000 (-0400) Subject: Revert "LP1889694 copy count batch mode (revert)" X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1ba3dfa5e9f78c926e470f31d6a53cd6bc8112d0;p=working%2FEvergreen.git Revert "LP1889694 copy count batch mode (revert)" This reverts commit 6490b1a669ff9c11143e3585d35bb1f9e7acabb6. --- 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 870c4ebc59..159ecd78b9 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm @@ -276,66 +276,6 @@ sub record_id_to_copy_count { return [ sort { $a->{depth} <=> $b->{depth} } @count ]; } - -__PACKAGE__->register_method( - method => "record_id_to_copy_count_batch", - api_name => "open-ils.search.biblio.record.copy_count.batch", - stream => 1, - signature => { - desc => q/Returns a stream of copy summaries for a set of records - for the context org unit and all ancestor org units/, - params => [ - {desc => 'Context org unit id', type => 'number'}, - {desc => 'Record IDs', type => 'array'} - ], - return => { - desc => q/ - Returns a stream of objects with 2 keys: - record: record id, - counts: see open-ils.search.biblio.record.copy_count - /, - type => 'object' - } - } -); - -__PACKAGE__->register_method( - method => "record_id_to_copy_count_batch", - api_name => "open-ils.search.biblio.record.copy_count.batch.staff", - stream => 1, - signature => 'see open-ils.search.biblio.record.copy_count.batch' - -); - -__PACKAGE__->register_method( - method => "record_id_to_copy_count_batch", - api_name => "open-ils.search.biblio.metarecord.copy_count.batch", - stream => 1, - signature => 'see open-ils.search.biblio.record.copy_count.batch' -); - -__PACKAGE__->register_method( - method => "record_id_to_copy_count_batch", - api_name => "open-ils.search.biblio.metarecord.copy_count.batch.staff", - stream => 1, - signature => 'see open-ils.search.biblio.record.copy_count.batch' -); - - -sub record_id_to_copy_count_batch { - my ($self, $client, $org_id, $record_ids) = @_; - - for my $rec_id (@$record_ids) { - $client->respond({ - record => $rec_id, - counts => record_id_to_copy_count($self, $client, $org_id, $rec_id) - }); - } - - return undef; -} - - __PACKAGE__->register_method( method => "record_has_holdable_copy", api_name => "open-ils.search.biblio.record.has_holdable_copy",