diff --git a/components/DatasetDetails/DatasetDescriptionInfo.vue b/components/DatasetDetails/DatasetDescriptionInfo.vue
index 6d47380..f21383e 100644
--- a/components/DatasetDetails/DatasetDescriptionInfo.vue
+++ b/components/DatasetDetails/DatasetDescriptionInfo.vue
@@ -13,32 +13,42 @@
Metadata
- Experimental Design:
+
+ Intended Use: {{ intendedUseText }}
+ Current Use: {{ currentUse }}
+ Device Type: {{ deviceType }}
+ Application: {{ deviceApplication }}
+ Device Target (disease or disorder): {{ deviceTarget }}
+ Target Population:
+
+
+ Experimental Design:
+
+
Protocol Links:
+
+
+
+
+ N/A
+
+
+
+ Experimental Approach: {{experimentalApproachText}}
+
+ Subject Information:
+
-
Protocol Links:
-
-
-
-
- n/a
-
-
-
- Experimental Approach: {{experimentalApproachText}}
-
- Subject Information:
-
- Anatomical structure: {{anatomicalStructureText}}
+ Anatomical Structure: {{anatomicalStructureText}}
Species: {{speciesText}}
@@ -47,10 +57,10 @@
Sex: {{sexText}}
- Age range: {{ageRangeText}}
+ Age Range: {{ageRangeText}}
-
-
Number of samples: {{samplesMetadataText}}
+
+ Number of Samples: {{samplesMetadataText}}
@@ -146,7 +156,7 @@ export default {
},
computed: {
- ...mapState(useMainStore, ['datasetFacetsData','datasetInfo', 'userToken']),
+ ...mapState(useMainStore, ['datasetFacetsData', 'datasetTypeName', 'datasetInfo', 'userToken']),
EMBARGO_ACCESS() {
return EMBARGO_ACCESS
},
@@ -182,7 +192,37 @@ export default {
{
return `${this.numberSamples} samples from ${this.numberSubjects} subjects`
}
- return 'n/a'
+ return 'N/A'
+ },
+ intendedUseText() {
+ let intendedUse = _.get(this.datasetMetadataInfo, 'device.intendedUse[0].name', 'N/A')
+ if (intendedUse.length > 0)
+ intendedUse = intendedUse.charAt(0).toUpperCase() + intendedUse.slice(1)
+ return intendedUse
+ },
+ currentUse() {
+ let currentUse = _.get(this.datasetMetadataInfo, 'device.currentUse[0].name', 'N/A')
+ if (currentUse.length > 0)
+ currentUse = currentUse.charAt(0).toUpperCase() + currentUse.slice(1)
+ return currentUse
+ },
+ deviceType() {
+ let deviceType = _.get(this.datasetMetadataInfo, 'device.type[0].name', 'N/A')
+ if (deviceType.length > 0)
+ deviceType = deviceType.charAt(0).toUpperCase() + deviceType.slice(1)
+ return deviceType
+ },
+ deviceApplication() {
+ let deviceApplication = _.get(this.datasetMetadataInfo, 'device.application[0].description', 'N/A')
+ if (deviceApplication.length > 0)
+ deviceApplication = deviceApplication.charAt(0).toUpperCase() + deviceApplication.slice(1)
+ return deviceApplication
+ },
+ deviceTarget() {
+ let deviceTarget = _.get(this.datasetMetadataInfo, 'device.target[0].name', 'N/A')
+ if (deviceTarget.length > 0)
+ deviceTarget = deviceTarget.charAt(0).toUpperCase() + deviceTarget.slice(1)
+ return deviceTarget
},
/**
* Gets dataset id
@@ -208,6 +248,9 @@ export default {
url += `?api_key=${this.userToken}`
}
return url
+ },
+ isDevice() {
+ return this.datasetTypeName == 'device'
}
},
@@ -228,7 +271,7 @@ export default {
const facet = this.datasetFacetsData.find(item => item.key === facetKey)
if (facet === undefined || !facet.children)
{
- return 'n/a'
+ return 'N/A'
}
facet.children.forEach(child => {
let childLabel = child.label.charAt(0).toUpperCase() + child.label.slice(1)
diff --git a/components/DatasetDetails/DatasetHeader.vue b/components/DatasetDetails/DatasetHeader.vue
index 5748504..0ea6363 100644
--- a/components/DatasetDetails/DatasetHeader.vue
+++ b/components/DatasetDetails/DatasetHeader.vue
@@ -187,10 +187,10 @@ export default {
return !this.embargoed && this.numCitations !== 0
},
numCitationsText: function() {
- return this.showCitations ? `${this.numCitations}` : 'n/a'
+ return this.showCitations ? `${this.numCitations}` : 'N/A'
},
numDownloadsText: function() {
- return this.embargoed ? 'n/a' : `${this.numDownloads}`
+ return this.embargoed ? 'N/A' : `${this.numDownloads}`
}
},