digirati-co-uk / heritage.tudelft.nl

TU Delft Library's Digital Special Collections Portal
https://heritage.tudelft.nl
1 stars 1 forks source link

Page blocks for article illustrations #8

Open sammeltassen opened 3 weeks ago

sammeltassen commented 3 weeks ago

Adding illustrations to articles is labour-intensive:

  1. Create a new manifest in the Manifest Editor for each illustration
  2. Add captions
  3. Add the manifests to the /apps/iiif/manifests/manifest-editor/illustrations folder in this repo
  4. Referencing the manifest from the article page

Page blocks already offer a friendly way to add items to the home, collection and exhibition pages. They can be added to publications too:

<Slot name="illustrationId"></Slot>

In order to fully make this work for illustrations, the following enhancements are needed:

stephenwf commented 5 days ago

Hi @sammeltassen I think this point at the end:

Ideally the deploy preview would make it possible to add new blocks between paragraphs

We had looked at something like this together a few years ago - using the Netlify APIs. I think this would be it's own separate task, as it would also open up other editing - like Manifest Editor - and would require some extra planning.

Additionally this style of integration would be tied to the GitHub and Netlify accounts that host the static site, so it would be preferable to tackle this after #14 and avoid setting that up twice.

sammeltassen commented 5 days ago

@stephenwf I didn't realize this was possible and actually meant the local development preview (through the current "edit" possibility). Editing the deployment preview sounds interesting but has no priority now.

sammeltassen commented 5 days ago

During a discussion with a colleague, the idea came up to also allow the selection of a manifest, which would result in a slide show (like on the object pages, with the possibility to hide the thumbnails).

stephenwf commented 5 days ago

Ahh! That's totally fine then - yes the Page Blocks should allow for that once added to the articles.

The Manifest page block would be totally fine too - we already have the "Box" API set up to search for Manifests, and the component for the slideshow. So matching these together would make sense so you can embed that component elsewhere.