Skip to content

Commit

Permalink
add group name to summary
Browse files Browse the repository at this point in the history
  • Loading branch information
austenem committed Oct 29, 2024
1 parent 450312d commit a9c6f0f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG-minor-group-updates.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
- Label centrally processed dataset groups as HIVE in the helper panel.
- Fix typo in publication collections summary.
- Fix typo in publication collections summary.
- Add group name to raw dataset summary section.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,22 @@ function DatasetConsortium() {
return <LabelledSectionText label="Consortium">{mapped_consortium}</LabelledSectionText>;
}

function DatasetGroup() {
const { entity } = useFlaskDataContext();

if (!isDataset(entity)) {
return null;
}

const { group_name } = entity;

if (!group_name) {
return null;
}

return <LabelledSectionText label="Group">{group_name}</LabelledSectionText>;
}

function CollectionCitation() {
const { entity } = useFlaskDataContext();

Expand Down Expand Up @@ -122,6 +138,7 @@ function SummaryBodyContent({
<Stack component={SummaryPaper} direction={direction} spacing={1} {...stackProps}>
<CollectionName />
<SummaryDescription description={description} clamp={isEntityHeader} />
<DatasetGroup />
<DatasetConsortium />
<DatasetCitation />
<CollectionCitation />
Expand Down

0 comments on commit a9c6f0f

Please sign in to comment.