An automated program to generate IIIF Presentation Manifests from static, downloaded RDF-JSON data. Provides a command-line interface for parsing and converting all necessary elements into an IIIF Manifest.
- Clone this repository
- Install dependencies by running
npm install
from within the folder
- Generate a manifest by running
node src/BookInfoRetriever.js <media page url> [... more urls]
to generate a manifest for the given media page. - Copy the output JSON and paste into a text file.
- Edit the
EDIT_ME
portions of the text as appropriate - Upload text file in deployment environment
Example:
$ node src/BookInfoRetriever.js https://my.site/media_page
Beginning decoding...
Generating manifest for page: https://my.site/media_page
Beginning construction for: https://my.site/media_page
Using image file: image.jpeg
{
...manifest
}