Skip to content

Commit

Permalink
Fix name in radar export
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Dec 3, 2023
1 parent 0594443 commit 1a99b6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rdmo_plugins/exports/radar/exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,6 @@ def get_name(self, prefix, attribute, set_prefix='', set_index=0):
name_text = self.get_text(attribute + '/name', set_prefix=set_prefix, set_index=set_index)
if name_text:
name = {
f'{prefix}Name': name_text,
'nameType': self.get_option(self.name_type_options, attribute + '/name_type',
set_prefix=set_prefix, set_index=set_index, default='Personal'),
}
Expand All @@ -425,6 +424,9 @@ def get_name(self, prefix, attribute, set_prefix='', set_index=0):
if family_name:
name['familyName'] = family_name

if not ('givenName' in name or 'familyName' in name):
name[f'{prefix}Name'] = name_text

# identifier
identifier = self.get_text(attribute + '/name_identifier', set_prefix=set_prefix, set_index=set_index)
if identifier:
Expand Down

0 comments on commit 1a99b6f

Please sign in to comment.