Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single manifest for all images in publication #131

Open
sammeltassen opened this issue May 31, 2022 · 2 comments
Open

Single manifest for all images in publication #131

sammeltassen opened this issue May 31, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@sammeltassen
Copy link
Collaborator

Current situation:

For each illustration a separate manifest needs to be exported and linked within the markdown file. Example:

<Illustration source="KITLV-11908.json"></Illustration>
<Illustration source="collectie-nusantara.json"></Illustration>

Improvement:

A single manifest for the entire article. The static site generator would look for a manifest in the content\illustrations folder based on the path variable in the front-matter:

path: "/en/publications/tu-itb" would look for the manifest content\illustrations\tu-itb.json. Alternatively, the markdown filename can be used (usually the same).

In the markdown file, a canvas in the manifest is selected with an integer:

<Illustration canvas=0></Illustration>

The canvas label (rather than the manifest label) is used for the caption next to the thumbnail; when opening the modal the annotation label and summary are used (current behaviour).

TBD: additional layout options, in relation with:

@sammeltassen sammeltassen added the enhancement New feature or request label May 31, 2022
@sammeltassen
Copy link
Collaborator Author

To think about: what if a manifest for an illustration is already available elsewhere in the repo? There could be an alternative workflow that allows to embed any manifest (by id or url), select a canvas and add a custom caption in the markdown:

<Illustration id="https://raw.githubusercontent.com/libis/ca_tudelft_iiif/main/objects/95499e2d-d517-4c12-899c-83e2d7c3e8ce.json" canvas="0" caption="[caption]"></Illustration>

@stephenwf
Copy link
Member

@sammeltassen I think it would be easier to have a new component that's available on the publication pages, so the existing ones can continue working as they do now.

In the new version, you can also add:

<Slot name="something-descriptive-abc" />

And then go and add page blocks. So it's possible to keep the Markdown fairly minimal, and use the UI for configuring these interactive elements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants