Spotlight IIIF Examples

Examples using items from exhibits.library.uvic.ca


Examples on this Page

Find a Manifest for an Item

  1. If using Chrome, download the JSON Formatter extension. (It makes reading and copying JSON much easier.)
  2. Go to the "catalog" page, i.e. the page with the viewer and metadata. (example from the Ian McTaggart Cowan exhibit).
  3. A screenshot of the example Spotlight catalog page, which includes a navigation bar and an image viewer.
  4. Add /manifest.json on the end and hit Enter. This will bring you to the manifest for that work (example).

Images of a Specific Size or Region

For instructions and examples of how to request images using IIIF, see the Image API page.

Use a Manifest with Your Own Viewer

The following embedded Mirador viewer uses a manifest from Spotlight. Click the menu symbol (3 lines) to see the manifest metadata.

Use Custom Metadata with a Spotlight Manifest

By editing a manifest for a Spotlight image and passing our new manifest's URL to a IIIF viewer, we can attach custom metadata to that image. To do this, we create a self-hosted copy of the manifest and edit the "metadata" section and leave the rest of the manifest untouched.

    {
    "@context": "http://iiif.io/api/presentation/2/context.json",
    "@type": "sc:Manifest",
    "@id": "https://uviclibrary.github.io/iiif-demo/manifests/spotlight_custom_manifest.json",
    "label": "Edited title", # Replace Edited title with a new title
    "description": [
        "Edited description." # Replace Edited description with a new description
    ],
    "metadata": [
        # Edit the fields in here
    ],
    ...
    # The rest of the manifest stays the same
            

Note that we also change the @id element to be the URL to our customized manifest instead of the manifest hosted on Spotlight, which aligns with the IIIF documentation on the ID property.

The embedded viewer below uses an example of a customized Vault manifest, which is linked below. Click the menu symbol (3 lines) to see the manifest metadata.