forked from sakaiproject/sakai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme_sitesetup_question.txt
56 lines (44 loc) · 3.12 KB
/
readme_sitesetup_question.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
The functionality of adding prompt for questions during the site creation process is added according to SAK-12912.
/****************** Steps for uploading the question definitions **************************/
1. Admin user needs to use the Admin Sites tool to create a project site named "setupQuestionsAdmin" with Resources tool enabled.
2. In the Resources tool, create a folder named "config";
3. Upload the question definition xml file with name "questions.xml" into the config folder.
The first time Sakai invokes the Worsite Setup tool after the file is in place, the question definitions are loaded and are ready for use for Site Creation.
/******************** template for questions.xml ***************************/
The template the questions.xml is as follows:
<?xml version="1.0" encoding="UTF-8" ?>
<SiteSetupQuestions>
<site type="project">
<header>Please answer the following to help us understand how Sakai is being used for this project site.</header>
<url><a href="http://www.google.com" target="_blank">More info</a></url>
<question required="true" multiple_answers="false">
<q>In what capacity are you creating this site?</q>
<answer>Student</answer>
<answer>Faculty</answer>
<answer>Staff</answer>
</question>
<question required="false" multiple_answers="false">
<q>The primary use for this project site will be:</q>
<answer>Learning</answer>
<answer>Research</answer>
<answer>Administrative</answer>
<answer>Personal</answer>
<answer>Student group/organization</answer>
<answer fillin_blank="true">Other</answer>
</question>
</site>
<site type="course">
<header>Please answer the following to help us understand how Sakai is being used for this course site.</header>
<question required="true" multiple_answers="false">
<q>The primary use for this course site will be:</q>
<answer>Student</answer>
<answer>Faculty</answer>
<answer>Staff</answer>
</question>
</site>
</SiteSetupQuestions>
----------------------------------------------------------------------------------------------------------------------------------------
The functionality to change question set after deployment is added SAK-14748: "For the set of questions to be asked during the Worksite setup, need to allow admin upload new question set, while preserving the old questions/answers/user responses"
1. The maintainer of site id="setupQuestionsAdmin"(id configurable) can still upload questions.xml file according to above steps. Once the file is loaded, db is populated with questions, and the questions.xml file is moved into a backup folder in "setupQuestionsAdmin" Resources tool.
2. In order to upload new question set, the maintainer just upload a new questions.xml into the config folder. The file gets read and Sakai inserts the new questions into db and marks previous questions as "old" questions. Only the current "new" questions will be asked upon user login, while all the old questions and answers are preserved in db.
3. The above question update process (step 2) can be repeated if needed.