Skip to content

TETRAS-IIIF/mirador-annotation-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,590 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mirador Annotation Editor - Apache edition

Presentation

Generalities

mirador-annotation-editor(also known as "MAE") is a Mirador 4 plugin that adds annotation creation tools to the user interface.

It is based on the original mirador-annotations plugin with a lot of technical and functional modifications (including migration from PaperJS to Konvas for the drawing part).

General functionalities

  • Activate a panel with tools to create annotations on IIIF documents (manifests) containing images and videos with MAEV
  • Spatial and temporal targets for annotations
  • Overlay annotations (geometric forms, free hand drawing, text and images)
  • Textual/semantic annotations and tags
  • Annotation metadata (based on Dublin Core)
  • Annotation with another manifest --> network of IIIF documents

Install / integrate

NPM package

npm install mirador-annotation-editor

Use in existing npm project with previous plugins

You can override existing annotation plugin with your own versions by using npm. We support React 18 and MUI 5.

Update your package.json file to include the following dependencies and devDependencies:

"mirador-annotations": "npm:mirador-annotation-editor@^1.1.6",

You need also to use the latest version of Mirador 4.

"mirador": "4.0.0"

Mirador 4 integration example

Install (local)

This method requires nvm, npm.

git clone git@github.com:TETRAS-IIIF/mirador-annotation-editor.git
cd mirador-annotation-editor
nvm use
npm install

Run a demo with Mirador and the MAE plugin :

npm start

Usage

Use MAE with video annotation support

Persisting Annotations

Persisting annotations requires implementing a IIIF annotation server. Several examples of annotation servers are available on iiif-awesome.

We provide a full Mirador workspace with persistance at https://app.mirador-multi-user.com.

Configuration

See demo/src/index.js for a full configuration sample.

 let annotationConfig = { // Annotation plugin related
    adapter: (canvasId) => new LocalStorageAdapter(`localStorage://?canvasId=${canvasId}`, 'Anonymous User'), // Adapter to persist annotations
    allowTargetShapesStyling: true, // Allow user to change color, line ... Color rendering is not fully supported by Mirador viewer in some case
    commentTemplates: [{ // Templates for comment creation
      content: '<h4>Comment</h4><p>Comment content</p>',
      title: 'Template',
    },
    {
      content: '<h4>Comment2</h4><p>Comment content</p>',
      title: 'Template 2',
    }],
    exportLocalStorageAnnotations: false, 
    quillConfig, // Configuration for the quill editor
    readonly: false, // If true, no annotation creation, edit, deleting is allowed
    tagsSuggestions: ['Mirador', 'Awesome', 'Viewer', 'IIIF', 'Template'], // Tags suggestions for autocompletion
};

Technical aspects from the original plugin

  • Mirador 4 support
  • Update to Material UI 7 and React 19 to follow latest Mirador upgrades
  • The paperjs library has been replaced with Konvas
  • Use template to facilitate the creation of annotations with pre-filled content and tags
  • Use of quill as rich text editor for annotation content
  • Mirador Multi User (MMU) support for real time annotation sharing and collaboration (see https://mirador-multi-user.com/)
  • New adapter system to facilitate the implementation of annotation persistence and sharing (Aiiinotation server )

Contribute

Our plugin follow the Mirador guidelines. Development, design, and maintenance is driven by community needs and ongoing feedback and discussion. To suggest features, report bugs, and clarify usage, please submit a GitHub issue.

Contributor

The contributors of this software are :

  • Tétras Libre SARL
    • David Rouquet
    • Anthony Geourjon
    • Antoine Roy
  • Leipzig University
    • Gerd Muller
    • fstoe
  • École nationale des ponts et chaussées (enpc.fr)
    • paulhectork

License

Like the original mirador-annotations plugin, this mirador-annotation-editor is distributed under the Apache License Version 2.0.

Beware that the extension plugin mirador-annotation-editor-video that supports video annotation is released under the GPL v3 license.

Please acknowledge that any modification you make must be distributed under a compatible license and cannot be closed source.

If you need to integrate this code base in closed source pieces of software, please contact us, so we can discuss dual licencing.

Property

The base of this software (up to V1) is the property of SATT Ouest Valorisation that funded its development under the French public contract AO-MA2023-0004-DV5189. After that, development has been almost fully supported by Tétras Libre with external contributions.

About

Mirador annotation Editor - Mirador 4 Plugin - Editor of IIIF annotations

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors

Languages