Skip to content

Commit

Permalink
MODFQMMGR-369 Updated user preferred contact to not show IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
mweaver-ebsco committed Jun 27, 2024
1 parent 661f08b commit adaf47a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
18 changes: 16 additions & 2 deletions src/main/resources/entity-types/users/simple_user_details.json5
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,29 @@
valueGetter: "concat_ws(', '::text, NULLIF((:sourceAlias.jsonb -> 'personal'::text) ->> 'lastName', ''::text), NULLIF((:sourceAlias.jsonb -> 'personal'::text) ->> 'firstName', ''::text))",
},
{
name: 'preferred_contact_type_id',
name: 'preferred_contact_type',
sourceAlias: 'user',
dataType: {
dataType: 'stringType',
},
isIdColumn: false,
queryable: true,
visibleByDefault: false,
valueGetter: ":sourceAlias.jsonb->'personal'->>'preferredContactTypeId'",
valueGetter: "CASE (:sourceAlias.jsonb -> 'personal'::text) ->> 'preferredContactTypeId'::text WHEN '001'::text THEN 'Mail (Primary Address)'::text WHEN '002'::text THEN 'Email'::text WHEN '003'::text THEN 'Text Message'::text ELSE 'unknown'::text END",
values: [
{
value: 'Email',
label: 'Email',
},
{
value: 'Mail (Primary Address)',
label: 'Mail (Primary Address)',
},
{
value: 'Text Message',
label: 'Text Message',
},
],
},
{
name: 'phone',
Expand Down
2 changes: 1 addition & 1 deletion translations/mod-fqm-manager/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@
"entityType.simple_user_details.mobile_phone": "Mobile phone",
"entityType.simple_user_details.patron_group": "Patron group",
"entityType.simple_user_details.phone": "Phone",
"entityType.simple_user_details.preferred_contact_type_id": "Preferred contact type ID",
"entityType.simple_user_details.preferred_contact_type": "Preferred contact type",
"entityType.simple_user_details.preferred_first_name": "Preferred first name",
"entityType.simple_user_details.proxy_for": "Proxy for",
"entityType.simple_user_details.tags_tag_list": "Tags tag list",
Expand Down

0 comments on commit adaf47a

Please sign in to comment.