$$prox_list[0] =
[
grep {
- $_->circ_lib == $hold->pickup_lib
+ ''.$_->circ_lib eq ''.$hold->pickup_lib
} @good_copies
];
)->gather(1);
if (defined($max_loops)) {
- my %circ_lib_map = map { $_->circ_lib => 1 } @$all_copies;
+ my %circ_lib_map = map { (''.$_->circ_lib => 1) } @$all_copies;
my $circ_lib_list = [keys %circ_lib_map];
my $cstore = OpenSRF::AppSession->connect('open-ils.cstore');
my $exclude_list = $cstore->request(
'open-ils.cstore.json_query.atomic',
{ distinct => 1,
- select => { aufhol => [circ_lib] },
+ select => { aufhol => ['circ_lib'] },
from => 'aufhol',
where => { hold => $hold->id}
}
# We haven't exceeded max_loops yet
my @keeper_copies;
for my $cp ( @$all_copies ) {
- push (@keeper_copies, $cp) if ( grep { $_ eq $cp->circ_lib } @keepers );
+ push (@keeper_copies, $cp) if ( grep { $_ eq ''.$cp->circ_lib } @keepers );
}
} else {
# We have, and should remove potentials and cancel the hold