Skip to content

Commit

Permalink
affiliations: render organization acronym in subheader
Browse files Browse the repository at this point in the history
  • Loading branch information
slint committed Nov 24, 2024
1 parent 18dbf6d commit 4a2c53c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ const makeSubheader = (creatibutor, isOrganization) => {
}`.trim();
} else {
return (
creatibutor?.affiliations?.map((affiliation) => affiliation.name)?.join(", ") ||
creatibutor?.affiliations?.map((affiliation) => {

Check failure on line 63 in src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js

View workflow job for this annotation

GitHub Actions / Tests (18.x)

Insert `⏎········`

Check failure on line 63 in src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js

View workflow job for this annotation

GitHub Actions / Tests (16.x)

Insert `⏎········`
if (affiliation.acronym?.length > 0) {

Check failure on line 64 in src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js

View workflow job for this annotation

GitHub Actions / Tests (18.x)

Insert `··`

Check failure on line 64 in src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js

View workflow job for this annotation

GitHub Actions / Tests (16.x)

Insert `··`
return `${affiliation.name} (${affiliation.acronym})`;

Check failure on line 65 in src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js

View workflow job for this annotation

GitHub Actions / Tests (18.x)

Insert `··`

Check failure on line 65 in src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js

View workflow job for this annotation

GitHub Actions / Tests (16.x)

Insert `··`
}

Check failure on line 66 in src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js

View workflow job for this annotation

GitHub Actions / Tests (18.x)

Insert `··`

Check failure on line 66 in src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js

View workflow job for this annotation

GitHub Actions / Tests (16.x)

Insert `··`
return affiliation.name;

Check failure on line 67 in src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js

View workflow job for this annotation

GitHub Actions / Tests (18.x)

Insert `··`

Check failure on line 67 in src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js

View workflow job for this annotation

GitHub Actions / Tests (16.x)

Insert `··`
})?.join(", ") ||

Check failure on line 68 in src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js

View workflow job for this annotation

GitHub Actions / Tests (18.x)

Replace `})?.join(",·")·||⏎·····` with `··})⏎········?.join(",·")·||`

Check failure on line 68 in src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js

View workflow job for this annotation

GitHub Actions / Tests (16.x)

Replace `})?.join(",·")·||⏎·····` with `··})⏎········?.join(",·")·||`
""
);
}
Expand Down

0 comments on commit 4a2c53c

Please sign in to comment.