dspace-angular
dspace-angular copied to clipboard
ItemPageCcLicenseFieldComponent wrongly assumes that any license in `dc.rights` is a CC license
Describe the bug
The ItemPageCcLicenseFieldComponent
, which is rendered for any untyped item, wrongly assumes that any value in dc.rights
is a valid CC license.
To Reproduce
Create an untyped item, set dc.rights
and dc.rights.uri
, and see a section in the item with the title "Creative Commons license".
Expected behavior
The title of the license section should only mention Creative Commons if dc.rights
is a valid CC license.
I think that ItemPageCcLicenseFieldComponent
should be renamed to ItemPageLicenseFieldComponent
. If dc.rights.uri
points to a valid CC license, it should work as the current ItemPageCcLicenseFieldComponent
. If dc.rights
/dc.rights.uri
have other type of license, the component should render the license text as specified in dc.rights
.
Related work
This should be considered before implementing #3167.