Wire up Diva v7 viewer events, page tracking, and manifest info - #971
Open
etosphere wants to merge 2 commits into
Open
Wire up Diva v7 viewer events, page tracking, and manifest info#971etosphere wants to merge 2 commits into
etosphere wants to merge 2 commits into
Conversation
This commit gives the v7 backend its read path. After previous commits the v7 backend only proved the wiring and emitted no events, which kept DivaView's downstream folio code dormant; it now drives the viewer's lifecycle and page state through the adapter's existing, backend-neutral interface. DivaBackendV7 listens for v7's diva-page-change DOM event on the (viewer:loaded, document:loaded, page:changed). v7 has no public readiness signal, so the first diva-page-change stands in for viewer:loaded / document:loaded. The backend tracks the current page index from that event and derives the page image URIs from the viewer's tile sources, which keeps getCurrentPageURI / getAllPageURIs / getCurrentPageIndex working as before. This commit contains only the JavaScript source; the built bundles under nginx/static are not regenerated in this commit.
The v7 backend now provides the manifest's image attribution. v7 has
no ManifestDidLoad event, so DivaBackendV7 fetches the manifest itself
and emits manifest:loaded with the attribution, logo, and licence.
A shared manifestMetadata helper flattens both IIIF v2 and v3 manifests
into { imageAttribution, imageLogoUrl, imageLicence }.
The "Manuscript info" button doesn't exist on v7 this yet, which will be
implemented in future commits.
This commit contains only the JavaScript source; the built bundles under
nginx/static are not regenerated in this commit.
This was referenced Aug 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #965.