Skip to content

Commit

Permalink
fixed dataset header width and added citations
Browse files Browse the repository at this point in the history
  • Loading branch information
egauzens committed Jul 31, 2024
1 parent 604e51c commit 2bd5eb9
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 10 deletions.
61 changes: 52 additions & 9 deletions components/CitationDetails/CitationDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,47 @@
<div class="heading2 mb-8">
Dataset Citation
</div>
<body>
To promote reproducibility and give credit to investigators who publish
their data, we recommend citing your usage of SPARC datasets. To make it
easy, the SPARC Portal provides the full data citation, including the
option of different formats, under the Cite tab of each dataset page. For
more Information, please see our
<div class="label4">
How to cite this dataset
</div>
<div class="mb-8">
To promote reproducibility and give credit to your colleagues who publish their data, we recommend the following practices for
citing a SPARC Dataset. Please acknowledge the contributors, cite the dataset(s) that contained the files that you used, and
include the SPARC Portal URL & RRID of your future publications. To make it easy, the SPARC Portal provides the full data
citation, including the option of different citation formats below, to incorporate into your manuscript. For more Information,
including examples of how to include multiple datasets and repositories, please see our
<a
href="https://docs.sparc.science/docs/instructions-for-sparc-investigators-to-cite-their-datasets-in-manuscripts-1"
target="_blank"
>
Help page
</a>
.
</body>
<br />
</div>
<div class="label4">
{{ materialsCitationType.label }}
</div>
<div class="info-citation mb-16 py-16 pl-16 pr-24">
<button class="copy-button" @click="handleCitationCopy(materialsCitationType)">
<img src="../../static/images/copyIcon.png" />
</button>
<div class="citation-text">
{{ materialsCitationType.citationText }}
</div>
</div>
<div class="label4">
{{ availabilityCitationType.label }}
</div>
<div class="info-citation mb-16 py-16 pl-16 pr-24">
<button class="copy-button" @click="handleCitationCopy(availabilityCitationType)">
<img src="../../static/images/copyIcon.png" />
</button>
<div class="citation-text">
{{ availabilityCitationType.citationText }}
</div>
</div>
<div class="heading2 mb-8">
References
</div>
<div v-for="citationType in citationTypes" :key="citationType.type">
<div class="label4 mb-8">{{citationType.label}}</div>
<div class="info-citation mb-16 py-16 pl-16 pr-24" v-if="!hasCitationError" v-loading="citationLoading">
Expand Down Expand Up @@ -98,6 +124,23 @@ export default {
]
}
},
computed: {
datasetUrl() {
return `${this.$config.public.ROOT_URL}/datasets/${this.$route.params.datasetId}`
},
materialsCitationType() {
return {
label: 'Materials and Methods',
citationText: `Data and experimental protocols associated with this study are available on the SPARC Portal (RRID: SCR_017041): ${ this.datasetUrl }`
}
},
availabilityCitationType() {
return {
label: 'Data Availability Statement',
citationText: `Data are publicly available on the SPARC Portal (RRID:SCR_017041) at the following the URL: ${ this.datasetUrl }`
}
}
},
methods: {
/**
* gets bibiolography based on citation type for current DOI
Expand Down
4 changes: 3 additions & 1 deletion components/DatasetDetails/DatasetHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ export default {
flex-direction: row;
border: solid 1px $lineColor1;
background: white;
.el-row {
width: 100%;
}
:deep(.publications-container) {
display: flex;
a {
Expand Down

0 comments on commit 2bd5eb9

Please sign in to comment.