Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,30 @@ export const PublishedEntityDisplay: React.FC<{
ref={publishedRef}
style={{ scrollMargin: '70px' }}
>
{treeData.value.tombstone && (
<Alert
showIcon
type="warning"
message={
<strong>
The following dataset is no longer published in DesignSafe.
</strong>
}
description={
<div>
The Dataset with DOI:{' '}
<a href={`https://doi.org/${treeData.value.dois?.[0]}`}>
{treeData.value.dois?.[0]}
</a>{' '}
does not comply with one or more{' '}
<a href="https://www.designsafe-ci.org/user-guide/curating/policies/">
DesignSafe policies
</a>{' '}
and has been removed. The metadata is still available.
</div>
}
/>
)}
<div
className={styles['pub-show-button']}
style={{
Expand Down
19 changes: 0 additions & 19 deletions client/modules/datafiles/src/projects/PublishedEntityDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,25 +67,6 @@ export const PublishedEntityDetails: React.FC<{
}> = ({ entityValue, publicationDate, license, versions, uuid }) => {
return (
<section style={{ marginBottom: '20px' }}>
{entityValue.tombstone && (
<Alert
showIcon
style={{ marginBottom: '12px' }}
type="warning"
message={
<strong>The following Dataset does not exist anymore</strong>
}
description={
<div>
The Dataset with DOI:{' '}
<a href={`https://doi.org/${entityValue.dois?.[0]}`}>
{entityValue.dois?.[0]}
</a>{' '}
was incomplete and removed. The metadata is still available.
</div>
}
/>
)}
<table
style={{ width: '100%', marginBottom: '20px', borderSpacing: '200px' }}
>
Expand Down
10 changes: 8 additions & 2 deletions client/src/datafiles/layouts/published/PublishedDetailLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,21 @@ export const PublishedDetailLayout: React.FC = () => {
showIcon
type="warning"
message={
<strong>The following Dataset does not exist anymore</strong>
<strong>
The following dataset is no longer published in DesignSafe.
</strong>
}
description={
<div>
The Dataset with DOI:{' '}
<a href={`https://doi.org/${data.baseProject.dois[0]}`}>
{data.baseProject.dois[0]}
</a>{' '}
was incomplete and removed. The metadata is still available.
does not comply with one or more{' '}
<a href="https://www.designsafe-ci.org/user-guide/curating/policies/">
DesignSafe policies
</a>{' '}
and has been removed. The metadata is still available.
</div>
}
/>
Expand Down