From c24d1901cdc78244de31aa3fc2525603e6ebc544 Mon Sep 17 00:00:00 2001 From: Satrajit Ghosh Date: Sat, 31 Aug 2024 11:31:02 -0400 Subject: [PATCH] updated demo protocol --- .../activities/conditionalRefereeActivity_schema | 12 ++++++++++-- .../activities/conditionalRefererActivity_schema | 12 ++++++------ .../responsesReferenceActivity_schema | 6 +++--- 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/activities/responsesReferenceActivity/activities/conditionalRefereeActivity_schema b/activities/responsesReferenceActivity/activities/conditionalRefereeActivity_schema index fee5fb5..bd4ec51 100644 --- a/activities/responsesReferenceActivity/activities/conditionalRefereeActivity_schema +++ b/activities/responsesReferenceActivity/activities/conditionalRefereeActivity_schema @@ -1,20 +1,28 @@ { - "@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc1/contexts/generic", + "@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema", "@type": "reproschema:Activity", "@id": "conditionalRefereeActivity_schema", "prefLabel": "Single Radio Button Activity", "description": "Contains a single radio button item.", "preamble": "Respond to this activity so that the conditional referer activity has a non-null value to reference.", - "schemaVersion": "1.0.0-rc1", + "schemaVersion": "1.0.0", "version": "0.0.1", "ui": { "addProperties": [ + {"isAbout": "../../Activity3/items/text_item", + "variableName": "text_item", + "isVis": true, + "allow": [ + "reproschema:Skipped" + ] + }, {"isAbout": "../../selectActivity/items/radio_item", "variableName": "radio_item", "isVis": true } ], "order": [ + "../../Activity3/items/text_item", "../../selectActivity/items/radio_item" ], "shuffle": false, diff --git a/activities/responsesReferenceActivity/activities/conditionalRefererActivity_schema b/activities/responsesReferenceActivity/activities/conditionalRefererActivity_schema index 7866248..114a60c 100644 --- a/activities/responsesReferenceActivity/activities/conditionalRefererActivity_schema +++ b/activities/responsesReferenceActivity/activities/conditionalRefererActivity_schema @@ -1,24 +1,24 @@ { - "@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc1/contexts/generic", + "@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema", "@type": "reproschema:Activity", - "@id": "siblingReferenceActivity_schema", + "@id": "conditionalRefererActivity_schema", "prefLabel": "Sibling Reference Activity", - "description": "Demoes conditional visibility by referring to the global responses variable that stores all responses.", + "description": "Demos conditional visibility by referring to the global responses variable that stores all responses.", "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.", - "schemaVersion": "1.0.0-rc1", + "schemaVersion": "1.0.0", "version": "0.0.1", "ui": { "addProperties": [ {"isAbout": "../../Activity3/items/email_item", "variableName": "email_item", - "isVis": "[0].includes(responses['https://raw.githubusercontent.com/ReproNim/demo-protocol/tst/static/activities/selectActivity/items/radio_item'])", + "isVis": "[0].includes(referee.radio_item)", "allow": [ "reproschema:Skipped" ] }, {"isAbout": "../../Activity3/items/text_item", "variableName": "text_item", - "isVis": "[1, 2].includes(responses['https://raw.githubusercontent.com/ReproNim/demo-protocol/tst/static/activities/selectActivity/items/radio_item'])", + "isVis": "[1, 2].includes(referee.radio_item)", "allow": [ "reproschema:Skipped" ] diff --git a/activities/responsesReferenceActivity/responsesReferenceActivity_schema b/activities/responsesReferenceActivity/responsesReferenceActivity_schema index c3d8f8c..afd4631 100644 --- a/activities/responsesReferenceActivity/responsesReferenceActivity_schema +++ b/activities/responsesReferenceActivity/responsesReferenceActivity_schema @@ -1,11 +1,11 @@ { - "@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc1/contexts/generic", + "@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema", "@type": "reproschema:Activity", - "@id": "siblingReferenceActivity_schema", + "@id": "responseReferenceActivity_schema", "prefLabel": "Global Responses Reference Activity", "description": "Demonstrates conditional visibility by referring to the global responses variable that stores all responses.", "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.", - "schemaVersion": "1.0.0-rc1", + "schemaVersion": "1.0.0", "version": "0.0.1", "ui": { "addProperties": [