Skip to content
Open
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
1 change: 1 addition & 0 deletions src/pages/models/corcho-2022-collision/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ for_codes:
- 3706
- 370604
status: completed
doi:
software:
- name: UWGeodynamics
doi: 10.5281/zenodo.5606117
Expand Down
1 change: 1 addition & 0 deletions src/pages/models/mather-2022-groundwater/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ for_codes:
- 040601
- 040301
status: completed
doi:
software:
- name: Underworld2
doi: 10.5281/zenodo.7455999
Expand Down
1 change: 1 addition & 0 deletions src/pages/models/polanco-2023-deltas/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ for_codes:
- 0406
- 040601
status: completed
doi: 10.5194/egusphere-2023-53
software:
- name: Badlands
doi: 10.5281/zenodo.1069573
Expand Down
1 change: 1 addition & 0 deletions src/pages/models/sandiford-2021-detachment/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ for_codes:
- 3706
- 370604
status: completed
doi: ""
software:
- name: ASPECT
doi: 10.5281/zenodo.6903424
Expand Down
34 changes: 33 additions & 1 deletion src/templates/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const ModelTemplate = ({
research_tags,
title,
slug,
doi,
}) => {
const PostContent = contentComponent || Content
const dataset_url = (
Expand Down Expand Up @@ -132,10 +133,12 @@ const ModelTemplate = ({

<TabPanel key="overview">
<section id="abstract" className="model-page">
<h2>Abstract</h2>
<h2>Description</h2>
<p>{abstract}</p>
</section>



{
publication &&
<section id="publication" className="model-page">
Expand Down Expand Up @@ -175,6 +178,33 @@ const ModelTemplate = ({
</section>
}


{
doi &&
<section id="metadata" className="model-page">
<h2>Metadata & citation</h2>
{
doi &&
<BadgeDoi
doi={doi}
style={{marginBottom: "10px"}}
/>
}
<Citation data={doi}/>
{
licence_content &&
<ReadMore
openHeader="Hide metadata"
closedHeader="Show metadata"
>
<div className="licence-content">{licence_content}</div>
</ReadMore>
}
</section>
}



<section id="licence" className="model-page">
<h2>Licence</h2>
<a href={licence.licence_url}>
Expand Down Expand Up @@ -388,6 +418,7 @@ const ModelsPage = ({ data }) => {
research_tags={post.frontmatter.research_tags}
title={post.frontmatter.title}
slug={post.frontmatter.slug}
doi={post.frontmatter.doi}
/>
</Layout>
)
Expand All @@ -406,6 +437,7 @@ export const pageQuery = graphql`
frontmatter {
abstract
slug
doi
animations {
caption
src {
Expand Down