This is a fork of the demonstration project at https://github.com/ProjectMirador/mirador-integration. This project adapts the code to work within Drupal for the Islandora project.
The main differences are
- Adding a few more plugins, and
- Invoking Mirador is done in the islandora_mirador Drupal module.
This repository is designed to show integrating Mirador 3 with modern frontend build systems.
The dependencies are listed in package.json.
TO install them, run:
npm install
Webpack is used to build the app for use by Islandora
See ./webpack
for a basic webpack setup for Mirador 3 + a plugin.
npm run webpack
The output folder webpack/dist should now contain a file main.js which you can place in your drupal installation under [webroot]/libraries/mirador/dist.
You can then go to /admin/config/media/mirador and set it to use the local version after clearing your site's cache.