Skip to content

Latest commit

 

History

History
184 lines (130 loc) · 6.75 KB

README.md

File metadata and controls

184 lines (130 loc) · 6.75 KB

Diva Viewer (module for Omeka S)

New versions of this module and support for Omeka S version 3.0 and above are available on GitLab, which seems to respect users and privacy better than the previous repository.

Diva Viewer is a module for Omeka S that integrates Diva, a Document Image Viewer with AJAX, that is an advanced online viewer for images, so it can display books, images, maps, etc. via the IIIF standard.

Diva is a web-based document viewer optimized for high-resolution image collections. Using Diva you can display your images at the largest resolution. It has a full API and plugin system to help integrate and extend Diva to suit your needs.

It uses the resources of any IIIF compliant server. The full specification of the "International Image Interoperability Framework" standard is supported (level 2). If you don’t have an IIIF-compatible image server, like Cantaloupe or IIP Image server, Omeka S can be one! Just install the module IIIF Server and Image Server.

It’s a lighter and themable alternative to the Universal Viewer or the Mirador Viewer.

Note: unlike Universal Viewer and Mirador, Diva uses always the tiles. So if you use the module IIIF server as image server, all images should be tiled first, else the display of images may be slow.

Furthermore, the current module doesn’t not support collections.

Installation

The module uses an external js library Diva, so use the release zip to install it, or use and init the source.

  • From the zip

Download the last release Diva.zip from the list of releases (the master does not contain the dependency), and uncompress it in the modules directory.

  • From the source and for development:

If the module was installed from the source, rename the name of the folder of the module to Diva, and go to the root module, and run:

composer install --no-dev

Then install it like any other Omeka module.

  • Access to IIIF images

Diva viewer is based on IIIF, so an image server compliant with this protocol is required to use it. So, install the module Image Server if needed.

If you need to display big images (bigger than 1 to 10 MB according to your server, your network, and your users), use an external image server, or create tiles with Image Server. The tiling means that big images like maps and deep paintings, and any other images, are converted into tiles in order to load and zoom them instantly.

Usage

Configuration

The url of the manifest of the items should be set inside the property specified in the config form of the module. If you don’t have an IIIF Server, install the module IIIF Server.

To config Diva:

  • via the theme of the site: copy file view/common/helper/diva.phtml in your theme and customize it;
  • via the theme of the site and the assets (asset/vendor/diva).

Display

If the IIIF Server is installed, all resources of Omeka S are automatically available by the viewer, else the url of the manifest should be set in the configured property.

The viewer is always available at http://www.example.com/item/{item id}/diva. Furthermore, it is automatically embedded "item/{id}" show and/or browse pages. This can be disabled in the settings of the site. Finally, a block layout is available to add the viewer in any standard page.

To embed Diva somewhere else, just use the helper:

    // Display the viewer with the specified item set.
    // The module doesn’t support this feature currently.
    // echo $this->diva($itemSet);

    // Display the viewer with the specified item and specified options.
    // The options for Diva are directly passed to the partial, so they are
    // available in the theme and set for the viewer.
    echo $this->diva($item, $options);

    // Display multiple resources (items and/or item sets).
    // The module doesn’t support this feature currently.
    // echo $this->diva($resources);

Warning

Use it at your own risk.

It’s always recommended to backup your files and your databases and to check your archives regularly so you can roll back if needed.

Troubleshooting

See online issues on the module issues page on GitLab.

License

This module is published under the CeCILL v2.1 license, compatible with GNU/GPL and approved by FSF and OSI.

In consideration of access to the source code and the rights to copy, modify and redistribute granted by the license, users are provided only with a limited warranty and the software’s author, the holder of the economic rights, and the successive licensors only have limited liability.

In this respect, the risks associated with loading, using, modifying and/or developing or reproducing the software by the user are brought to the user’s attention, given its Free Software status, which may make it complicated to use, with the result that its use is reserved for developers and experienced professionals having in-depth computer knowledge. Users are therefore encouraged to load and test the suitability of the software as regards their requirements in conditions enabling the security of their systems and/or data to be ensured and, more generally, to use and operate it in the same conditions of security. This Agreement may be freely reproduced and published, provided it is not altered, and that no provisions are either added or removed herefrom.

Diva is published under the ISC licence.

Copyright

Widget Diva:

Module Diva for Omeka S:

  • Copyright Daniel Berthereau, 2018-2021

This project was supported in part by the University of California Office of the President MRPI funding MR-15-328710.