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 clover iiif about > homepage label #673

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

sjproctor
Copy link
Contributor

@sjproctor sjproctor commented Jul 30, 2024

Story

Video "About" section contains "homepage" – link to self

This commit updates the About section text label from "Homepage" to
"Link to item". Since this label comes from the clover iiif
JavaScript, it was necessary to create a custom function that finds the
label and overrides it.

There was also a bug that opened the entire page inside the iframe
window. The custom iiif clover override function also added a target
parent to the link to prevent this issue.

Ref:

Expected Behavior Before Changes

  • Clover iiif player labeled as "Homepage"
  • When link was clicked, the entire browser window opened inside the player

Expected Behavior After Changes

  • Clover iiif player labeled as "Link to item"
  • When link was clicked, the entire browser window opened inside the player

Screenshots / Video

  • Link update
    image

  • Nested webpage bug fix

Screen.Recording.2024-07-30.at.3.20.39.PM.mov

@kirkkwang kirkkwang marked this pull request as draft July 31, 2024 13:47
This commit updates the About section text label from `"Homepage"` to
`"Link to item"`. Since this label comes from the clover iiif
JavaScript, it was necessary to create a custom function that finds the
label and overrides it.

There was also a bug that opened the entire page inside the iframe
window. The custom iiif clover override function also added a target
parent to the link to prevent this issue.

Ref:
- #659
@sjproctor sjproctor marked this pull request as ready for review July 31, 2024 18:20
@sjproctor sjproctor merged commit 954af34 into main Jul 31, 2024
7 checks passed
@sjproctor sjproctor deleted the i659-relabel-homepage-link branch July 31, 2024 21:16
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