boston-library / commonwealth-vlr-engine

Commonwealth-VLR-Engine is a Rails engine for creating Blacklight apps that provide access to content from Solr/Fedora, packaging a number of feature-rich enhancements and modifications.
Apache License 2.0
8 stars 2 forks source link

display CC0 image for public domain items #103

Closed ebenenglish closed 1 week ago

ebenenglish commented 10 months ago

When I am on the item detail page (catalog#show) And the item is in the public domain (has No Copyright - United States value for rightsstatement_ss field) Or it has the value This work is in the public domain under a Creative Commons No Rights Reserved License (CC0). in the license_ss field It should display the Creative Commons "Public Domain" (CC0) license image in the "Item Information" section. And the icon should be a link to: https://creativecommons.org/publicdomain/zero/1.0/

Example item (staging): bpl-dev:fx719n13q

CC0 image URL: ​https://licensebuttons.net/p/zero/1.0/80x15.png

This will require some re-factoring of the CommonwealthVlrEngine::LicenseHelperBehavior#render_cc_license method, and usages of this method may need to be updated as well, for example in:

ebenenglish commented 4 months ago

This is partially addressed by #137, which only adds an icon for item having the value This work is in the public domain under a Creative Commons No Rights Reserved License (CC0) in the license_ss field.

We still need to figure out an icon to display for items that have a No Copyright - United States value in the rightsstatement_ss field. Conversation on how best to annotate this is ongoing within the Digital Services department, there should be an update soon.

ebenenglish commented 2 months ago

@jwillbpl here is the second half of this issue:

When I am on the item detail page (catalog#show) And the item has "No Copyright - United States" as a value under Terms of Use in the Item Information section (aka has the value No Copyright - United States in the rightsstatement_ss field) It should display the corresponding icon image (https://rightsstatements.org/files/icons/NoC.Icon-Only.dark.svg) below the text of the terms of use And the icon should be a link to the value of the rightsstatement_uri_ss field. And when I click on the icon the link should open in a new tab

Example: terms-of-use_rs-icon

Example items: