From cb4f653523dce493d74f927809918ed3927a6c4c Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Sat, 27 Sep 2014 09:58:08 -0400 Subject: [PATCH] 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 --- lib/NCIP/ILS/Evergreen.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; -- 2.43.2