diff --git a/config/miappe/wizard.config.js b/config/miappe/wizard.config.js index 384218e..8f634c4 100644 --- a/config/miappe/wizard.config.js +++ b/config/miappe/wizard.config.js @@ -85,6 +85,7 @@ window.config = { "defaultProtocols": [ { + "id": "growth", "name": "Growth", "parameters": [ { "label":"Growth facility", "explanation":"Type of growth facility in which the study was carried out" }, @@ -136,7 +137,12 @@ window.config = { ] }, { - "name": "Phenotyping" + "id": "phenotyping", + "name": "Phenotyping", + "parameters": [ + { "label": "Phenotyping method", "explanation": "The method that was used for phenotyping e.g. human bonitur" }, + { "label": "Phenotyping facility", "explanation": "Facility used for automatic plant phenotyping e.g. LemnaTec" }, + ] } ] } diff --git a/config/miappe/wizard.steps.config.js b/config/miappe/wizard.steps.config.js index 783c55b..6d264bb 100644 --- a/config/miappe/wizard.steps.config.js +++ b/config/miappe/wizard.steps.config.js @@ -199,6 +199,7 @@ window.steps = [ { title: 'Please select all Parameters, which are constant for all Samples of your Experiment.', component: 'ProtocolParametersSelect', + protocolId: 'growth', jsonPath: 'studies[0].protocols[0].parameters' }, { @@ -206,6 +207,24 @@ window.steps = [ component: 'FactorsSelect', jsonPath: 'studies[0].factors' }, + { + hooks: [ + { + type: 'addProtocol', + parameters: { + protocolName: 'Phenotyping', + protocolVersion: 'MIAPPE v1.1', + protocolParameters: ['Phenotyping method'] + } + } + ], + title: 'Please select all Parameters corresponding to your phenotyping.', + component: 'ProtocolParametersSelect', + componentConfig: { + protocolId: 'phenotyping' + }, + jsonPath: 'studies[0].protocols[1].parameters' + }, { title: 'Upload template', component: 'Uploader', diff --git a/src/components/isa/study/ProtocolParametersSelect.svelte b/src/components/isa/study/ProtocolParametersSelect.svelte index 54a92c5..f9201c7 100644 --- a/src/components/isa/study/ProtocolParametersSelect.svelte +++ b/src/components/isa/study/ProtocolParametersSelect.svelte @@ -1,6 +1,7 @@