Skip to content

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

@abelgomez

Description

@abelgomez

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.

Metadata

Metadata

Assignees

Type

Projects

Status

🏗 In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions