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

Collection handle /similar endpoint #161

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

adamjarling
Copy link
Contributor

@adamjarling adamjarling commented Aug 29, 2023

What does this do?

Updates the IIIF homepageUrl() creator function to generate a URL which includes a ?similar= query param. DC's Search page will recognize this similar param and build it's Search query object to include similar Works from the index.

A url like this:

https://dcapi.rdc-staging.library.northwestern.edu/api/v2/works/f2e42c77-b7da-4632-bd87-5a65bf096afb/similar?collectionLabel=More Like This&collectionSummary=Similar%20to%20v1-indexing-test-work&as=iiif

Should return something like this in the IIIF Manifest:

{
  ...
  homepage: {
    id: "https://dcapi.rdc-staging.library.northwestern.edu/search?similar=f2e42c77-b7da-4632-bd87-5a65bf096afb",
    ...
  }
}

@adamjarling adamjarling self-assigned this Aug 29, 2023
@adamjarling adamjarling requested review from mbklein and kdid August 29, 2023 19:05
@adamjarling adamjarling merged commit 1a7c242 into deploy/staging Aug 29, 2023
@adamjarling adamjarling deleted the 3741-slider-view-all branch August 29, 2023 21:12
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