Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added sds version to abstract tab #191

Merged
merged 1 commit into from
Aug 27, 2024
Merged
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
26 changes: 26 additions & 0 deletions components/DatasetDetails/DatasetDescriptionInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,22 @@
<div v-if="!isDevice" class="experimental-design-container mb-16">
<span><strong>Number of Samples: </strong>{{samplesMetadataText}}</span>
</div>
<div class="mb-16" v-if="sdsVersion != undefined">
<span>
<strong>SDS Version:
</strong>{{sdsVersion}}
<sparc-tooltip
placement="left-center"
>
<template #item>
<svgo-icon-help class="help-icon"/>
</template>
<template #data>
The version of the <a href="https://docs.sparc.science/docs/sparc-dataset-structure">SPARC Dataset Structure</a> used when publishing this dataset.
</template>
</sparc-tooltip>
</span>
</div>
<div class="mb-16">
<sparc-tooltip
v-if="datasetInfo.embargo"
Expand Down Expand Up @@ -238,6 +254,9 @@ export default {
versionId: function() {
return propOr(0, 'version', this.datasetInfo)
},
sdsVersion: function () {
return _.get(this.datasetMetadataInfo.item, 'sds_version')
},
/**
* Computes the API url for downloading the metadata of a dataset
* @returns {String}
Expand Down Expand Up @@ -294,6 +313,8 @@ export default {
</script>

<style lang="scss" scoped>
@import 'sparc-design-system-components-2/src/assets/_variables.scss';

.dataset-description-info {
overflow-wrap: anywhere;
word-wrap: normal;
Expand Down Expand Up @@ -327,5 +348,10 @@ export default {
min-width: 6.75rem;
}
}
.help-icon {
color: $purple;
height: 1.5rem;
width: 1.5rem;
}
}
</style>
Loading