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

Attach the JS libraries using the preprocess and not in the template. #39

Merged
merged 2 commits into from
Oct 26, 2021

Conversation

jordandukart
Copy link
Member

GitHub Issue: Islandora/documentation#1975

What does this Pull Request do?

Includes the JS libraries in the preprocess implementations as opposed to the template. This fixes a bug that can occur when viewing a object with the block being rendered where there are no tilesources.

What's new?

Errors don't pop in the console, libraries are attached a different way.

How should this be tested?

Can reproduce the existing bug using what's documented in Islandora/documentation#1975.
Beyond that the OSD should behave as it did before when viewing things.

Interested parties

@Islandora/8-x-committers

Copy link
Member

@elizoller elizoller left a comment

Choose a reason for hiding this comment

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

I tested on a new playbook build, recreated the console error described in Islandora/documentation#1975 and then pulled in this branch and cache clear and console error gone. Confirmed OSD block and regular OSD view mode both work.

@elizoller elizoller merged commit 19eb94e into Islandora:2.x Oct 26, 2021
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