From: Bill Erickson Date: Tue, 27 Dec 2011 20:55:33 +0000 (-0500) Subject: Hold current_shelf_lib for shelf browse API X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=da521bed5758a5ee7d6f15e25dc7d3c00546071a;p=evergreen%2Fmasslnc.git Hold current_shelf_lib for shelf browse API Use the new current_shelf_lib column on hold requests to determine which copies are on a given shelf. This also removes the shelf_time filter since shelf_time is guaranteed to be set if current_shelf_lib is set. Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm index d35e13d5ac..b69b7f5794 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm @@ -1945,14 +1945,11 @@ sub fetch_captured_holds { capture_time => { "!=" => undef }, current_copy => { "!=" => undef }, fulfillment_time => undef, - pickup_lib => $org, -# cancel_time => undef, - } + current_shelf_lib => $org + } } }; if($self->api_name =~ /expired/) { -# $query->{'where'}->{'+ahr'}->{'shelf_expire_time'} = {'<' => 'now'}; - $query->{'where'}->{'+alhr'}->{'shelf_time'} = {'!=' => undef}; $query->{'where'}->{'+alhr'}->{'-or'} = { shelf_expire_time => { '<' => 'now'}, cancel_time => { '!=' => undef },