LEAF Writer: CSS Customization

Overview This is a research note on how to customize LEAF Writer. https://gitlab.com/calincs/cwrc/leaf-writer/leaf-writer This article specifically covers CSS-based visual customization. This allows you to set up an editing environment with vertical text display, as shown below. The following shows the display before customization. Method Specify the schema file as follows. https://github.com/kouigenjimonogatari/kouigenjimonogatari.github.io/blob/master/xml/lw/01.xml Specifically: < ? x m l - s t y l e s h e e t t y p e = " t e x t / c s s " h r e f = " h t t p s : / / k o u i g e n j i m o n o g a t a r i . g i t h u b . i o / l w / t e i _ g e n j i . c s s " ? > LEAF Writer reads this schema file and changes the editor’s style accordingly. ...

June 29, 2024 · 1 min · Nakamura

LEAF Writer: Entity Lookup for Japan Search

Overview This is an investigation record on how to customize LEAF Writer. https://gitlab.com/calincs/cwrc/leaf-writer/leaf-writer This time, it is a memo on how to add Entity Lookup. Specifically, we add functionality to query the Japan Search utilization schema, as shown below. Method The following changes were made to the forked repository. https://gitlab.com/nakamura196/leaf-writer/-/commit/69e10e2ddd17f6cd01501fbf29f0dd86d1e86a3a Usage You can try a version with partially Japanese-localized UI using the following repository. https://gitlab.com/nakamura196/leaf-writer Please refer to the following for startup instructions. ...

June 27, 2024 · 1 min · Nakamura

LEAF Writer: Adding Japanese UI

Overview This is a research note on how to customize LEAF Writer. https://gitlab.com/calincs/cwrc/leaf-writer/leaf-writer This article covers how to add Japanese UI as a note. Method The following changes were made to a forked repository. https://gitlab.com/nakamura196/leaf-writer/-/commit/c9b7053814fc1e5a27a1847f20076096832dd68b Usage You can try a version with partially Japanese-localized UI using the following repository. https://gitlab.com/nakamura196/leaf-writer For startup instructions, please refer to the following. Summary I hope this is helpful for applications of LEAF Writer. ...

June 27, 2024 · 1 min · Nakamura

Published the Mirador 4 Version of mirador-sync-windows Repository

Overview In the following article, I introduced the creation of the Mirador 4 (3) version of mirador-sync-windows. This time, I am writing a quick note about publishing the repository for this plugin. Repository It is available at the following URL. https://github.com/nakamura196/mirador-sync-windows Demo Page You can try it out at the following URL. https://nakamura196.github.io/mirador-sync-windows/ Here are the configurations I made for publishing on GitHub Pages. webpack I made some changes to the following file. ...

June 27, 2024 · 3 min · Nakamura

Mirador 4 Plugin Development: Rotating Images at Arbitrary Angles

Overview I created a plugin for Mirador 4 that allows rotating images at arbitrary angles. https://github.com/nakamura196/mirador-rotation-plugin You can check the behavior at the following URL. https://nakamura196.github.io/mirador-rotation-plugin/ Background I had been developing this plugin for Mirador 3, but Mirador 4 was pre-released on 2024/3/15. https://github.com/ProjectMirador/mirador/releases/tag/v4.0.0.alpha-1 The latest version of Mirador 3, v3.3.0, was released in 2021, so the libraries it used had become outdated. With this update, development has become easier. ...

June 27, 2024 · 2 min · Nakamura

Running LEAF-Writer in a Local Environment

Overview I had the opportunity to run LEAF-Writer in a local environment, so here are my notes. Repository The following repository is used. https://gitlab.com/calincs/cwrc/leaf-writer/leaf-writer Method g c n n i d p p t m m l c e i r l a u o f n n - e w d r e h i v t t t e p r s : / / g i t l a b . c o m / c a l i n c s / c w r c / l e a f - w r i t e r / l e a f - w r i t e r LEAF-Writer starts on port 3000. ...

