iiif-prezi / iiif-prezi3

IIIF Presentation API 3 Python Library
https://iiif-prezi.github.io/iiif-prezi3/
Apache License 2.0
28 stars 14 forks source link

Range does not have a property "behavior" #195

Open BartChris opened 4 months ago

BartChris commented 4 months ago

The current skeleton does not list behavior as property of Range. Therefor it does not seem possible to create a Range object with the behavior property. https://github.com/iiif-prezi/iiif-prezi3/blob/aeed7b663d7e53674320c1b313085b16271b8c49/iiif_prezi3/skeleton.py#L366

Reading the specification it should be possible to attach Behavior to Range.

Clients should present only Ranges that have the label property and do not have a behavior value no-nav to the user. https://iiif.io/api/presentation/3.0/#54-range

https://iiif.io/api/presentation/3.0/#a-summary-of-property-requirements - section on behavior

Expected behaviour:

It should be possible to assign behavior (e.g. no-nav) to a range.