Skip to content

File import

Julian Unkel edited this page Jun 11, 2019 · 2 revisions

File import

If you have not already downloaded the OSEM files to your hard drive, it is now time to do so (if you are using OSEM as is, you only need the files in the sosci-folder).

Import OSEM files

  1. Upload layout.osem.xml to SoSci via "Questionnaire / Questionnaire Layout / Import Layout from File". It will be automatically set to default layout, but you will want to use another layout for the main questionnaire, so set another one as default instead.
  2. Import the five variable files variables_xxx.xml via "List of Questions / New section / Import Question from File". Be sure to import them each as a new section and retain their default IDs ("CL", "CS", "DT", "MO", and "OS").
  3. Import osem.min.js via "Questionnaire / Image and Media Files / Upload media files".
  4. Finally, place a "PHP code" element at the top of both the "osemHub" and the "osemSpokes" questionnaire page. Copy the contents of hub.php into the PHP code element on "osemHub", and the contents of spokes.php into the PHP code on "osemSpokes". (No futher code needs to be placed on "osemEnd").

Demo project

Again, no specific steps are necessary for the demo project as long as you have followed the steps detailed above.

We can now configure the scripts to match our experiment design.