Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 1.31 KB

README.md

File metadata and controls

20 lines (15 loc) · 1.31 KB

iiif-browser

March 2022 hackday project: browse an IIIF manifest from the British Library.

Run it locally with

npm install
npx eleventy --serve

Browse the annotated images on https://eatyourgreens.github.io/iiif-browser/playbills/0.html

How it works

_data/config.js contains the URL of a British Library IIIF manifest, which lists digitised theatre playbills, and the URLs of three annotation collections:

  • consensusDates.js consensus plain text dates, one per playbill.
  • dates.js collects plain text dates that volunteers have entered, one per playbill per volunteer.
  • titles.js collects rectangles that volunteers drew around performance titles, along with the transcribed titles themselves.

playbills/page.11ty.js is an Eleventy template that loops over the default sequence of canvases in the manifest (manifest.sequences[0].canvases), printing out some HTML for each canvas. The HTML contains the canvas image, rendered as an SVG <image> overlaid with SVG rectangles for each crowdsourced title, and lists of the title and date text annotations for each canvas. Titles are linked to their related rectangle on the image via page fragment identifiers.