Skip to content

Commit

Permalink
Leave internal boolean values as before, just change wording.
Browse files Browse the repository at this point in the history
This makes the question confusing internally but keeps the effects of the question consistent between old and new versions of the questionnaire.

If we are to change the question we should make a migration that alters old answers.
  • Loading branch information
pkqk committed Jun 1, 2015
1 parent 08c380e commit d5c4934
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions prototype/jurisdictions/certificate.GB.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
<if test="this.publisherRights() === 'yes' || this.publisherRights() === 'unsure'">
<question id="publisherOrigin" display="This data was">
<label>Is this dataset using any data from external sources?</label>
<yesno required="required" no="No, we created all the data ourselves" />
<yesno required="required" yes="No, we created all the data ourselves" no="Yes"/>
<help>If any part of this data was sourced outside your organisation by other individuals or organisations then you need to give extra information about your right to publish it.</help>
</question>
</if>
<if test="this.publisherRights() === 'unsure'">
<if test="this.publisherOrigin() === 'true'">
<if test="this.publisherOrigin() === 'false'">
<question id="thirdPartyOrigin">
<label>Was some of this data extracted or calculated from other data?</label>
<yesno required="required"/>
Expand Down Expand Up @@ -105,7 +105,7 @@
</if>
</if>
</if>
<if test="this.publisherOrigin() === 'true'">
<if test="this.publisherOrigin() === 'false'">
<question id="sourceDocumentationUrl" display="The sources of this data are described at">
<label>Where do you describe sources of this data?</label>
<input type="url" placeholder="Data Sources Documentation URL"/>
Expand Down
32 changes: 16 additions & 16 deletions surveys/odc_questionnaire.UK.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@
condition_A :q_publisherRights, '==', :a_yes
condition_B :q_publisherRights, '==', :a_unsure
a_false 'no',
:text_as_statement => 'No, we created all the data ourselves'
:text_as_statement => 'Yes'
a_true 'yes',
:text_as_statement => ''
:text_as_statement => 'No, we created all the data ourselves'

q_thirdPartyOrigin 'Was some of this data extracted or calculated from other data?',
:discussion_topic => :gb_thirdPartyOrigin,
Expand All @@ -154,7 +154,7 @@
:required => :required
dependency :rule => 'A and B'
condition_A :q_publisherRights, '==', :a_unsure
condition_B :q_publisherOrigin, '==', :a_true
condition_B :q_publisherOrigin, '==', :a_false
a_false 'no'
a_true 'yes',
:requirement => ['basic_3']
Expand All @@ -164,7 +164,7 @@
:requirement => 'basic_3'
dependency :rule => 'A and B and C and D'
condition_A :q_publisherRights, '==', :a_unsure
condition_B :q_publisherOrigin, '==', :a_true
condition_B :q_publisherOrigin, '==', :a_false
condition_C :q_crowdsourced, '==', :a_false
condition_D :q_thirdPartyOrigin, '!=', :a_true

Expand All @@ -177,7 +177,7 @@
:required => :required
dependency :rule => 'A and B and C'
condition_A :q_publisherRights, '==', :a_unsure
condition_B :q_publisherOrigin, '==', :a_true
condition_B :q_publisherOrigin, '==', :a_false
condition_C :q_thirdPartyOrigin, '==', :a_true
a_false 'no',
:text_as_statement => ''
Expand All @@ -190,7 +190,7 @@
:requirement => 'basic_4'
dependency :rule => 'A and B and C and D and E'
condition_A :q_publisherRights, '==', :a_unsure
condition_B :q_publisherOrigin, '==', :a_true
condition_B :q_publisherOrigin, '==', :a_false
condition_C :q_thirdPartyOrigin, '==', :a_true
condition_D :q_thirdPartyOpen, '==', :a_false
condition_E :q_thirdPartyOpen, '==', :a_false
Expand All @@ -204,7 +204,7 @@
:required => :required
dependency :rule => 'A and B'
condition_A :q_publisherRights, '==', :a_unsure
condition_B :q_publisherOrigin, '==', :a_true
condition_B :q_publisherOrigin, '==', :a_false
a_false 'no',
:text_as_statement => ''
a_true 'yes',
Expand All @@ -216,7 +216,7 @@
:requirement => 'basic_5'
dependency :rule => 'A and B and C and D'
condition_A :q_publisherRights, '==', :a_unsure
condition_B :q_publisherOrigin, '==', :a_true
condition_B :q_publisherOrigin, '==', :a_false
condition_C :q_thirdPartyOrigin, '==', :a_false
condition_D :q_crowdsourced, '!=', :a_true

