Skip to content
Snippets Groups Projects
Commit 99c4682b authored by Nicoleta Ursu's avatar Nicoleta Ursu
Browse files

feat: add article description column

parent f50cbc57
No related branches found
No related tags found
No related merge requests found
Pipeline #18060 failed with stage
in 0 seconds
...@@ -73,9 +73,12 @@ const User = ({ manuscriptId, manuscript, submitter, history, ...props }) => { ...@@ -73,9 +73,12 @@ const User = ({ manuscriptId, manuscript, submitter, history, ...props }) => {
{process.env.INSTANCE_NAME === 'aperture' && ( {process.env.INSTANCE_NAME === 'aperture' && (
<Cell>{manuscript.meta && manuscript.meta.title}</Cell> <Cell>{manuscript.meta && manuscript.meta.title}</Cell>
)} )}
{['elife', 'ncrc'].includes(process.env.INSTANCE_NAME) && ( {['elife'].includes(process.env.INSTANCE_NAME) && (
<Cell>{manuscript.submission && manuscript.submission.articleId}</Cell> <Cell>{manuscript.submission && manuscript.submission.articleId}</Cell>
)} )}
{['ncrc'].includes(process.env.INSTANCE_NAME) && (
<Cell><span style={{wordBreak: "break-word"}}>{manuscript.submission && manuscript.submission.articleDescription}</span></Cell>
)}
<Cell>{convertTimestampToDate(manuscript.created)}</Cell> <Cell>{convertTimestampToDate(manuscript.created)}</Cell>
<Cell>{convertTimestampToDate(manuscript.updated)}</Cell> <Cell>{convertTimestampToDate(manuscript.updated)}</Cell>
{process.env.INSTANCE_NAME === 'ncrc' && ( {process.env.INSTANCE_NAME === 'ncrc' && (
......
...@@ -114,10 +114,15 @@ const Manuscripts = ({ history, ...props }) => { ...@@ -114,10 +114,15 @@ const Manuscripts = ({ history, ...props }) => {
{process.env.INSTANCE_NAME === 'aperture' && ( {process.env.INSTANCE_NAME === 'aperture' && (
<SortHeader thisSortName="meta:title">Title</SortHeader> <SortHeader thisSortName="meta:title">Title</SortHeader>
)} )}
{['elife', 'ncrc'].includes(process.env.INSTANCE_NAME) && ( {['elife'].includes(process.env.INSTANCE_NAME) && (
<SortHeader thisSortName="submission:articleId"> <SortHeader thisSortName="submission:articleId">
Article Id Article Id
</SortHeader> </SortHeader>
)}
{['ncrc'].includes(process.env.INSTANCE_NAME) && (
<SortHeader thisSortName="submission:articleDescription">
Description
</SortHeader>
)} )}
<SortHeader thisSortName="created">Created</SortHeader> <SortHeader thisSortName="created">Created</SortHeader>
<SortHeader thisSortName="updated">Updated</SortHeader> <SortHeader thisSortName="updated">Updated</SortHeader>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment