From: Jason Stephenson Date: Sat, 27 Sep 2014 13:58:08 +0000 (-0400) Subject: Simplify NCIP::ILS::Evergreen->retrieve_org_unit_by_shortname(). X-Git-Url: https://git.evergreen-ils.org/?p=working%2FNCIPServer.git;a=commitdiff_plain;h=cb4f653523dce493d74f927809918ed3927a6c4c Simplify NCIP::ILS::Evergreen->retrieve_org_unit_by_shortname(). Use open-ils.actor.org_unit.retrieve_by_shortname instead of a pcrud search. Signed-off-by: Jason Stephenson --- diff --git a/lib/NCIP/ILS/Evergreen.pm b/lib/NCIP/ILS/Evergreen.pm index 2c625ea..cc01396 100644 --- a/lib/NCIP/ILS/Evergreen.pm +++ b/lib/NCIP/ILS/Evergreen.pm @@ -1439,10 +1439,9 @@ sub retrieve_org_unit_by_shortname { my $shortname = shift; my $aou = $U->simplereq( - 'open-ils.pcrud', - 'open-ils.pcrud.search.aou', - $self->{session}->{authtoken}, - {shortname => {'=' => {transform => 'lower', value => ['lower', $shortname]}}} + 'open-ils.actor', + 'open-ils.actor.org_unit.retrieve_by_shortname', + $shortname ); return $aou;