Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@pezholio
Created June 13, 2013 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pezholio/5775080 to your computer and use it in GitHub Desktop.
Save pezholio/5775080 to your computer and use it in GitHub Desktop.
What's wrong with this picure
switch(json.rights.dataLicense) {
case "http://opendatacommons.org/licenses/by/":
$('#r_22_answer_id').val(34)
break;
case "http://opendatacommons.org/licenses/odbl/":
$('#r_22_answer_id').val(35)
break;
case "http://opendatacommons.org/licenses/pddl/":
$('#r_22_answer_id').val(36)
break;
case "http://creativecommons.org/publicdomain/zero/1.0/":
$('#r_22_answer_id').val(37)
break;
case "http://reference.data.gov.uk/id/open-government-licence":
$('#r_22_answer_id').val(38)
break;
}
switch(json.rights.contentLicense) {
case "http://creativecommons.org/licenses/by/2.0/uk/":
$('#r_22_answer_id').val(52)
break;
case "http://creativecommons.org/licenses/by-sa/2.0/uk/":
$('#r_22_answer_id').val(53)
break;
case "http://creativecommons.org/publicdomain/zero/1.0/":
$('#r_22_answer_id').val(54)
break;
case "http://reference.data.gov.uk/id/open-government-licence":
$('#r_22_answer_id').val(55)
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment