mirador-annotationsはアノテーションの作成ツールを追加するMirador 3のプラグインです。

https://github.com/ProjectMirador/mirador-annotations
今回、以下のSimpleAnnotationServerとの組み合わせを試してみましたので、その備忘録です。
https://github.com/glenrobson/SimpleAnnotationServer
SimpleAnnotationServerの準備#
以下のGetting Startedの通りに進めます。
https://github.com/glenrobson/SimpleAnnotationServer#getting-started
http://localhost:8888/index.html にアクセスすると、以下の画面が表示されます。

エンドポイントは http://localhost:8888/annotation/ のようで、登録済みのアノテーションの一覧(はじめは空)が表示されます。

このエンドポイントをMirador 3から利用することになります。
Mirador 3の準備#
ソースコードから#
以下のサイトからソースコードをクローンして立ち上げます。
https://github.com/ProjectMirador/mirador-annotations
http://localhost:3000/ にアクセスすると、以下の画面が表示されます。

アダプタの設定#
demo/src/index.jsについて、SimpleAnnotationServerV2Adapterをインポートし、さらにエンドポイント(ここでは、endpointUrlV2)に先ほど起動したSimpleAnnotationServerを指定します。
アダプタの修正#
以下のプルリクエストでも指摘されていますが、アダプタの一部修正が必要です。
https://github.com/ProjectMirador/mirador-annotations/pull/55
createV2AnnoでCanvasのURIを指定する箇所で、.idを除く必要がありました。
以下のようにアノテーションが登録されました。

SimpleAnnotationServerにも以下のように登録されていました。
上記の結果は、以下のように、CanvasのURIを指定して取得できました。
http://0.0.0.0:8888/annotation/search?uri=https://iiif.harvardartmuseums.org/manifests/object/299843/canvas/canvas-47174896
エンドポイントの説明は以下にありました。
https://github.com/glenrobson/SimpleAnnotationServer/blob/master/doc/Endpoints.md
まとめ#
Mirador 3のmirador-annotationsプラグインとSimpleAnnotationServerを試しました。参考になりましたら幸いです。