dspace-angular icon indicating copy to clipboard operation
dspace-angular copied to clipboard

ItemPageCcLicenseFieldComponent wrongly assumes that any license in `dc.rights` is a CC license

Open abelgomez opened this issue 7 months ago • 6 comments

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".

imagen imagen

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.

abelgomez avatar Jul 06 '24 20:07 abelgomez