This is an demonstration of a simple-site extension that uses the IIIF image viewer Mirador to produce a customised presentation of a bespoke selection of IIIF manifests[1]. It is an example of a special page that can be added to the pages.json file.
The Example
Summary
Extension Variables
For this extension to work the class variable needs to be set to mirador and the file variable needs to give the name of the additional json file including the IIIF manifest list data as shown below.
The details included in the content and content right variable will be presented as previously described, however the data included in the named file, in this case mirador.json will be processed to add a populated MIrador image viewer to the page.
Mirador JSON file
As with the other JSON files the mirador data needs to be organised in a series of JSON objects, an example of which is provided below, for an example of real code please see the mirador.json file. The expected data can be split into two parts, the first is required and the second, more complex section is optional.
Section one - catalog object
This object is composed of a simple list of manifests URIs that should be preloaded into the viewer. If only the catalog object is provided Mirador is setup to autoload in the first image of the first manifest listed.
Section two - the windows object
As noted above this section is optional, it can also be a bit more complex. This object id intended to allow users to make use of some of the standard Mirador options to define which manifests and images are automatically loaded into the viewer and how they are arranged.
Mirador Text file
Although the JSON format described above is preferred and provides additional functions, in order to make this extension as simple an accessible as possible, it is also possible to provide details of required manifests as simple text list, with one manifest per line.