Commit c1845c39 authored by Oleksii Savran's avatar Oleksii Savran
Browse files

Display source as active URL

Added Markdown for source editor, fixed Markdown in display
parent 960e9ea8
Pipeline #7004 passed with stages
in 4 minutes and 40 seconds
......@@ -388,7 +388,9 @@ class DetailInfo extends React.Component<IDetailInfoProps, any> {
<Grid container spacing={ 0 }>
<Properties>
<PropertiesItem title="Date of dataset:"><McpdDate value={ dataset.created }/></PropertiesItem>
<PropertiesItem title="Related resources:">{ dataset.source }</PropertiesItem>
<PropertiesItem title="Related resources:">
<Markdown source={ dataset.source } />
</PropertiesItem>
<PropertiesItem title="Metadata create date:">
{ dataset.createdDate && <PrettyDate value={ dataset.createdDate } /> }
</PropertiesItem>
......
......@@ -80,7 +80,7 @@ class BasicInfoStep extends React.Component<ILoginContainerProps, any> {
/>
<Field
name="source"
component={ TextField }
component={ MarkdownField }
label="Source"
placeholder="A related resource from which the described dataset is derived (e.g., journal article, data article, conference proceedings). Use DOI, URL, Journal title, or Journal/conference title; vol., no. (year)"
/>
......
Markdown is supported
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