June 26, 2024 · 1 min · Nakamura

Verifying the Behavior of Mirador 2 Plugins

Overview I created a repository for verifying the behavior of Mirador 2 plugins. https://github.com/nakamura196/mirador2-plugins-demo You can try it from the following URL. https://nakamura196.github.io/mirador2-plugins-demo/ A working example with sample data is as follows. https://nakamura196.github.io/mirador2-plugins-demo/?manifest=https://nakamura196.github.io/mirador2-sync-windows/data/examples/org.json;https://nakamura196.github.io/mirador2-sync-windows/data/examples/inf.json The purpose of creating this repository was to verify the behavior of plugins developed for Mirador 2 in order to port them to Mirador 3. Plugins mirador-sync-windows The mirador-sync-windows plugin introduced in the following article is enabled. ...

June 25, 2024 · 1 min · Nakamura

Created an M3 Version of mirador-sync-windows

Overview In the following article, I introduced mirador-sync-windows, a plugin for Mirador 2. This time, I updated the above functionality for Mirador 3 (actually Mirador 4). The behavior is still somewhat unstable, but you can try it at the following link. https://mirador-sync-windows.vercel.app/ Deploying to Vercel Development was based on the Mirador 4-compatible branch of the mirador-image-tools plugin. https://github.com/ProjectMirador/mirador-image-tools/tree/mirador4-compat-clean The above project provides the following commands: { " } s c } r , i " " " " " " " " " " " " p b b b b b c l p s t t t t u u u u u l i r t e e e s i i i i i e n e a s s s " l l l l l a t p r t t t : d d d d d n " u t " : : " : : : : " : b " : c w { : d u e c : l : o a e m s j " i " v t " m d " s " e s " n e c n o " : " r s h N p r h p " : : m l O O m a " m : " i n D g : " m " - n l E r e r " N k m r t y _ u " " u N O d k f " E n : j n O D i d : N e D E r i V l " s b E _ r s " = i j t u _ E - u r n d n e i E N p - m c p e t s l N V p d m v t - d V = e e & w : = p s l & r l & a u d r i & u o - t m e o & b _ n p j c c d v d & r t m e o h " e u & m e c e s v " , l c c & s l n t e o t p - t e t " r p i c r s a , a m o - p f _ n w g e n r _ e e n - " & b " t w s r / , & p , e r e a w b c s s n c e p / r p k b a * c & m p c / & s a k e * r e c s r u r k l m n v - & i e m & b - b - o r u m d N & f i o e O & l o d = D d p e p E N / : e = r _ O l e n d o E D i s " e d N E b , v u V _ & e c = E & & l t p N & o i r V n p o o = r p m n d p m m e " u r n , c o - r t t d r u " i u f n , o c n t b i u M d i O n e l D m d U M o : L O / c E D d j _ U i s F L s O E t & R _ " & M F , A O n T R p = M m e A s T r = u n c n p j x s b u b n i a p l b x d e " l b , a e b s e l - d l i e b s " - , d l i b " , Based on the above commands, I modified the Vercel deployment settings as follows: ...

June 21, 2024 · 4 min · Nakamura

Running Archivematica with Docker

