Overview# mirador-annotations is a Mirador 3 plugin that adds annotation creation tools.
https://github.com/ProjectMirador/mirador-annotations
This time, I tried combining it with the following SimpleAnnotationServer, and this is a memorandum of the process.
https://github.com/glenrobson/SimpleAnnotationServer
Preparing SimpleAnnotationServer# Follow the Getting Started guide below.
https://github.com/glenrobson/SimpleAnnotationServer#getting-started
When you access http://localhost:8888/index.html , the following screen is displayed.
The endpoint appears to be http://localhost:8888/annotation/ , which displays a list of registered annotations (initially empty).
This endpoint will be used from Mirador 3.
Preparing Mirador 3# From Source Code# Clone and launch the source code from the following site.
https://github.com/ProjectMirador/mirador-annotations
g c n n i d p p t m m m c i i r l r u o a # n n d e o n s r p t h - m a t a r t n i t p n s o : t - / a f / t o g i r i o c t n e h s u が b 必 . 要 c か o も m し / れ P ま r せ o ん j e c t M i r a d o r / m i r a d o r - a n n o t a t i o n s When you access http://localhost:3000/ , the following screen is displayed.
Configuring the Adapter# In demo/src/index.js, import SimpleAnnotationServerV2Adapter and specify the previously launched SimpleAnnotationServer as the endpoint (here, endpointUrlV2).
i i i i i c c c } m m m m m m o o o ; i p p p p p n n n a } i w } w } r o o o o 以 o s 以 s s n , d i , i ] a r r r r 下 r t 下 t t n a e : n d s n l , d t t t t を t を d x d e i d o o 追 e 追 e c t a p ' o f d o a r m a L A 加 S n 加 n o a 以 a a 以 p o d w a e w d . i n o n i d d n t 下 d d 下 t r e : u B s e v r n c n m p p f i を a a を e t m l a : d i a o a o p o o i o コ p p 追 r L o { t r M e d t l t l i i g n メ t t 加 : o ' S O [ a w o a S o e n n : ン e e c , i p { n e r t t t A t t = ト r r ( a d e i r i o A n U U { ア : : c l e n f ( f o r d n r r { ウ a S B B e c r n a a o l l ト ( ( n t a y s o o P g p t V c c v o r D t n m l e t a = 2 a a a r P e : f u A e t n n s a a f i ' g d r i ' = v v I g n a ' g m i a o h a a d e e u h , i n p f n t ' s s ) A l l t r s t r S t h I I n : t t [ a e o e p t d d = n : p . d f r m r : t ) ) > o ' s . o r v / p t a t : . r f e / : = = n a n r / a m r r 1 / > > e t n u / n d o V 2 / w i o e i n i m 2 7 0 n n o t , i o s A . . e e S n a i t t d 0 0 w w i s t f a a . . m : i . t e s p 0 0 L A p o h i s r t . . o n l f n a o c e 1 0 c n e a s r n s s r : : a o A l ' v P r r A 3 8 l t n s , a l c c s n f 0 8 S o n e r u / ' r n r 0 8 t t o , d g i ; c o 0 8 o A t a i n t m / / r d a r n d L o a a a a t t s e o t n n g p i m ] x c A n n e t o d u ) ' a d o o A e n i s ; ; l a t t d r S s e S p a a a ( e p u t t t t p c r l m o e / i i t a v a s r r s o o e n e y . a ' r n n r v r o g ; c s ' ( a V a r e / ' ; ` s 2 n g A S ; l I A n / d i o d d o m a m c , a t a p p a p a n t l l e t t i e e S n e i f r A t d r o e ' n o p ( n s ; n r o c t o a i a J s t g n n S / a e t v O o t : U a N b i / r s j o / l I e e n ? ) d x c S c , , p t e a o / r n e r 2 v v n t 9 e a d 9 r s p b 8 V I o u 4 2 d i t 3 A = n t ' d $ t o , a { U n p c r t a l e n V r v 2 ' a ) ; s , I d } ` ) , Modifying the Adapter# As noted in the following pull request, a partial modification to the adapter is required.
https://github.com/ProjectMirador/mirador-annotations/pull/55
In createV2Anno, it was necessary to remove .id from the part that specifies the Canvas URI.
s } t C a c } r r t o ; e e i n ' ' m o } t a c s @ @ o n , c u t t c t t : ' f o r e c o y i @ u p n s r v n p v { t l y e 2 t e a y l v a a a e ' t p : i 2 t n x : i e d a V e n t o ' v n 2 V o ' n : 3 i n 2 : o : a f o a A = a n ; n n ' : o n i n n { h A o a o t o o t n a : . t ( t n : S t i a v p o c p a s t 3 : t o e r i a / a m c g S o n / t m i e A n n i i e f t S o i o n i . - f ) i n t c s g r f ' i R o e o { . , n e u n m i g s r e o ' o c r a / , u e a a r , t V p c e 3 i e d / ' a p , n r . n e i o s d t e , a n t t i a o t n i こ o こ n を / 修 2 正 / c o n t e x t . j s o n ' , Result# Annotations were registered as shown below.
They were also registered in SimpleAnnotationServer as follows:
{ } " " " " " ] " ] " ] " @ @ d d r , o , m , @ i t c c e { } n { } o " c d y t t s " t o o " p e e o " " " " : " " } " } " i a n : e r r u @ h f c @ w , s , f v : t " m m r t t o h [ t i " " e " " } " } u a c e " : s s c y t r a y t @ @ l @ d , i l t o x h : : e p p m r p h i t e t e " " t " " l i m t t " c m " e : a s e i d y c y f @ v e @ v " o m " t o r o : " / t " " n " p t p a t a m t a : n e : p a e d : / " : : " : e o e u y l " y l " n : : a i [ d : : " r " l p u : p u " : t " / A t f " e " " " : " : t e e e e h i h / n e i d v " < o { h : " " " { " " t [ n t 0 n d e c . t p a t " " : : : : : t g t . o " d t l e > : t s { o p " p 0 t : " y l x 中 S p c a { " " " " s : . a : p g t 村 p s : : o x o < : / 0 t " e c 覚 e : M C a y a s / / . i 2 " s . h < c / a h : w : v / i 0 o 0 2 : o t / i / n o F h S g i i : n 2 0 T r m p f i i i r = v i i 8 " 3 2 e g l > i i f c a 8 g x i f 8 , - 3 x . " " c i e e g 3 S m f . 8 0 - t u , R f s " m 7 e l . i 8 8 0 " k e . t , e , l n h o / - 8 , / s h " n 1 e s a / a 1 - s o a t 7 c = r a n 8 1 a u r S 0 t ' v p n T 8 s r v e 5 o h a i o 0 T / c a l , r t r / t 9 0 f e r e 3 " t d p a : 9 u " d c 8 , p a r t 0 : l , a t 2 : r e i 6 0 l r o , / t s o : 6 _ t r 3 / m e n 1 : t m " 4 w u n / 2 1 e u , 3 w s t 1 " 2 x s " w e a 6 , " t e . u t 9 , " u w m i 2 : m 3 s o 3 s . . n 1 " . o o / 7 中 o r r 2 1 村 r g g / 7 覚 g / / c 2 " / 2 m o 7 , m 0 a n 9 a 0 n t 9 n 0 i e " i / f x , f s e t e v s . s g t j t ' s s s > / o / < o n o p b " b a j j t e e h c c t t x / / m 2 2 l 9 9 n 9 9 s 8 8 = 4 4 \ 3 3 " / " h c , t a t n p v : a / s / / w c w a w n . v w a 3 s . - o 4 r 7 g 1 / 7 2 4 0 8 0 9 0 6 / " s v g \ " d = \ " M 8 3 6 . 6 6 8 8 , 1 7 0 4 . 9 2 6 6 6 h 1 9 0 . 9 8 8 3 6 v 0 h 1 9 0 . 9 8 8 3 6 v 1 7 1 . 6 9 2 6 7 v 1 7 1 . 6 9 2 6 7 h - 1 9 0 . 9 8 8 3 6 h - 1 9 0 . 9 8 8 3 6 v - 1 7 1 . 6 9 2 6 7 z \ " d a t a - p a p e r - d a t a = \ " { " s t r o k e W i d t h " : 1 , " r o t a t i o n " : 0 , " d e l e t e I c o n " : n u l l , " r o t a t i o n I c o n " : n u l l , " g r o u p " : n u l l , " e d i t a b l e " : t r u e , " a n n o t a t i o n " : n u l l } \ " i d = \ " r e c t a n g l e _ 2 1 0 4 2 e 1 d - 1 6 6 3 - 4 d 0 0 - b 5 f 0 - 2 f a 6 4 3 7 f c 8 f b \ " f i l l - o p a c i t y = \ " 0 . 0 0 0 0 1 \ " f i l l = \ " # 0 0 b f f f \ " f i l l - r u l e = \ " n o n z e r o \ " s t r o k e = \ " # 0 0 b f f f \ " s t r o k e - w i d t h = \ " 1 \ " s t r o k e - l i n e c a p = \ " b u t t \ " s t r o k e - l i n e j o i n = \ " m i t e r \ " s t r o k e - m i t e r l i m i t = \ " 1 0 \ " s t r o k e - d a s h a r r a y = \ " \ " s t r o k e - d a s h o f f s e t = \ " 0 \ " f o n t - f a m i l y = \ " n o n e \ " f o n t - w e i g h t = \ " n o n e \ " f o n t - s i z e = \ " n o n e \ " t e x t - a n c h o r = \ " n o n e \ " s t y l e = \ " m i x - b l e n d - m o d e : n o r m a l \ " / > < / s v g > " The above results could be retrieved by specifying the Canvas URI as follows:
http://0.0.0.0:8888/annotation/search?uri=https://iiif.harvardartmuseums.org/manifests/object/299843/canvas/canvas-47174896
The endpoint documentation was available at:
https://github.com/glenrobson/SimpleAnnotationServer/blob/master/doc/Endpoints.md
Summary# I tried the mirador-annotations plugin and SimpleAnnotationServer with Mirador 3. I hope this serves as a useful reference.