You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During work on the Manifest Editor, some new patterns for create IIIF were created. Usually focussed on creating IIIF from users input. At the moment it's tied to that UI layer, but I think it could be useful as a standalone piece of iiif builder.
Examples
Here is a minimal definition:
interfaceCreatePlaintextPayload{url: string;label?: InternationalString;}asyncfunctioncreatePlaintext(data: CreatePlaintextPayload,ctx: CreatorFunctionContext){returnctx.embed({id: data.url,type: "Text",label: data.label,format: "text/plain",});}exportconstplaintextCreator: CreatorDefinition={id: "@manifest-editor/plaintext-creator",create: createPlaintext,label: "Plaintext",summary: "Add link to an plaintext",resourceType: "ContentResource",resourceFields: ["label","format"],supports: {parentFields: ["seeAlso","rendering","homepage"],},staticFields: {format: "text/plain",},};
This example is not a groundbreaking abstraction. But it does allow for more information to be attached. For example, human readable label/summary for what will be created, where this resource is valid from a IIIF point of view, which fields are created - and which are static.
Nesting definitions
Having a "Library" of these definitions allows the Manifest Editor to compose them together.
With IIIF Builder, you could install or create "plugins" and use them to build IIIF either statically, or incrementally in a UI, similar to the Manifest Editor.
The text was updated successfully, but these errors were encountered:
During work on the Manifest Editor, some new patterns for create IIIF were created. Usually focussed on creating IIIF from users input. At the moment it's tied to that UI layer, but I think it could be useful as a standalone piece of iiif builder.
Examples
Here is a minimal definition:
It fully describes taking user input:
And producing:
This example is not a groundbreaking abstraction. But it does allow for more information to be attached. For example, human readable label/summary for what will be created, where this resource is valid from a IIIF point of view, which fields are created - and which are static.
Nesting definitions
Having a "Library" of these definitions allows the Manifest Editor to compose them together.
There is a lot going on in this one, but if you look at the definition you can see what it supports:
So this produces an
Annotation
and can be created on:AnnotationPage
- Annotation added directly to the pageManifest
- A new canvas is created, and the annotation addedIn the creator example, there is a "nested" example, which is calling out to another definition:
So you can compose them together.
With IIIF Builder, you could install or create "plugins" and use them to build IIIF either statically, or incrementally in a UI, similar to the Manifest Editor.
The text was updated successfully, but these errors were encountered: