Skip to content

Commit

Permalink
UI: display all affiliations
Browse files Browse the repository at this point in the history
  • Loading branch information
carlinmack committed Nov 12, 2024
1 parent d6ef02c commit e31b76e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ const creatibutorNameDisplay = (value) => {

const familyName = _get(value, "person_or_org.family_name", "");
const givenName = _get(value, "person_or_org.given_name", "");
const affiliationName = _get(value, `affiliations[0].name`, "");
const affiliationNames = value?.affiliations.map((affiliation) => affiliation.name);
const name = _get(value, `person_or_org.name`);

const affiliation = affiliationName ? ` (${affiliationName})` : "";
const affiliation = affiliationNames.length
? ` (${affiliationNames.join(", ")})`
: "";

if (isPerson) {
const givenNameSuffix = givenName ? `, ${givenName}` : "";
Expand Down

0 comments on commit e31b76e

Please sign in to comment.