Skip to content

Commit

Permalink
[FIX] adjust display on Dataset Description page
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Levitas committed Aug 16, 2023
1 parent 3ccc40c commit e59a1a3
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 15 deletions.
10 changes: 5 additions & 5 deletions handler/ezBIDS_core/ezBIDS_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,22 +239,22 @@ def generate_dataset_description(DATA_DIR, bids_compliant):
dataset_description_dic["GeneratedBy"] = [
{
"Name": "ezBIDS",
"Version": "n/a",
"Version": "1.0.0",
"Description": "ezBIDS is a web-based tool for converting neuroimaging datasets to BIDS, requiring"
" neither coding nor knowledge of the BIDS specification",
"CodeURL": "https://brainlife.io/ezbids/",
"Container": {
"Type": "n/a",
"Tag": "n/a"
"Type": "docker",
"Tag": "brainlife/ezbids-handler"
}
}
]

dataset_description_dic["SourceDatasets"] = [
{
"DOI": "n/a",
"URL": "https://brainlife.io/ezbids/",
"Version": "1.0.0"
"URL": "n/a",
"Version": "n/a"
}
]

Expand Down
49 changes: 39 additions & 10 deletions ui/src/Description.vue
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,46 @@ export default defineComponent({
<el-input placeholder="DOI assigned for this dataset"
v-model="dd.DatasetDOI"/>
</el-form-item>
<!-- <el-form-item label="GeneratedBy" prop="GeneratedBy">
<el-select v-model="dd.GeneratedBy" :items="dd.GeneratedBy" filled return-object
placeholder="Specify provenance of the dataset" style="width: 100%">
</el-select>
</el-form-item> -->
<el-form-item label="SourceDatasets" prop="SourceDatasets">
<el-select v-model="dd.SourceDatasets" multiple filterable allow-create default-first-option
placeholder="Specify location(s) and relevant attribute(s) of all source datasets" style="width: 100%">
</el-select>
</el-form-item>

<!-- <el-form-item label="GeneratedBy">
<div v-if="dd.GeneratedBy && dd.GeneratedBy[0]">
<template v-for="(value, key, index) in dd.GeneratedBy[0]" :key="index">
<el-form-item v-if="key !== 'Container'" :label="key">
<el-input :placeholder="value" v-model="dd.GeneratedBy[0][key]" />
</el-form-item>
</template>
<label class="el-form-item">Container</label>
<div v-if="dd.GeneratedBy[0].Container">
<el-form-item v-for="(containerValue, containerKey, containerIndex) in dd.GeneratedBy[0].Container" :key="containerIndex" :label="containerKey">
<el-input :placeholder="containerValue" v-model="dd.GeneratedBy[0].Container[containerKey]" />
</el-form-item>
</div>
</div>
</el-form-item> -->

<el-form-item label="GeneratedBy">
<br>
<div v-if="dd.GeneratedBy && dd.GeneratedBy[0]">
<template v-for="(value, key, index) in dd.GeneratedBy[0]" :key="index">
<el-form-item v-if="key !== 'Container'" :label="key">
<el-input :placeholder="value" v-model="dd.GeneratedBy[0][key]"/>
</el-form-item>
<el-form-item v-if="key == 'Container'" :label="key" style="width: 50px"></el-form-item>
</template>
<div v-if="dd.GeneratedBy[0].Container">
<el-form-item v-for="(containerValue, containerKey, containerIndex) in dd.GeneratedBy[0].Container" :key="containerIndex" :label="containerKey">
<el-input :placeholder="containerValue" v-model="dd.GeneratedBy[0].Container[containerKey]" />
</el-form-item>
</div>
</div>
</el-form-item>
<el-form-item label="SourceDatasets">
<div v-if="dd.SourceDatasets && dd.SourceDatasets[0]">
<el-form-item v-for="(value, key) in dd.SourceDatasets[0]" :key="key" :label="key">
<el-input :placeholder="value" v-model="dd.SourceDatasets[0][key]" />
</el-form-item>
</div>
</el-form-item>
<p style="border-top: 1px solid #0002" prop="readme"/>
<el-form-item label="README(.md)">
<el-input type="textarea"
Expand Down

0 comments on commit e59a1a3

Please sign in to comment.