Expand All @@ -227,7 +227,7 @@
:required => :required
dependency :rule => 'A and B and C'
condition_A :q_publisherRights, '==', :a_unsure
condition_B :q_publisherOrigin, '==', :a_true
condition_B :q_publisherOrigin, '==', :a_false
condition_C :q_crowdsourced, '==', :a_true
a_false 'no'
a_true 'yes'
Expand All @@ -241,7 +241,7 @@
:required => :required
dependency :rule => 'A and B and C and D'
condition_A :q_publisherRights, '==', :a_unsure
condition_B :q_publisherOrigin, '==', :a_true
condition_B :q_publisherOrigin, '==', :a_false
condition_C :q_crowdsourced, '==', :a_true
condition_D :q_crowdsourcedContent, '==', :a_true
a_1 'Contributor Licence Agreement URL',
Expand All @@ -257,7 +257,7 @@
:required => :required
dependency :rule => 'A and B and C and D'
condition_A :q_publisherRights, '==', :a_unsure
condition_B :q_publisherOrigin, '==', :a_true
condition_B :q_publisherOrigin, '==', :a_false
condition_C :q_crowdsourced, '==', :a_true
condition_D :q_crowdsourcedContent, '==', :a_true
a_false 'no'
Expand All @@ -269,7 +269,7 @@
:requirement => 'basic_6'
dependency :rule => 'A and B and C and D and E'
condition_A :q_publisherRights, '==', :a_unsure
condition_B :q_publisherOrigin, '==', :a_true
condition_B :q_publisherOrigin, '==', :a_false
condition_C :q_crowdsourced, '==', :a_true
condition_D :q_crowdsourcedContent, '==', :a_true
condition_E :q_cldsRecorded, '==', :a_false
Expand All @@ -280,7 +280,7 @@
:text_as_statement => 'The sources of this data are described at',
:help_text => 'Give a URL that documents where the data was sourced from (its provenance) and the rights under which you publish the data. This helps people understand where the data comes from.'
dependency :rule => 'A'
condition_A :q_publisherOrigin, '==', :a_true
condition_A :q_publisherOrigin, '==', :a_false
a_1 'Data Sources Documentation URL',
:text,
:input_type => :url,
Expand All @@ -291,7 +291,7 @@
:custom_renderer => '/partials/requirement_pilot',
:requirement => 'pilot_3'
dependency :rule => 'A and B'
condition_A :q_publisherOrigin, '==', :a_true
condition_A :q_publisherOrigin, '==', :a_false
condition_B :q_sourceDocumentationUrl, '==', {:string_value => '', :answer_reference => '1'}

q_sourceDocumentationMetadata 'Is documentation about the sources of this data also in machine-readable format?',
Expand All @@ -301,7 +301,7 @@
:help_text => 'Information about data sources should be human-readable so people can understand it, as well as in a metadata format that computers can process. When everyone does this it helps other people find out how the same open data is being used and justify its ongoing publication.',
:pick => :one
dependency :rule => 'A and B'
condition_A :q_publisherOrigin, '==', :a_true
condition_A :q_publisherOrigin, '==', :a_false
condition_B :q_sourceDocumentationUrl, '!=', {:string_value => '', :answer_reference => '1'}
a_false 'no',
:text_as_statement => ''
Expand All @@ -313,7 +313,7 @@
:custom_renderer => '/partials/requirement_standard',
:requirement => 'standard_2'
dependency :rule => 'A and B and C'
condition_A :q_publisherOrigin, '==', :a_true
condition_A :q_publisherOrigin, '==', :a_false
condition_B :q_sourceDocumentationUrl, '!=', {:string_value => '', :answer_reference => '1'}
condition_C :q_sourceDocumentationMetadata, '==', :a_false

Expand Down
4 changes: 2 additions & 2 deletions surveys/translations/odc.UK.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ questions:
answers:
a_false:
text: no
text_as_statement: "No, we created all the data ourselves"
text_as_statement: "Yes"
a_true:
text: yes
text_as_statement: ""
text_as_statement: "No, we created all the data ourselves"
thirdPartyOrigin:
text: "Was some of this data extracted or calculated from other data?"
help_text: "An extract or smaller part of someone else's data still means your rights to use it might be affected. There might also be legal issues if you analysed their data to produce new results from it."
Expand Down

0 comments on commit d5c4934

Please sign in to comment.