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 34f7ec5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ 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 ? ` (${affiliationNames.join(", ")})` : "";

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

0 comments on commit 34f7ec5

Please sign in to comment.