dspace-angular
dspace-angular copied to clipboard
Creative Commons jurisdiction chosen is ignored
Describe the bug
When a standard Creative Commons license is selected, the user can select the jurisdiction but it is ignored by the Rest side. The Rest side uses a default configured value for the Creative Commons jurisdiction and replaces the selected value with it.
To Reproduce Steps to reproduce the behavior:
- Start a new submission and go to CC section
- Select the standard Creative Commons license
- Answer the two first question (for example select Yes and Yes ) and select a jurisdiction different from the configured in
cc.license.jurisdiction(default United States) - The selected license displayed is based on the configured jurisdiction and not the selected one.
For example, this is the result of select a Spanish jurisdiction with the United States configured as default (it should be http://creativecommons.org/licenses/by/3.0/es/ instead):

Expected behavior In previous versions, this problem was solved by not showing the user the question to select the jurisdiction. The Creative commons selector only showed the first two questions. Another option is to get the default jurisdiction from the rest side and show the jurisdiction selector with the value already selected and disabled.