added a streaming, batch mvr retrieval method
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 26 Jan 2009 20:43:41 +0000 (20:43 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 26 Jan 2009 20:43:41 +0000 (20:43 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4@11983 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm

index 3ff86cf..e59c6e3 100644 (file)
@@ -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",