Skip to content

Commit

Permalink
Partly implement IIIF splitter
Browse files Browse the repository at this point in the history
  • Loading branch information
dokempf committed Jul 23, 2024
1 parent c1ca4eb commit e0b205e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/logic/CustomSplitterDispatch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
export let data;
export let table;
import UbhdIIIFMaskSplitter from "../splitter/UBHDIIIFMaskSplitter.svelte";
import UbhdObjMaskSplitter from "../splitter/UBHDObjMaskSplitter.svelte";
import NotImplemented from "../utils/NotImplemented.svelte";
const componentMapping = {
"ubhd-obj-mask-splitter": UbhdObjMaskSplitter,
"ubhd-iiif-mask-splitter": UbhdIIIFMaskSplitter,
};
const options = JSON.parse(field.options);
Expand Down
29 changes: 29 additions & 0 deletions src/components/splitter/UBHDIIIFMaskSplitter.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<script>
import { fieldData } from "../../lib/easydbHelpers";
import { appLanguageStore } from "../../lib/stores";
import { P } from "flowbite-svelte";
import NotImplemented from "../utils/NotImplemented.svelte";
export let data;
export let table;
export let field;
const options = JSON.parse(field.options);
const l10n = {
"iiif-url": {
"de-DE": "IIIF-Image-URL",
"en-US": "IIIF image URL",
},
};
</script>

<P>
<span class="text-sm easydb-label">{l10n["iiif-url"][$appLanguageStore]}</span>
</P>
<P>
<!-- https://gitlab.ub.uni-heidelberg.de/fdm/easydb-ubhd-iiif-mask-splitter-plugin/-/blob/master/src/webfrontend/UbhdIiifMaskSplitterPlugin.coffee?ref_type=heads#L50 -->
<NotImplemented message="Need to reconstruct IIIF URL." />
</P>

0 comments on commit e0b205e

Please sign in to comment.