if (@$statuses || @$copy_locations) {
@cp_filter = (
'-exists' => {
+ limit => 1,
from => 'acp',
where => {
call_number => { '=' => { '+acn' => 'id' } },
if (@$statuses || @$copy_locations) {
@cp_filter = (
'-exists' => {
+ limit => 1,
from => 'acp',
where => {
call_number => { '=' => { '+acn' => 'id' } },
call_number => { '=' => {'+acn'=>'id'} },
deleted => 'f',
circ_lib => \@ou_ids
- }
+ },
+ limit => 1
}
}
]);
%subselect = (
owning_lib => \@uri_ou_ids,
'-exists' => {
+ limit => 1,
from => { auricnm => 'auri' },
where => {
call_number => { '=' => {'+acn'=>'id'} },
call_number => { '=' => {'+acn'=>'id'} },
deleted => 'f',
circ_lib => \@ou_ids
- }
+ },
+ limit => 1
}
},
{ '-and' => [
where => {
call_number => { '=' => {'+acn'=>'id'} },
'+auri' => { active => 't' }
- }
+ },
+ limit => 1
}}
]}
]);
{ owning_lib => \@ou_ids },
{ '-exists' =>
{ from => 'sdist',
- where => { holding_lib => \@ou_ids }
+ where => { holding_lib => \@ou_ids },
+ limit => 1
}
}
]);