Skip to content

Commit

Permalink
fixed #6 (Protocol and its Parameters to be configurable)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-koenig committed Feb 19, 2024
1 parent 5d534ee commit d90015a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/components/isa/study/ProtocolParametersSelect.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ onMount(() => {
</div>
{/if}


{#if parameters.length > 0}
<div style="height: 400px; overflow-y: scroll;">
<table id="parameters-predefined">
<tr>
Expand All @@ -100,6 +102,7 @@ onMount(() => {
{/each}
</table>
</div>
{/if}

</section>

Expand Down
6 changes: 6 additions & 0 deletions src/components/questionnaire/GenericQuestionnaire.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ function addProtocol() {
let emptyParameter = Schemas.getObjectFromSchema('protocol_parameter');
emptyParameter.parameterName = Schemas.getObjectFromSchema('ontology_annotation');
emptyParameter.parameterName.annotationValue = parameterName;
let comment = Schemas.getObjectFromSchema('comment');
comment.name = 'value';
comment.value = '';
emptyParameter.comments = [comment];
emptyProtocol.parameters = [...emptyProtocol.parameters, emptyParameter];
}
}
Expand Down
2 changes: 1 addition & 1 deletion wizard.config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion wizard.steps.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ window.steps = [
protocolName: 'Growth',
protocolVersion: 'MIAPPE v1.1',
protocolDescription: 'How the plants were grown up.',
//protocolParameters: ['Light intensity', 'Air temperature']
protocolParameters: ['Light intensity', 'Air temperature']
}
},
{
Expand Down

0 comments on commit d90015a

Please sign in to comment.