Closed ebenenglish closed 1 week 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.
@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:
Example items:
bpl-dev:fx719n13q
(staging)bpl-dev:df65v791t
(spec/fixtures/sample_solr_documents.yml)
When I am on the item detail page (catalog#show) And the item is in the public domain (has
No Copyright - United States
value forrightsstatement_ss
field) Or it has the valueThis work is in the public domain under a Creative Commons No Rights Reserved License (CC0).
in thelicense_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:app/views/catalog/_show_partials/_show_default_metadata.html.erb
app/views/downloads/_terms_of_use.html.erb