Overview For starting Archivematica, using Docker was the easiest method. Installation instructions are documented at the following link. https://github.com/artefactual/archivematica/tree/qa/1.x/hack Following the steps worked well for installation, but I am documenting the points where I encountered failures as a memo. Elasticsearch container When starting the Elasticsearch container, instructions were given to set vm.max_map_count. https://github.com/artefactual/archivematica/tree/qa/1.x/hack#elasticsearch-container If this setting is forgotten, the Elasticsearch container would not start, as shown below. d [ A e e e d o + ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ t l l l e c ] t a a a p k C C C C C C C C C C a s s s e e R o o o o o o o o o o c t t t n r u n n n n n n n n n n h i i i d n t t t t t t t t t t i c c c e c n a a a a a a a a a a n s s s n o i i i i i i i i i i i g e e e c m n n n n n n n n n n n a a a y p g e e e e e e e e e e t r r r o r r r r r r r r r r o c c c f s 1 h h h a e 0 a a a a a a a a a a a - - - i / m m m m m m m m m m r 1 1 1 l u 0 - - - - - - - - - - c e p m a n c e f g a a a h d y r g l l i e r r r i s c i a a t a c c c v t q h n m s s r h h h e o l i x a t - m i i i m - v - v i 1 a v v v a s 1 e 1 d c n e e e t t m - s d m m m i a a 1 e - a a a c r t a 1 t t t a t i r i i i - : c c c c c d a h a a a a c - - - - - s o s 1 m d m h n t c a c b t o p s p o a r - h - a | i a c b s r n g l o e d [ E [ e e i a r - 2 R 1 r - e r v 1 0 R ] s n d e , 2 O : a e t - r 4 R m r - 1 - a - : m - v 1 1 r 0 a e i c 6 [ x l c h - 1 a e i 1 ] v s - v 8 i t 1 e T b r i m 0 o t c a 2 o u s R R R R C R R R C R t : t a e u u u u r u u u r u i 1 s l a n n n n e n n n e n c 6 t r n n n n a n n n a n a : r m c i i i i t i i i t i - 4 a e h n n n n e n n n e n m 0 p m - g g g g d g g g d g c , o 1 p 3 c r - 7 h y e c 3 e x l ] c a i i [ k r t e I s e e n N a d t F f s - O a ( 1 i v 7 , ] l m 8 [ e . ) a o d m r . a c e x h . _ i e m v . a e N p m o _ a d c t e o i E u c n n a v t - i m r [ c o 6 p n 5 - m 5 s e 3 e n 0 r t ] v e i r s - 1 ] t , o [ o a a r m l c - o h n w i o , v d e e i m ] n a c t u r i s e c i a a n s - g e s t [ t o 1 o r ] a a g d t e a - t l s a e e a r p s v a t i t c h [ e s 2 - , 6 1 2 , m 1 o 4 c u 4 l n ] a t m s a v [ d [ - / 1 u , s r e / l s a h s a t r i e c / s e e l a a r s c t h i - c 1 s , e a f r i c t h s / - d 1 a , t a g e a / r d m e a v n / d r - o 1 o , t ) m ] y ] s , q l n - e 1 t , u n s g a i b n l x e - _ 1 s p a c e [ 1 1 . 4 g b ] , n e t t o t a l _ s p a c e [ 4 8 . 2 g b ] , t y p e s [ e x t 4 ] 0 0 0 0 0 0 0 0 0 0 . . . . . . . . . . 0 0 0 0 0 0 0 0 0 0 s s s s s s s s s s Summary Regarding Docker startup, it is noted that it is designed for developers, and care should be taken when using it in production environments. We hope this serves as a useful reference for using Archivematica. ...

June 19, 2024 · 6 min · Nakamura

Trying Out mirador-sync-windows

Overview mirador-sync-windows is described as follows. https://github.com/UCLALibrary/mirador-sync-windows When comparing multiple nearly identical images, such as different spectral images of the same object, it is helpful to apply actions simultaneously across multiple windows. Here is a usage demo: https://youtu.be/Ls2zvJpSRlc Note that this is a plugin for Mirador 2, and the repository has been archived. This time, I created a repository for trying out mirador-sync-windows, so I will introduce it. Repository https://github.com/nakamura196/mirador2-sync-windows/ ...

June 19, 2024 · 1 min · Nakamura

Converting Toji Hyakugo Monjo WEB Data to IIIF

Overview I had the opportunity to use images published on the Toji Hyakugo Monjo WEB, which publishes the National Treasure Toji Hyakugo Monjo held by the Kyoto Prefectural Library and Archives, and created a repository that converts the published data to IIIF format. https://github.com/nakamura196/toji_iiif The following dataset was used. https://hyakugo.pref.kyoto.lg.jp/?page_id=1481 In particular, you can view a list of images from the following URL. https://nakamura196.github.io/toji_iiif/ Key Points IIIF Collection You can access the IIIF collection from the following URL. This enables machine-readable access. ...

June 19, 2024 · 1 min · Nakamura

Trying Parts of https://wikidata.reconci.link/

Overview During my research, I learned about the existence of the following API. https://wikidata.reconci.link/ This is a memo on how to use it. Suggest Suggest values could be obtained using URLs like the following. https://wikidata.reconci.link/en/suggest/entity?prefix=中村覚 Preview Preview results could be obtained using URLs like the following. https://wikidata.reconci.link/en/preview?id=Q107095935 Summary It appears to be commonly used together with OpenRefine, and I would like to investigate further when the opportunity arises. https://qiita.com/yayamamo/items/eade3e5788e6f359bce7

June 17, 2024 · 1 min · Nakamura

Adding Classes and Properties Using the Omeka S CustomOntology Module

Overview Custom Ontology is a module that allows you to add custom vocabularies when standard ontologies such as LOV, schema.org, and W3C are not available. For basic usage of this module, please refer to the following. https://nakamura196.hatenablog.com/entry/2021/07/24/235050 For how to update vocabularies that have already been created using this module, please refer to the following. This article explains how to add classes and properties to an already created vocabulary. ...

June 17, 2024 · 2 min · Nakamura

Released v4.1.0 of Omeka-S-module-FixCjkSearch

Overview To address the issue where full-text search in Japanese does not work well with Omeka S’s standard functionality, I have created the following module. https://github.com/nakamura196/Omeka-S-module-FixCjkSearch This module had stopped working with the latest version of Omeka S at the time of writing (v4.1.0), so I released an updated version of the module. https://github.com/omeka-j/Omeka-S-module-FixCjkSearch/releases There may be some incomplete aspects, but I hope this serves as a helpful reference. References For information about full-text search issues with Japanese, please also refer to the following article. ...

June 17, 2024 · 1 min · Nakamura

Accent Sensitivity in Omeka S Partial Match Search

Overview I investigated accent sensitivity in Omeka S partial match search, and here are my notes. Symptom For example, when items containing the string “tako” (in hiragana) are stored, searching for “tako” in hiragana, katakana, or with dakuten (voiced mark) variations all return the same results. Cause The issue appeared to be caused by the default collation “utf8mb4_unicode_ci” set during installation. Specifically, this collation is “case-insensitive” (does not distinguish between uppercase and lowercase) and “accent-insensitive” (does not distinguish between accented and unaccented characters), which is why hiragana, katakana, and dakuten variations return the same search results. ...

June 17, 2024 · 1 min · Nakamura

Notes on Using Zotero

Overview https://www.zotero.org/ Zotero is described as follows. Zotero is a free, easy-to-use tool to help you collect, organize, annotate, cite, and share research. These are notes on how to use Zotero. From Identifiers You can import from DOI as shown below. Websites Install the following Chrome extension “Zotero Connector.” https://chromewebstore.google.com/detail/ekhagklcjbdpajgpjgmbionohlpdbjgc Click the extension on the website you want to cite, and you can register it as shown below. ...

June 15, 2024 · 1 min · Nakamura

How to Handle CSP Errors in Strapi

Overview I configured Strapi with the following plugin to store media in S3. https://www.npmjs.com/package/@liashchynskyi/strapi-provider-upload-s3-cloudfront At that time, the following error occurred and images were not displayed. R e f u s e d t o l o a d t h e i m a g e ' h t t p s : / / x x x / u p l o a d s / y y y . j p g ' b e c a u s e i t v i o l a t e s t h e f o l l o w i n g C o n t e n t S e c u r i t y P o l i c y d i r e c t i v e : " i m g - s r c ' s e l f ' d a t a : b l o b : d l . a i r t a b l e . c o m " . I was able to resolve this issue by modifying ./config/middleware.js, as described in the following article. ...

