From 466a96190782b848ec0d180cb0f19c87598e27a5 Mon Sep 17 00:00:00 2001 From: onb1259 <onb1259@onb.ac.at> Date: Wed, 15 Nov 2023 13:09:50 +0100 Subject: [PATCH] remove Choice attribute from annotation --- iiif_utils.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/iiif_utils.py b/iiif_utils.py index 69418c9..70e7860 100644 --- a/iiif_utils.py +++ b/iiif_utils.py @@ -72,8 +72,6 @@ def add_annotations(list_of_boundingboxes, manifest): "@type": "oa:Annotation", "motivation": "sc:painting", "resource": { - "@type": "oa:Choice", - "default": { "@type": "oa:SpecificResource", "selector": { "@type": "oa:FragmentSelector", @@ -81,8 +79,7 @@ def add_annotations(list_of_boundingboxes, manifest): }, "style": "rect", "label": "Detected figure" - } - }, + }, "on": f"{id}" } ] -- GitLab