Skip to content

Commit c24d190

Browse files
committed
updated demo protocol
1 parent 3e83e2d commit c24d190

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

activities/responsesReferenceActivity/activities/conditionalRefereeActivity_schema

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
{
2-
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc1/contexts/generic",
2+
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
33
"@type": "reproschema:Activity",
44
"@id": "conditionalRefereeActivity_schema",
55
"prefLabel": "Single Radio Button Activity",
66
"description": "Contains a single radio button item.",
77
"preamble": "Respond to this activity so that the conditional referer activity has a non-null value to reference.",
8-
"schemaVersion": "1.0.0-rc1",
8+
"schemaVersion": "1.0.0",
99
"version": "0.0.1",
1010
"ui": {
1111
"addProperties": [
12+
{"isAbout": "../../Activity3/items/text_item",
13+
"variableName": "text_item",
14+
"isVis": true,
15+
"allow": [
16+
"reproschema:Skipped"
17+
]
18+
},
1219
{"isAbout": "../../selectActivity/items/radio_item",
1320
"variableName": "radio_item",
1421
"isVis": true
1522
}
1623
],
1724
"order": [
25+
"../../Activity3/items/text_item",
1826
"../../selectActivity/items/radio_item"
1927
],
2028
"shuffle": false,

activities/responsesReferenceActivity/activities/conditionalRefererActivity_schema

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
{
2-
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc1/contexts/generic",
2+
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
33
"@type": "reproschema:Activity",
4-
"@id": "siblingReferenceActivity_schema",
4+
"@id": "conditionalRefererActivity_schema",
55
"prefLabel": "Sibling Reference Activity",
6-
"description": "Demoes conditional visibility by referring to the global responses variable that stores all responses.",
6+
"description": "Demos conditional visibility by referring to the global responses variable that stores all responses.",
77
"preamble": "If you selected Response option 1 in the first question, you should see an email question. Otherwise, you should see a text entry question. If you see both or neither, something is broken.",
8-
"schemaVersion": "1.0.0-rc1",
8+
"schemaVersion": "1.0.0",
99
"version": "0.0.1",
1010
"ui": {
1111
"addProperties": [
1212
{"isAbout": "../../Activity3/items/email_item",
1313
"variableName": "email_item",
14-
"isVis": "[0].includes(responses['https://raw.githubusercontent.com/ReproNim/demo-protocol/tst/static/activities/selectActivity/items/radio_item'])",
14+
"isVis": "[0].includes(referee.radio_item)",
1515
"allow": [
1616
"reproschema:Skipped"
1717
]
1818
},
1919
{"isAbout": "../../Activity3/items/text_item",
2020
"variableName": "text_item",
21-
"isVis": "[1, 2].includes(responses['https://raw.githubusercontent.com/ReproNim/demo-protocol/tst/static/activities/selectActivity/items/radio_item'])",
21+
"isVis": "[1, 2].includes(referee.radio_item)",
2222
"allow": [
2323
"reproschema:Skipped"
2424
]

activities/responsesReferenceActivity/responsesReferenceActivity_schema

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc1/contexts/generic",
2+
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
33
"@type": "reproschema:Activity",
4-
"@id": "siblingReferenceActivity_schema",
4+
"@id": "responseReferenceActivity_schema",
55
"prefLabel": "Global Responses Reference Activity",
66
"description": "Demonstrates conditional visibility by referring to the global responses variable that stores all responses.",
77
"preamble": "Demonstrates conditional visibility by referring to the global responses variable that stores all responses. After answering the first question, the second question will be determined by referring to your first answer in the global responses object.",
8-
"schemaVersion": "1.0.0-rc1",
8+
"schemaVersion": "1.0.0",
99
"version": "0.0.1",
1010
"ui": {
1111
"addProperties": [

0 commit comments

Comments
 (0)