Skip to content

Can't create SVG Selectors for Annotations #180

@digitaldogsbody

Description

@digitaldogsbody

You cannot create a target for an Annotation with a SpecificResource that has a string value for selector (see https://iiif.io/api/cookbook/recipe/0261-non-rectangular-commenting/ for an example)

Expected behaviour:

SpecificResource would allow the SvgSelector construct

Observed behaviour:

The selector attribute gets omitted completely when the JSON is printed

Potential bug location(s):

https://github.com/iiif-prezi/iiif-prezi3/blob/main/iiif_prezi3/skeleton.py#L97-L103

SpecificResource currently requires either AnyUrl or an AnnoSelectorItem class, neither of which has the value property required by SvgSelector

Any other comments:

It looks like this construct was added to the schema (IIIF/presentation-validator@6a3a901) but after the last skeleton regeneration - so hopefully a regeneration should fix things pretty easily.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions