From: Jason Stephenson Date: Mon, 5 Oct 2015 19:30:48 +0000 (-0400) Subject: Expand NCIP::ILS::Evergreen->_call_number_search to include descendants. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fe1729bb942275926314e0c03812cab9cab85bbf;p=working%2FNCIPServer.git Expand NCIP::ILS::Evergreen->_call_number_search to include descendants. Signed-off-by: Jason Stephenson --- diff --git a/lib/NCIP/ILS/Evergreen.pm b/lib/NCIP/ILS/Evergreen.pm index 6ebeeec..65712bc 100644 --- a/lib/NCIP/ILS/Evergreen.pm +++ b/lib/NCIP/ILS/Evergreen.pm @@ -2743,7 +2743,19 @@ sub _call_number_search { my $search = {record => $bibid, deleted => 'f'}; if ($location) { - $search->{owning_lib} = $location->id(); + $search->{owning_lib} = { + in => { + select => { + aou => [{ + column => 'id', + transform => 'actor.org_unit_descendants', + result_field => 'id' + }] + }, + from => 'aou', + where => {id => $location->id()} + } + }; } # If flesh is passed a true value, we flesh copies, copy status,