Created
June 13, 2013 16:19
-
-
Save pezholio/5775080 to your computer and use it in GitHub Desktop.
What's wrong with this picure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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