June 12, 2024 · 2 min · Nakamura

Drupal: Setting Pre-filled Values Using the Prepopulate Module

Overview When accessing the Drupal content creation screen, I was able to set pre-filled values by specifying query parameters, so this is a memo of the process. The following module is used. https://www.drupal.org/project/prepopulate Usage For example, when adding new content to a content type called “poems,” add query parameters as follows. </node/add/poems?edit[field_spot][widget][0][target_id]=1&edit[title][widget][0][value]=テスト> As a result, the registration screen is displayed with the initial values pre-filled as shown below. Summary I hope this serves as a useful reference. ...

June 12, 2024 · 1 min · Nakamura

Creating RDF Data Using Microsoft Visio

Overview I had the opportunity to use Microsoft Visio for creating RDF data, so this is a memo of that experience. https://www.microsoft.com/ja-jp/microsoft-365/visio/flowchart-software Note that Microsoft Visio is not a tool specialized for creating RDF data, but it is a flowchart and diagramming software with high usability. Therefore, I attempted to convert data created with this tool into RDF. For converting data created in Microsoft Visio to RDF, the following Python library is used. ...

June 8, 2024 · 3 min · Nakamura

Using "ARC2 RDF Graph Visualization" from Python

Overview I had the opportunity to use “ARC2 RDF Graph Visualization” published by Masahide Kanzaki from Python, so here are my notes. The public page for “ARC2 RDF Graph Visualization” is below. https://www.kanzaki.com/works/2009/pub/graph-draw By providing RDF described in Turtle, RDF/XML, JSON-LD, TriG, or Microdata as input, you can obtain visualization results as png or svg files. Usage Example in Python i t o # u d } # r # i e m e u r a e f l p x t D l t S s C s o t p a a e p h r e r u t = " " " " " n o e e p # : o # w t = t a = R r g r q d n c s r s i _ " D t t a n s k p i p . S t r " p n h { F y y n a P e o n r m a h e @ a e t " p p k m O i n t i a v f q p t e t : e e d e S = f s ( n k e o . u r h d p " " i " T e " t e p w e e e s t : : r : r r . R ( d r e r s f = d : e " r e e h e r i e n i t i / x " " : " e q s e s e r s ( t s x " f t t p o q u p a p s s p o e . w , u n " n u e o d o p ( o u ( n / r w r g l " e s n e n o o n t r s g w t " r , s t s r s n s s p e 1 r P . l , " t s e s e s . e u s : a O k e , . [ e p t p p S a " p i ' i . a a _ o < h T n , o s C s t t s p n h . z s o e h a s t p r a t n n n x . P t e t n e k ( o t o t d N h . p g q i u t e t [ i G , c : " u . r n : r o / e c l a t a 5 n f ' n / s o , - 0 a i w t e t m P T P 0 m l b e x / d N y N ] e e ' n a w a G p G ) ( ) t m o t e o ) p r a i ' i u a l k = m ] m # t s e s d a a p . / a g ! g D u f o 2 t e = e i t : r 0 a . s _ g 0 ) ' p p / 9 i D l a p / m i a t r p a s y h o u g p ) p b e l f , e / / a i r g p y r e y r n i s x / a g n t i > p ' g s h : 5 t - c 0 _ \ d o 0 o n r n k \ a t c = n w e h T < " n a r h t r u t : a e t " c ) p ) t : e / r / s e x # a m [ p : l 5 e 0 . 0 o ] r g / b b b > n s 1 : a a a \ " c c c \ " . " Summary I hope this is helpful for visualizing RDF data. ...

June 7, 2024 · 4 min · Nakamura