digirati-co-uk / iiif-manifest-editor

Create new IIIF Manifests. Modify existing manifests. Tell stories with IIIF.
https://manifest-editor.digirati.services/
MIT License
31 stars 2 forks source link

Allow users to add their own preview targets #125

Open tomcrane opened 2 years ago

tomcrane commented 2 years ago

(NOT for phase 1)

After the configured preview targets, the preview drop down has a call-to-action:

————————————— Raw Manifest Universal Viewer Mirador Out of the box custom target ————————————— Manage preview locations... —————————————

This launches a dialogue that allows users to provide:

The dialogue has some help text to assist, but the user will need a small amount of understanding of what's going on. The example might be:

Label: your label here Template: https://example.org/my-custom-viewer?iiif-content={iiif-content}

The instructions will say that whatever the template string, the ME will replace {iiif-content} with the manifest URL.

The ME keeps this in local storage, so it's available to the user when they come back.

The dialog also lets them edit or remove other CUSTOM additions, but not the preconfigured preview targets. (or should it?).