forked from jwnisbet/melodiesforus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsent.php
executable file
·148 lines (129 loc) · 5.73 KB
/
consent.php
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?php
//This is the actual form that requests consent in beginning of the experiment.
include_once('functions.php');
if(!curr_session_is_valid()) {
$hitId = time() . rand();
$workerId = time() . rand();
$treatmentId = 0;
// Force users to come from MTurk (or override)
if(USE_MTURK)
{
if(array_key_exists('override', $_REQUEST)) {
$hitId = 'testing_hit_id';
$workerId = 'test_mturk_id';
if(array_key_exists('treatmentId', $_REQUEST)) {
$treatmentId = intval($_REQUEST['treatmentId']);
}
}
if(array_key_exists('hitId', $_REQUEST)) {
$hitId = $_REQUEST['hitId'];
}
if(array_key_exists('workerId', $_REQUEST)) {
$workerId = $_REQUEST['workerId'];
}
//if($hitId && $workerId)
if ($workerId)
{
$sid = enter_new_session($hitId, $workerId);
if($treatmentId > 0)
{
edit_session(array('treatment_id'=>$treatmentId), false, 'override');
}
if(!$sid)
{
die("You have already completed a task on this site. You may not participate multiple times. Sorry for the inconvenience.");
}
}
else {
die("This page can only be accessed through the Mechanical Turk HIT. Please accept the task and click the link to this page from there.");
}
}
else
{
// Create new local session
$sid = enter_new_session($hitId, $workerId);
}
}
include_once('redirector.php');
?>
<script src="//code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script src="./eventRecorder.js"></script>
<link href="./assets/css/bootstrap.css" rel="stylesheet">
<p> </p>
<script>
function turkGetParam( name ) { // This function gets URL parameters
name = name.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");
var regexS = "[\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );
if( results == null )
return "";
else
return results[1];
}
</script>
<?php
if(CONSENT_SHOW) {
?>
<div style="width:800px">
<p><strong>Title of Project:</strong> Music purchasing study</p>
<p> </p>
<table style="border:0px;">
<tbody>
<tr>
<td style="padding-right:0px" valign="top"><strong>Principal Investigator:</strong></td>
<td valign="bottom">Alan Nochenson / 309 IST Building / University Park, PA 16802 / [email protected]</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td style="padding-right:0px" valign="top"><strong>Advisor:</strong></td>
<td valign="bottom">Jens Grossklags / 329A IST Building / University Park, PA 16802 / [email protected]</td>
</tr>
</tbody>
</table>
<br>
<ol>
<li><strong>Purpose of the Study:</strong> We aim to study music purchasing behaviors.</li>
<li><strong>Procedures to be followed:</strong> To complete this study, you will be given $1.50 with which you have to purchase the <b>single</b> song from a music store. In the store, you may sample the songs and interact with the shopping environment. Afterwards, you will fill out a survey questionnaire.</li>
<li><strong>Duration/Time:</strong> The whole process should take you about 10-15 minutes on average.</li>
<li><strong>Statement of Confidentiality:</strong> Your participation in this research is confidential. In the event of a publication or presentation resulting from the research, no personally identifiable information will be shared.</li>
<li><strong>Right to Ask Questions:</strong> Please contact Alan Nochenson at [email protected] with questions or concerns about this study.</li>
<li><strong>Payment for participation:</strong> For this study, we have given to you (in addition to the participation reward) a starting budget of $1.50. Using this budget, you have to purchase exactly one song in the music store. Any transaction in the shopping environment reduces your starting budget as described in the shopping environment. At the end of the study, you will receive any remaining money as a bonus payment. </li>
<li><strong>Voluntary Participation:</strong> Your decision to take part in this research is voluntary. You can stop at any time. You do not have to answer any questions you do not want to answer. If this is the case, please abandon the Mechanical Turk HIT and exit the task.</li>
<li>You must be 18 years of age or older to consent to take part in this research study. If you agree to take part in this research study and to the conditions outlined above, please click the button below. If you do not consent, please exit the survey now and abandon the Mechanical Turk HIT.</li>
</ol>
</div>
<a id='beginBtn' class='btn btn-primary btn-small' href='./process_consent.php?consent=yes'>I agree to the above terms</a>
<?php
}
else {
?>
<div class='startButtonCollection'>
<p>
Enter Participant Group (1-12)
</p>
<form class='participantGroupForm' action='process_consent.php' method='GET'>
<input type='number' name='participant_group' min='1' max='12'>
<p>
Click 'Start' to begin a new session.
</p>
<input id='beginBtn' class='btn btn_primary startUp' type='submit' name='consent' value='Start'>
</form>
</div>
<?php
}
?>
<script src="./assets/js/bootstrap-transition.js"></script>
<script src="./assets/js/bootstrap-alert.js"></script>
<script src="./assets/js/bootstrap-modal.js"></script>
<script src="./assets/js/bootstrap-dropdown.js"></script>
<script src="./assets/js/bootstrap-scrollspy.js"></script>
<script src="./assets/js/bootstrap-tab.js"></script>
<script src="./assets/js/bootstrap-tooltip.js"></script>
<script src="./assets/js/bootstrap-popover.js"></script>
<script src="./assets/js/bootstrap-button.js"></script>
<script src="./assets/js/bootstrap-collapse.js"></script>
<script src="./assets/js/bootstrap-carousel.js"></script>
<script src="./assets/js/bootstrap-typeahead.js"></script>