From: erickson Date: Mon, 26 Jan 2009 20:43:41 +0000 (+0000) Subject: added a streaming, batch mvr retrieval method X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8706752d3166212a7b510afdb17955badf277175;p=Evergreen.git added a streaming, batch mvr retrieval method git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4@11983 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm index 3ff86cf8c2..e59c6e34e6 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm @@ -133,6 +133,19 @@ sub record_id_to_mods_slim { } + +__PACKAGE__->register_method( + method => "record_id_to_mods_slim_batch", + api_name => "open-ils.search.biblio.record.mods_slim.batch.retrieve", + stream => 1 +); +sub record_id_to_mods_slim_batch { + my($self, $conn, $id_list) = @_; + $conn->respond(_records_to_mods($_)->[0]) for @$id_list; + return undef; +} + + # Returns the number of copies attached to a record based on org location __PACKAGE__->register_method( method => "record_id_to_copy_count",