Skip to content

Commit

Permalink
Merge pull request #191 from nih-sparc/add-sds-version-to-abstract-tab
Browse files Browse the repository at this point in the history
Added sds version to abstract tab
  • Loading branch information
egauzens authored Aug 27, 2024
2 parents 1ff276b + 2310665 commit 2c2a68b
Showing 1 changed file with 26 additions and 0 deletions.
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>

0 comments on commit 2c2a68b

Please sign in to comment.