From d46cdfbbd756ea12348080fa46d15e1890edfee3 Mon Sep 17 00:00:00 2001 From: Dominic Kempf Date: Thu, 25 Jul 2024 15:26:20 +0200 Subject: [PATCH] Implement IIIF --- src/components/splitter/UBHDIIIFMaskSplitter.svelte | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/splitter/UBHDIIIFMaskSplitter.svelte b/src/components/splitter/UBHDIIIFMaskSplitter.svelte index 5b6a663..0694aae 100644 --- a/src/components/splitter/UBHDIIIFMaskSplitter.svelte +++ b/src/components/splitter/UBHDIIIFMaskSplitter.svelte @@ -3,10 +3,9 @@ import { P } from "flowbite-svelte"; - import NotImplemented from "../utils/NotImplemented.svelte"; - export let data; export let field; + export let table; const options = JSON.parse(field.options); @@ -17,12 +16,14 @@ }, }; + const dtable = table in data ? data[table] : data; +

{l10n["iiif-url"][$appLanguageStore]}

- {options.url_prefix}/{data._system_object_id}%3A - + + {options.url_prefix}/{data._system_object_id}%3A{dtable.asset[0]._id}