Skip to content

Commit 67c1bfd

Browse files
committed
refactor items to include demo elements
1 parent 127eef0 commit 67c1bfd

File tree

6 files changed

+44
-1
lines changed

6 files changed

+44
-1
lines changed

DemoProtocol/DemoProtocol_schema

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
],
5858
"shuffle": false,
5959
"allow": [
60+
"reproschema:AutoAdvance",
6061
"reproschema:AllowExport"
6162
]
6263
}

activities/Activity3/Activity3_schema

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,17 @@
5757
"allow": [
5858
"reproschema:Skipped"
5959
]
60+
},
61+
{"isAbout": "items/float_with_units_item",
62+
"variableName": "float_unit_item",
63+
"isVis": true,
64+
"allow": [
65+
"reproschema:Skipped"
66+
]
6067
}
6168
],
6269
"order": [
70+
"items/float_with_units_item",
6371
"items/integer_item",
6472
"items/float_item",
6573
"items/text_item",
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
3+
"@type": "reproschema:Field",
4+
"@id": "float_with_units_item",
5+
"prefLabel": "float unit item",
6+
"description": "This is a float item with a unit.",
7+
"schemaVersion": "1.0.0",
8+
"version": "0.0.1",
9+
"question": "This is an item where the user can input a float like 3.1415926... and a unit",
10+
"ui": {
11+
"inputType": "float"
12+
},
13+
"responseOptions": {
14+
"valueType": "xsd:float",
15+
"unitOptions": [
16+
{
17+
"prefLabel": {"en": "Celsius"},
18+
"value": "C"
19+
},
20+
{
21+
"prefLabel": {"en": "Fahrenheit"},
22+
"value": "F"
23+
}
24+
]
25+
}
26+
}

activities/Activity3/items/text_item

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"description": "This is a text item.",
77
"schemaVersion": "1.0.0",
88
"version": "0.0.1",
9-
"question": "This is an item where the user can input some text with a max length of 300.",
9+
"question": "This is an item where the user can input some text.",
1010
"ui": {
1111
"inputType": "text"
1212
},

activities/selectActivity/items/select_item

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
{
2828
"name": "Response option 3",
2929
"value": 2
30+
},
31+
{
32+
"name": "Other",
33+
"value": "Other"
3034
}
3135
]
3236
}

activities/selectActivity/items/select_item_multiple_choice

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
{
2828
"name": "Response option 3",
2929
"value": 2
30+
},
31+
{
32+
"name": "Other",
33+
"value": "Other"
3034
}
3135
]
3236
}

0 commit comments

Comments
 (0)