Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Integrating OSWeb as a JATOS Component

Hi erveryone,

I am trying to integrate a OSWeb study as one component of a labjs JATOS study but haven't had much luck so far. The goal is to host a normal questionnaire as one component that participants work on first and then add an additional component that should be the OSWeb task. How can I set this up? The import of the two separate studies works - I tried combining the files from the .zip folders in a new .zip folder with different subdirectories plus adjusting the jason file but JATOS keeps informing me that the study is invalid. Do you have any tips/advice for debugging or solving that problem?

Thank you!

Comments

  • Hi Sophie,

    That’s a common misconception: you should not create a zip file by zipping it by hand - you should instead do it by Exporting a study from JATOS.*

    To combine two zipped studies into two components, you could do the following:

    1- Import the labjs_study.zip into JATOS. You should get one study with a single component. Identify the folder in your local computer where these study assets are.

    2-Import the OSWeb_study.zip into JATOS. On the component bar, click on More> Export Properties. Save this file on your (e.g.) Desktop.

    3-In the first study, go to Components>Import Properties. This will create a new component in your first study, with the correct properties, including the HTML/JS file that actually runs your study.

    4-Unzip your OSWeb_study.zip on your (e.g.) Desktop. Identify the HTML file that corresponds to your component, created in OSWeb. Move this file to the study assets of the labjs one. If you have css files and other assets, move that too-.

    5-Now you have one study with two components. Note that you will likely need to modify the JavaScript code itself in the first component. It will probably have a line that reads jatos.endStudy. You'll have to replace it with jatos.startNextComponent (see here for more details http://www.jatos.org/jatos.js-Reference.html#jatosstartnextcomponentresultdata-onerror)

    6-Export your study (with two components) as a single .zip file by clicking on Export on the study bar

    This sounds complicated but is actually rather simple. If you have problems, let us know

    Elisa

    *In the latest JATOS release we changed the extension .zip to .jzip, with the hope that lesss people will be tempted to create a .zip file by hand.

  • Thank you, Elisa, for this detailed explanation - it worked perfectly!

  • Hi!

    I have the same issue but can't seem to make it work. I create a simple questionnaire using lab.js and exported it. I was then able to import it in JATOS and it runs ok.

    I also have another study exported from OSWeb that works in JATOS. However, I cannot combine the two as per your guidelines above. Specifically:

    3-In the first study, go to Components>Import Properties. This will create a new component in your first study, with the correct properties, including the HTML/JS file that actually runs your study.

    When I do it, I need to choose a file to import. I can then import my OSWeb/opensesame experiment

    4-Unzip your OSWeb_study.zip on your (e.g.) Desktop. Identify the HTML file that corresponds to your component, created in OSWeb. Move this file to the study assets of the labjs one. If you have css files and other assets, move that too-.

    I can unzip it but I am not sure what you mean with "move this to the study asset". Also, I don't seem to have the HTML file..

    Am I missing something?

    Thank you!

  • Hm, let's see.

    Point 3 is dependent on Point 2. Were you able to export the properties of the OSWeb component, and save the properties file as .jac file on your Desktop? You have to click More>Export on the component bar. The .jac file is what you need to import on Step 3.

    Here'a a screenshot of how that would look on a different study with more components, but it should be illustrative nevertheless



    And Point 4 is dependent on Point 1:

    Your study assets is on your JATOS installation folder. For example, if I run JATOS locally (and I recommend you do too, to combine components from two studies), my study folders are all in /Applications/jatos/study_assets_root. Within the study_assets_root folder you should see the folder that corresponds to your study. (That was point 1).

    What are the contents of your unzipped OSWeb study? You should have an HTML file...

    Best

    Elisa

  • Hi !:)

    I have a questionnaire and an osweb component in an online study in Jatos. I did everything as suggested above and it works. Thank you for the good instructions!!! However, one of my loops in the osweb experiment has an error for some participants. Is it possible to keep the same link of the study, but change the osweb component with a new one?

    Thank you!:)

  • The short answer is yes. Even if you update the study scripts, the link to it will remain the same.

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games