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

Adds thumbnail to IIIF collection if it's an RDC Collection #39

Merged
merged 2 commits into from
Oct 28, 2022

Conversation

kdid
Copy link
Contributor

@kdid kdid commented Oct 27, 2022

Summary

We want to add the thumbnail property containing the API thumbnail route for the collection (/collection/id/thumbnail) to the IIIF collection response if the request was for a RDC collection. (the request was /collections/id?as=iiif rather than /search?query=foo&as=iiif)

How to test

  • Invoke /collections/id?as=iiif route and look for thumbnail property
  • Invoke /search?query=foo&as=iiif and observe that there is no thumbnail property

@kdid kdid marked this pull request as ready for review October 27, 2022 20:17
@kdid kdid requested a review from mathewjordan October 27, 2022 20:18
Copy link
Member

@mathewjordan mathewjordan left a comment

Choose a reason for hiding this comment

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

Made some comments for suggestions. Just a few small things on the thumbnails.

src/api/response/iiif/collection.js Outdated Show resolved Hide resolved
src/api/response/iiif/collection.js Outdated Show resolved Hide resolved
@kdid kdid temporarily deployed to test October 27, 2022 20:49 Inactive
@kdid kdid force-pushed the 3249-collection-thumbnail-in-iiif-collection branch from 98bb529 to df1dbf2 Compare October 27, 2022 20:51
@kdid kdid temporarily deployed to test October 27, 2022 20:51 Inactive
Copy link
Member

@mathewjordan mathewjordan left a comment

Choose a reason for hiding this comment

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

👍

@kdid kdid merged commit 05bca03 into deploy/staging Oct 28, 2022
@kdid kdid deleted the 3249-collection-thumbnail-in-iiif-collection branch October 28, 2022 15:33
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.

2 participants