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

Change the Universal Viewer to be embedded from a configurable source #304

Merged
merged 3 commits into from
Sep 20, 2023

Conversation

randalldfloyd
Copy link
Contributor

This changes the way that the Universal Viewer is initialized into a view. Instead of a local installation, it pulls a remote viewer from a content provider into an inline frame element.

The source of the viewer is configurable in the runtime environment as:

UV_HOST
UV_CONFIG_HOST

If those values are absent, then the path to the viewer (and the UV configuration) will be a URL relative to the running application. In that case it would expect a local installation.

Also, there is a temporary measure put in place to suppress the initialization of the viewer if the link that it gets from an EAD DAO does not match a known pattern. This is a pretty opinionated piece of code; it is literally looking for our institutional PURL patterns that represent a IIIF manifest. This is to provide flexibility during final legacy migration and can be taken back out when not needed.

@randalldfloyd randalldfloyd merged commit 9a65c71 into main Sep 20, 2023
1 check passed
@randalldfloyd randalldfloyd deleted the test-embed_dc_uv branch September 20, 2023 14:38
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.

1 participant