Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display license as hyperlink in the sidebar #143

Merged
merged 1 commit into from
Feb 1, 2022
Merged

Display license as hyperlink in the sidebar #143

merged 1 commit into from
Feb 1, 2022

Conversation

hectorcorrea
Copy link
Member

Displays known licenses as hyperlinks in the sidebar. Unknown licenses will be displayed as plain text.

Known license

cc0

Unknown license

unknown

Closes #42

Comment on lines +5 to +9
case normalize_type(license_type)
when 'cc0 license'
'https://creativecommons.org/publicdomain/zero/1.0/'
end
end
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At some point we will need to add more licenses to this map but I could only find this one in our dataset so I only include one. Whatever values we want to account for we need to make sure that we match the ones used in DSpace.

@bess bess merged commit da0f821 into main Feb 1, 2022
@bess bess deleted the issue-42-license branch February 1, 2022 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Format license
2 participants