Simplify NCIP::ILS::Evergreen->retrieve_org_unit_by_shortname().
authorJason Stephenson <jason@sigio.com>
Sat, 27 Sep 2014 13:58:08 +0000 (09:58 -0400)
committerJason Stephenson <jason@sigio.com>
Sat, 27 Sep 2014 13:58:08 +0000 (09:58 -0400)
Use open-ils.actor.org_unit.retrieve_by_shortname instead of a
pcrud search.

Signed-off-by: Jason Stephenson <jason@sigio.com>
lib/NCIP/ILS/Evergreen.pm

index 2c625ea..cc01396 100644 (file)
@@ -1439,10 +1439,9 @@ sub retrieve_org_unit_by_shortname {
     my $shortname = shift;
 
     my $aou = $U->simplereq(
     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;
     );
 
     return $aou;