From: oajulianclementson <51331324+oajulianclementson@users.noreply.github.com> Date: Sat, 8 May 2021 17:09:27 +0000 (+0100) Subject: LP#1842297: Fix attribute names X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c2039e9aff3765b9105c64e2ae3186b44cd43265;p=evergreen%2Fpines.git LP#1842297: Fix attribute names --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/OpenAthens.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/OpenAthens.pm index 22becd07e4..7bca2db831 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/OpenAthens.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/OpenAthens.pm @@ -291,37 +291,37 @@ sub _get_openathens_session_initiator_url { # Optional attributes if ($U->is_true($openathens_config->{release_prefix})) { - $request_obj->{attributes}->{OA_ATTR_PREFIX} = $user->prefix; + $request_obj->{attributes}->{&OA_ATTR_PREFIX} = $user->prefix; } if ($U->is_true($openathens_config->{release_first_given_name})) { - $request_obj->{attributes}->{OA_ATTR_FIRST_GIVEN_NAME} = + $request_obj->{attributes}->{&OA_ATTR_FIRST_GIVEN_NAME} = $user->pref_first_given_name || $user->first_given_name; } if ($U->is_true($openathens_config->{release_second_given_name})) { - $request_obj->{attributes}->{OA_ATTR_SECOND_GIVEN_NAME} = + $request_obj->{attributes}->{&OA_ATTR_SECOND_GIVEN_NAME} = $user->pref_second_given_name || $user->second_given_name; } if ($U->is_true($openathens_config->{release_family_name})) { - $request_obj->{attributes}->{OA_ATTR_FAMILY_NAME} = + $request_obj->{attributes}->{&OA_ATTR_FAMILY_NAME} = $user->pref_family_name || $user->family_name; } if ($U->is_true($openathens_config->{release_suffix})) { - $request_obj->{attributes}->{OA_ATTR_SUFFIX} = $user->suffix; + $request_obj->{attributes}->{&OA_ATTR_SUFFIX} = $user->suffix; } if ($U->is_true($openathens_config->{release_email})) { - $request_obj->{attributes}->{OA_ATTR_EMAIL} = $user->email; + $request_obj->{attributes}->{&OA_ATTR_EMAIL} = $user->email; } my $ou_id = $user->home_ou; if ($ou_id && $U->is_true($openathens_config->{release_home_ou})) { my $ou = $ctx->{get_aou}->($ou_id); if ($ou) { - $request_obj->{attributes}->{OA_ATTR_HOME_OU} = $ou->shortname; + $request_obj->{attributes}->{&OA_ATTR_HOME_OU} = $ou->shortname; } }