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 <berick@esilibrary.com>
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 },