DDMAL / DDMAL/diva.js

Support multiple page sequences in ranges

Open
#546 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
261
Forks
39
PR merge metrics
No merged PRs in 30d

Description

Diva currently supports the IIIF Presentation API 3.0. However, when obtaining the canvases in a manifest, Diva looks for either an array in a `sequences` array in the manifest or an `items` array in the manifest (see https://github.com/DDMAL/diva.js/blob/5f530483f653db68af1cbb92bc8cc967b51763c3/source/js/parse-iiif-manifest.js#L70). In the Presentation API 3.0, the `Ranges` attribute is used to provide these ordering structures (https://iiif.io/api/presentation/3.0/#54-range), and there are no `sequences.` Diva's logic will still work with the 3.0 API because it will use the ordering of canvases found in the manifest's `items` array, but will not show a different ordering if defined (because this will be defined in a `range`.

For more information about this change, see https://iiif.io/api/presentation/3.0/change-log/#141-remove-sequence-in-favor-of-ranges-items-and-behavior-value-sequence

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.