Fix an error in Evergreen.pm.
authorJason Stephenson <jason@sigio.com>
Sat, 23 Aug 2014 15:38:26 +0000 (11:38 -0400)
committerJason Stephenson <jason@sigio.com>
Sat, 23 Aug 2014 15:38:26 +0000 (11:38 -0400)
Signed-off-by: Jason Stephenson <jason@sigio.com>
lib/NCIP/ILS/Evergreen.pm

index bcdfe8c..61c7c0f 100644 (file)
@@ -170,7 +170,7 @@ sub lookupuser {
         # First, we'll look for name information.
         if (grep {$_ eq 'Name Information'} @$elements) {
             my $name = NCIP::StructuredPersonalUserName->new();
-            $name->Surname($user->given_name());
+            $name->Surname($user->family_name());
             $name->GivenName($user->first_given_name());
             $name->Prefix($user->prefix());
             $name->Suffix($user->suffix());