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

Add IIIF attribution and licence information to "Manuscript Info" sidebar #812

Merged

Conversation

dchiller
Copy link
Collaborator

@dchiller dchiller commented Jan 11, 2024

This PR adds information about the source and licensing for images used on Cantus Ultimus to the "Manuscript Info" sidebar on the Manuscript Detail view.

IIIF manifests conforming to the Presentation API v 2 may have attribution, license, and logo attributes that contain an attribution statement, a link to image licensing information, and a link to a logo of the providing institution, respectively. The contents of the attribution attribute must be shown, while showing the other two are optional. This PR opts to show any of the three that are available.

The associated issue #786 references a requiredStatement field. This was introduced with the IIIF Presentation API v 3. No manifests currently on Cantus Ultimus use v 3 of the API, and Diva does not currently support v 3, so I've opted not to support requiredStatement here. In the even that support of v 3 of the Presentation API is necessary, then changes to how image attribution is shown will need to occur.

Closes #786.

Screenshots showing how this looks on a few different manuscripts:
image
image
image

@dchiller dchiller requested review from jacobdgm and lucasmarchd01 and removed request for jacobdgm and lucasmarchd01 January 11, 2024 14:48
@dchiller dchiller force-pushed the i-786-IIIF-requiredStatement-and-provider branch from de3d37b to 70e657f Compare January 11, 2024 14:54
Copy link

@jacobdgm jacobdgm left a comment

Choose a reason for hiding this comment

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

On the whole, this looks good. There are a few places where the template could be cleaned up.

@dchiller dchiller merged commit 7e066c9 into DDMAL:main Jan 11, 2024
2 checks passed
@dchiller dchiller deleted the i-786-IIIF-requiredStatement-and-provider branch January 11, 2024 19:22
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.

Add support for IIIF requiredStatement on Cantus Ultimus
2 participants