From: miker Date: Sun, 3 Sep 2006 20:50:03 +0000 (+0000) Subject: id_list for Jason X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5cb792af6eadcde50f263fe815d56499c557754c;p=Evergreen.git id_list for Jason git-svn-id: svn://svn.open-ils.org/ILS/trunk@5896 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm index d8853c49ff..85fbe11faf 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm @@ -309,6 +309,8 @@ sub hold_pull_list { my $h_table = action::hold_request->table; my $a_table = asset::copy->table; + my $idlist = 1 if ($self->api_name =~/id_list/o); + my $select = <<" SQL"; SELECT h.* FROM $h_table h @@ -324,11 +326,25 @@ sub hold_pull_list { my $sth = action::survey->db_Main->prepare_cached($select); $sth->execute($ou); - $client->respond( $_->to_fieldmapper ) for ( map { action::hold_request->construct($_) } $sth->fetchall_hash ); + $client->respond( $id_list ? $_->id : $_->to_fieldmapper ) for ( map { action::hold_request->construct($_) } $sth->fetchall_hash ); return undef; } __PACKAGE__->register_method( + api_name => 'open-ils.storage.direct.action.hold_request.pull_list.id_list.current_copy_circ_lib', + api_level => 1, + stream => 1, + signature => [ + "Returns the hold ids for a specific library's pull list.", + [ [org_unit => "The library's org id", "number"], + [limit => 'An optional page size, defaults to 10', 'number'], + [offset => 'Offset for paging, defaults to 0, 0 based', 'number'], + ], + ['A list of holds for the stated library to pull for', 'array'] + ], + method => 'hold_pull_list', +); +__PACKAGE__->register_method( api_name => 'open-ils.storage.direct.action.hold_request.pull_list.search.current_copy_circ_lib', api_level => 1, stream => 1,