-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.xml
109 lines (107 loc) · 13.6 KB
/
config.xml
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
<telegraph binding="late">
<!--Required Fields-->
<directive action="require" field="firstname" error="Please enter your first name." />
<directive action="require" field="lastname" error="Please enter your last name."/>
<directive action="require" field="email" format="email" error="Please enter your email."/>
<directive action="require" field="input_registration" error="Please indicate whether you are registering as a student."/>
<directive action="require" field="input_address_state" error="Please enter your state or N/A."/>
<directive action="require" field="input_address_country" error="Please select your country."/>
<directive action="require" field="email" format="email" error="Please enter your email."/>
<directive action="require" field="input_role" error="Please enter your role (faculty, postdoc, etc.)."/-->
<directive action="require" field="input_registration" error="Please select your BUCLD registration type."/>
<directive action="require" field="input_generation" error="Please select whether you are a first-generation college student or check that you prefer not to respond.."/>
<directive action="require" field="input_ethnicity" error="Please specify ethnicity or check prefer not to respond."/>
<directive action="require" field="input_race" error="Please specify race or check prefer not to respond."/>
<directive action="require" field="input_gender" error="Please specify gender or check prefer not to respond."/>
<directive action="require" field="input_disability" error="Please specify whether you identify as having a disability or choose prefer not to respond."/>
<!--notification and receipt templates default to on-site versions. Overridden later for pre-registration-->
<directive action="field" name="receipt_template" value="receipt.txt" />
<directive action="field" name="notification_template" value="notification.txt" />
<!--New (computed) Fields-->
<!--note: I don't think input_race_list or input_gender_list are actually used-->
<directive action="field" name="individual_events_list" value="[list:input_individual_events]" />
<directive action="field" name="input_race_list" value="[list:input_race]" />
<directive action="field" name="input_gender_list" value="[list:input_gender]" />
<directive action="field" name="date-and-time" value="[timestamp:date] - [timestamp:time]" />
<directive action="field" name="event_quantity" value="0" />
<!--Event Quantity-->
<!--We need to account for every permutation individually, no smart sums here-->
<!--Values here must exactly match text on form (also goes on receipts)-->
<!--Values here must also be IN THE SAME ORDER as the options on the form-->
<!--Full list: Friday Keynote, Saturday Symposium, Saturday Plenary Address, Sunday Symposium, Single Session-->
<!--Individual events price per, really just done for display on receipts, it is computed again later for summing-->
<!--removing Saturday symposioum from 2023 but retaining code for potential restoration in 2024-->
<directive action="field" name="individual_events_price" value="[if?:input_status==Student registration:20:35]" />
<!--Event Quantity: single events-->
<directive action="conditional-field" source_field="individual_events_list" source_value="Friday Keynote" target_field="event_quantity" target_value="1"/>
<!--directive action="conditional-field" source_field="individual_events_list" source_value="Saturday Symposium" target_field="event_quantity" target_value="1"/>-->
<directive action="conditional-field" source_field="individual_events_list" source_value="Saturday Plenary Address" target_field="event_quantity" target_value="1"/>
<directive action="conditional-field" source_field="individual_events_list" source_value="Sunday Symposium" target_field="event_quantity" target_value="1"/>
<directive action="conditional-field" source_field="individual_events_list" source_value="Single Session" target_field="event_quantity" target_value="1"/>
<!--Event Quantity: pairs of events-->
<!--directive action="conditional-field" source_field="individual_events_list" source_value="Friday Keynote, Saturday Symposium" target_field="event_quantity" target_value="2"/>-->
<directive action="conditional-field" source_field="individual_events_list" source_value="Friday Keynote, Saturday Plenary Address" target_field="event_quantity" target_value="2"/>
<directive action="conditional-field" source_field="individual_events_list" source_value="Friday Keynote, Sunday Symposium" target_field="event_quantity" target_value="2"/>
<directive action="conditional-field" source_field="individual_events_list" source_value="Friday Keynote, Single Session" target_field="event_quantity" target_value="2"/>
<!--directive action="conditional-field" source_field="individual_events_list" source_value="Saturday Symposium, Saturday Plenary Address" target_field="event_quantity" target_value="2"/>-->
<!--directive action="conditional-field" source_field="individual_events_list" source_value="Saturday Symposium, Sunday Symposium" target_field="event_quantity" target_value="2"/>-->
<!--directive action="conditional-field" source_field="individual_events_list" source_value="Saturday Symposium, Single Session" target_field="event_quantity" target_value="2"/>-->
<directive action="conditional-field" source_field="individual_events_list" source_value="Saturday Plenary Address, Sunday Symposium" target_field="event_quantity" target_value="2"/>
<directive action="conditional-field" source_field="individual_events_list" source_value="Saturday Plenary Address, Single Session" target_field="event_quantity" target_value="2"/>
<directive action="conditional-field" source_field="individual_events_list" source_value="Sunday Symposium, Single Session" target_field="event_quantity" target_value="2"/>
<!--Event Quantity: triples of events-->
<!--directive action="conditional-field" source_field="individual_events_list" source_value="Friday Keynote, Saturday Symposium, Saturday Plenary Address" target_field="event_quantity" target_value="3"/>-->
<!--directive action="conditional-field" source_field="individual_events_list" source_value="Friday Keynote, Saturday Symposium, Sunday Symposium" target_field="event_quantity" target_value="3"/>-->
<!--directive action="conditional-field" source_field="individual_events_list" source_value="Friday Keynote, Saturday Symposium, Single Session" target_field="event_quantity" target_value="3"/>-->
<directive action="conditional-field" source_field="individual_events_list" source_value="Friday Keynote, Saturday Plenary Address, Sunday Symposium " target_field="event_quantity" target_value="3"/>
<directive action="conditional-field" source_field="individual_events_list" source_value="Friday Keynote, Saturday Plenary Address, Single Session" target_field="event_quantity" target_value="3"/>
<directive action="conditional-field" source_field="individual_events_list" source_value="Friday Keynote, Sunday Symposium, Single Session" target_field="event_quantity" target_value="3"/>
<!--directive action="conditional-field" source_field="individual_events_list" source_value="Saturday Symposium, Saturday Plenary Address, Sunday Symposium" target_field="event_quantity" target_value="3"/>-->
<!--directive action="conditional-field" source_field="individual_events_list" source_value="Saturday Symposium, Saturday Plenary Address, Single Session" target_field="event_quantity" target_value="3"/>-->
<!--directive action="conditional-field" source_field="individual_events_list" source_value="Saturday Symposium, Sunday Symposium, Single Session" target_field="event_quantity" target_value="3"/>-->
<directive action="conditional-field" source_field="individual_events_list" source_value="Saturday Plenary Address, Sunday Symposium, Single Session" target_field="event_quantity" target_value="3"/>
<!--Event Quantity: quadruples of events-->
<!--directive action="conditional-field" source_field="individual_events_list" source_value="Friday Keynote, Saturday Symposium, Saturday Plenary Address, Sunday Symposium" target_field="event_quantity" target_value="4"/>-->
<!--directive action="conditional-field" source_field="individual_events_list" source_value="Friday Keynote, Saturday Symposium, Saturday Plenary Address, Single Session" target_field="event_quantity" target_value="4"/>-->
<!--directive action="conditional-field" source_field="individual_events_list" source_value="Friday Keynote, Saturday Symposium, Sunday Symposium, Single Session" target_field="event_quantity" target_value="4"/>-->
<directive action="conditional-field" source_field="individual_events_list" source_value="Friday Keynote, Saturday Plenary Address, Sunday Symposium, Single Session" target_field="event_quantity" target_value="4"/>
<!--directive action="conditional-field" source_field="individual_events_list" source_value="Saturday Symposium, Saturday Plenary Address, Sunday Symposium, Single Session" target_field="event_quantity" target_value="4"/>-->
<!--Event Quantity: all events-->
<!--directive action="conditional-field" source_field="individual_events_list" source_value="Friday Keynote, Saturday Symposium, Saturday Plenary Address, Sunday Symposium, Single Session" target_field="event_quantity" target_value="5"/>-->
<!--reset receipt and notification templates if one of the Pre-Registration options was used-->
<directive action="conditional-field" source_field="input_registration" source_value="General Preregistration - $270.00" target_field="receipt_template" target_value="receipt-prereg.txt"/>
<directive action="conditional-field" source_field="input_registration" source_value="Student Preregistration - $165.00" target_field="receipt_template" target_value="receipt-prereg.txt"/>
<directive action="conditional-field" source_field="input_registration" source_value="Postbacc Trainee Preregistation - $230.00" target_field="receipt_template" target_value="receipt-prereg.txt"/>
<directive action="conditional-field" source_field="input_registration" source_value="Not Attending BUCLD Events - $0.00" target_field="receipt_template" target_value="receipt-prereg.txt"/>
<directive action="conditional-field" source_field="receipt_template" source_value="receipt-prereg.txt" target_field="notification_template" target_value="notification-prereg.txt"/>
<!--Calculate Total Price-->
<!--BUCLD Registration categories-->
<directive action="sum" add="[if?:input_registration==General Preregistration - $270.00:270:0]" total="total"/>
<directive action="sum" add="[if?:input_registration==Student Preregistration - $165.00:165:0]" total="total"/>
<directive action="sum" add="[if?:input_registration==Postbacc Trainee Preregistation - $230.00:230:0]" total="total"/>
<directive action="sum" add="[if?:input_registration==General Registration - $300.00:300:0]" total="total"/>
<directive action="sum" add="[if?:input_registration==Student Registration - $195.00:195:0]" total="total"/>
<directive action="sum" add="[if?:input_registration==Postbacc Trainee Registation - $260.00:260:0]" total="total"/>
<directive action="sum" add="[if?:input_registration==General One Day Registration - $180.00:180:0]" total="total"/>
<directive action="sum" add="[if?:input_registration==Student One Day Registration - $115.00:115:0]" total="total"/>
<directive action="sum" add="[if?:input_registration==Postbacc Trainee One Day Registation - $155.00:155:0]" total="total"/>
<directive action="sum" add="[if?:input_registration==No BUCLD conference registration - $0.00:0:0]" total="total" />
<!--Individual events-->
<directive action="sum" add="[if?:input_status==Student registration:20:0]" quantity="[event_quantity]" total="total" />
<directive action="sum" add="[if?:input_status==General registration:35:0]" quantity="[event_quantity]" total="total" />
<directive action="sum" add="[if?:input_status==Postbacc Trainee registration:35:0]" quantity="[event_quantity]" total="total" />
<!--SLD registration categories-->
<directive action="sum" add="[if?:input_sld==General (not LLD subscriber) - $60.00:60:0]" total="total"/>
<directive action="sum" add="[if?:input_sld==General (LLD subscriber) - $25.00:25:0]" total="total"/>
<directive action="sum" add="[if?:input_sld==Student (not LLD subscriber) - $25.00:25:0]" total="total"/>
<directive action="sum" add="[if?:input_sld==Student (LLD subscriber) - $10.00:10:0]" total="total"/>
<directive action="sum" add="[if?:input_sld==Not attending the SLD Symposium on Thursday - $0.00:0:0]" total="total"/>
<directive special="nelnet" amount="[total:total]" order_type="CONF27"/>
<!--File - update by deleting file with test data on server before launch-->
<directive action="file" filename="results[timestamp:YYYY].csv" format="csv" fields="firstname,lastname,email,input_affiliation,input_pronouns,input_registration,input_status,input_select_day,input_attend,input_record,individual_events_list,input_student_workshop_thursday,input_student_pizza_lunch,input_sld,input_address_state,input_address_country,input_role,input_generation,input_ethnicity,input_race,input_disability,input_disability_status,input_gender,input_sign_language_interpreter,input_access_needs,input_comments,date-and-time" />
<!--Email Receipt/Notification - update to full distribution list before launch-->
<directive action="email" to="[email protected],[email protected],[email protected],[email protected],[email protected]" from="[email protected]" subject="BUCLD 48 Registration Notification" template="[notification_template]">
<directive action="email" to="[email],[email protected]" from="[email protected]" subject="BUCLD 48 Registration Receipt" template="[receipt_template]" />
<!--Redirect Thank You Page-->
<directive action="redirect" href="http://www.bu.edu/bucld/conference-info/registration/online/thanks/" />
</telegraph>