AHG Extensions for AtoM

Home / Plugins / Mirador Viewer

Mirador Viewer

Contributes the Mirador IIIF image viewer as an independently installable plugin. Registers a renderer with ahgIiifPlugin's RendererRegistry; install or disable it to choose the viewer.

Part of the IIIF & Advanced Viewing capability. Watch the walkthrough.

CategoryViewing
PackageahgMiradorPlugin
Version1.2.0
StatusPackaged download with its own installer. Clean-database install not yet verified.
RequiresIIIF
LicenceAGPL-3.0-or-later
InstallPackaged download with its own installer: see the downloads page

Mirador as an independently installable AtoM plugin. A full IIIF workspace - deep zoom, thumbnails, metadata panel, and the side-by-side comparison Mirador is chosen for.

Requirements

AtoM              2.9 or 2.10
PHP               8.1 or later
ahgIiifPlugin     carried in this bundle
ahgCorePlugin     carried in this bundle
ahgRuntimePlugin  2.14.1 or later, installed separately

The bundled build is pinned to the published Mirador 3.4.3 release (https://unpkg.com/mirador@3.4.3/dist/mirador.min.js, sha256 recorded in extension.json), so it can be checked against upstream advisories. Until v1.2.0 the bundle matched no release between 3.0.0 and 3.4.3 and its provenance could not be established, which left any security question about it unanswerable.

Mirador is vendored, so there is no CDN to whitelist and no build step. Mirador 3 injects its own styles from JavaScript; the mirador.min.css beside it is a placeholder and carries no rules.

An IIIF image server is optional and stays yours - see the image server guide.

Known limits

  • Annotations are not wired to a store. Mirador can display annotations carried in a manifest, but nothing here writes them back, and ahgIiifPlugin runs its own annotation store that knows nothing about Mirador's. Connecting them means deciding which is authoritative and what becomes of annotations already held in either, so it is a design decision rather than a missing call. Tracked in issue #286.
  • The viewer does not match the site around it. theme is passed through and accepted, but nothing derives a Mirador theme from the active AtoM theme, so a site with its own colours gets Mirador's defaults.

Verified on AtoM 2.10 against Cantaloupe 5.0.6: mounts on a record page, refuses a cross-origin manifest, reports a missing one, and drops a non-allowlisted override.

Licence: AGPL-3.0-or-later.

Installation

Download the bundle and the runtime from the downloads page, then follow the bundle's INSTALL.md. In short, from the AtoM root, after a backup and on a staging copy first:

unzip ahgRuntimePlugin-<version>.zip -d plugins/
unzip ahgMiradorPlugin-<version>.zip -d plugins/
php plugins/ahgMiradorPlugin/bin/install-plugin-schema.php \
    --database=<database> --user=<user> --password=<password>

Then enable it in Admin > Plugins, clear the cache and reload PHP.

Try it

This feature is for signed-in staff, so it is not open on the public demo. Watch the walkthrough instead.

Source and README on GitHub · Questions: support@theahg.co.za or WhatsApp