Skip to content

iiif static annotations via jekyll ๐Ÿ“œ๐Ÿ“ Forked for the AdArchive project

License

Notifications You must be signed in to change notification settings

timothyarthur/annotate

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

IIIF-Annotate for AdArchive

Create/store/load static annotations on IIIF manifests via Jekyll

Getting started

Requirements

  • Ruby <=3.1
  • Jekyll >=4.2
  • Bundler >=2.4

Installing

  • Clone this repository and navigate into it:
    $ git clone https://github.com/mnyrop/annotate.git && cd annotate
  • Install dependencies:
    $ bundle install

Enhancements for creating clippings (pbinkley)

The rake task store_annotations has more functions:

  • it processes new annotations, as in the original annotate
  • it also interprets annotations to create clippings:
    • in subdirectory clippings it creates a directory structure [manifest]/[page] within which it stores clipping images, with names like 1-photo-woman-with-film-camera-1235-134-1126-637.jpg (page number, tag, title, xywh)
    • within the clippings/[manifest] directory, it creates clippings.csv, with a dump of data about all the clippings from that manifest: id,item,canvas,canvasNum,tags,texts,xywh,clippingURL,clippingImage. The id is a uuid; clippingURL can be used to retrieve the clipping image at its highest resolution, and can serve as the URI for the clipping; clippingImage contains the local path and filename of the clipping image.
    • these functions are idempotent: clipping images will only be fetched if they are not already present (otherwise it will output "No fetching [image]"), and the clippings.csv will always be regenerated from all the annotations, regardless of whether they are old or new.

Further enhancements (timothyarthur)

  • Updated with rake function for adding new manifests from files named /iiif/[manifest]/manifest.json
  • Debugged Rakefile
  • Updated to Jekyll 4
  • Uses patched jekyll-swiss theme

About

iiif static annotations via jekyll ๐Ÿ“œ๐Ÿ“ Forked for the AdArchive project

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 73.2%
  • CSS 24.7%
  • Ruby 1.3%
  • HTML 0.8%