Exporting Tropy Data to Omeka S

Overview I had the opportunity to export Tropy data to Omeka S, so this is a memo of the process. Instructions A machine translation of the official manual is provided at the end of this article. Usage Example Below is the Tropy screen. We used images from Irasutoya. As shown, it was possible to annotate images. Below is the result after exporting to Omeka S. The item was registered as a new item along with multiple media including cropped images. ...

August 23, 2024 · 5 min · Nakamura

Preventing Unpublished Content from Being Indexed by Drupal's Search API

Overview This is a memo on how to prevent unpublished content from being indexed by Drupal’s Search API. References This was also documented in the following article. https://www.acquia.com/jp/blog/introduction-to-search-api-1 Method It was necessary to enable “Entity status” at the following location: /admin/config/search/search-api/index/xxx/processors Summary We hope this serves as a useful reference.

August 20, 2024 · 1 min · Nakamura

Drupal: Troubleshooting Cache Clear Errors

Overview When clearing the cache in Drupal, the following error sometimes occurred. I n v T e e C h n n h e t d e o c s s r k e e / E r r b x v v i c i i n e c c / p e e d t r i " " u o a u s n c s h O c e n e r c I s . r n s d v _ a a c t l h a i e " d c . R k e . f c e o r n e t n a c c e t B _ e p h e a r v s i o o n r a P l a " s s h . a p s h p a l d i e n p e e n 8 d 8 e : n c y o n a n o n - e x i s t Here are my notes on how to resolve this error. ...

August 16, 2024 · 2 min · Nakamura

Handling Errors When Updating Omeka S from v4.0.4 to v4.1

Overview During the Omeka S update process, the following error occurred. Fatal error: Uncaught ArgumentCountError: Too few arguments to function Omeka\View\Renderer\ApiJsonRenderer::__construct(), 0 passed This is a personal note on how to address this error. Solution The solution was found at the following link. https://forum.omeka.org/t/upgrade-from-4-0-4-to-4-1-failed/22281 Specifically, uninstalling the Next module resolved the above issue. Summary I hope this serves as a useful reference for those encountering the same issue.

August 1, 2024 · 1 min · Nakamura

Exporting Only Specific Items and Selected Fields Using Omeka S BulkExport

Overview This article introduces how to export only specific items with selected fields using Omeka S BulkExport. Here, we will limit the export to items that have “Table Of Contents (dcterms:tableOfContents)” and export only “Title (dcterms:title)” and “Identifier (dcterms:identifier)”. Related The following article explains the overview of the Omeka S BulkExport module. This time, I will explain based on a specific use case. Method Navigate to the following path. ...

July 31, 2024 · 1 min · Nakamura

Bug in Omeka S IIIF Server Module [3.6.19, 3.6.20]

Overview A bug has been confirmed in versions 3.6.19 and 3.6.20 of the Omeka S IIIF Server module where URIs are malformed. Specifically, the FQDN becomes incorrect, like the following. https://xxx.yyy.zzz.jp//aaa.bbb.ccc.jp/iiif/3/1234/manifest Workaround As of the time of writing this article, version 3.6.21 has not been released, so I recommend using version 3.6.18 or earlier of the module. Summary I hope this serves as a useful reference.

July 19, 2024 · 1 min · Nakamura

A Library for Creating RDF Files from VSDX Files

Overview This is a memo about a library I created for generating RDF files from VSDX files. https://github.com/nakamura196/vsdx-rdf Background I have been exploring methods for creating RDF data using Microsoft Visio in articles like the following. This article corresponds to the note in the above article that said “This library will be introduced in a separate article.” Usage Please refer to the following. https://nakamura196.github.io/vsdx-rdf/ Google Colab A notebook is available for trying out this library. ...

July 18, 2024 · 1 min · Nakamura

Fetching All Records from an OAI-PMH Repository Using Python

Here is a script for fetching all records from an OAI-PMH repository using Python. I hope it serves as a useful reference. i f i # b # p } r # r p p r d # w p p m r m a a e e r r o a h r r p o p D s I r s P q e i o t F i i i o m o e e n a p r p n t a e l n n r r f _ i m ' ' o e = a t t e # f # t i p } r r t t t r t i u t s v m s n p r ( = = c o o f a e o ( ( e n r i e e e s a R e " h T P r G k r s o " l r q x e l a = r t t e r e d S E [ r r e e t a p t A e e u m l b a ' e q _ e T ] a u o r i p # d t n o b m ' o l n q e l t = { ' d : = u r n . l e c e d r a _ k r s v r n = l ( u s . h O : a t e e d f l : e c e i O t r e e e e e s d e t e e ' A t ' r h s q i r s o n n t a e l n a = r s e E r a s s t h I ' a 9 e e t n o d s r t t h . s e _ k b u T e t t r e t - L P 7 q ( = g m a d i ( e a u m e { ' m = . c a s i e n t P i r 5 u i ' s t r f f r p m e l : p f o ) m e d p M s e 9 e n G r r t a e i i ' p p n e # t r r r ) p . p s H t f 0 s i E e e r c n e R d e t t m ' i e o d o E o : R i ' t t T q q i o r e a n i e E L o q m s r l i / r e x s i ' . u n r r c t d o = n n i n u s t e n / e c ' . a , p e g d o = o a ( n t d s T e t h m t c q o : g l r s ( s o r r T r t o s r a R e u u r e b e t r t r d c e o o i l R k t i v e n r e d ' t r a p e . e a c k o s o e e s n e q t a s s c ( e s a t s f c I n o e t o c n . g u T t t ' u b q e r o p i o D r n . N p o ' g ( b e r i , r a u _ e : o n r : b d f o r : e r e s e o a s e u ( " n d d e ) a i n i d t e e t e n t e s r ) , s a . { n n e f s t ( s n . i _ t l e l f i p d d ' o b p a l o u , p . l i d r ( o n , k a o f s i n r p r c ( n e o e ' r o e s n e b ' l a e o ' d n c x . n e s t E r , , r p n . ( t e e / n t _ _ e c T a a a t / ' i s c / o o e u . h r p m r e . f s u { t k l r c e y a s e n { / i e t h e e l o d . r = d t h / e d e t t n m , n . t a p _ ) t { r t o e t " . m a r t h } h n p k n p e ) u s r e p t ' e e : e t a n - = a q : t ) r x / n . r t t p m . / p e t / _ t a ) o a s u / : w e e m k r ) r w / a r w l x s y a l w / s e w e t = o m ) w w q . m p . s . w w u o e a a ) o w e e p n r c # p . l s e t a . e o l t n . m j O n p a t s p u a e r e ) / t r n c x o p c a h t a u h r i : i t i c v ' v h e t e i s h s v . e . e o o s r U r . g R g / L r O O g A A / I I O / / A 2 2 I . . / 0 0 2 / / . } } 0 r r / e e } s c i u o d m r e p d n t ' t i ) i o : f n i T e o r k ' e ) n . ' t ) e x t

July 14, 2024 · 6 min · Nakamura

Trying the Mirador 3 Annotations Plugin with an IIIF Manifest Specified via URL Parameters

Overview I prepared a demo page where you can try the Mirador 3 annotations plugin with an IIIF manifest specified via URL parameters. https://mirador-annotations.vercel.app/ By using the iiif-content or manifest parameter, you can target a specified IIIF manifest. https://mirador-annotations.vercel.app/?iiif-content=https://dl.ndl.go.jp/api/iiif/1301543/manifest.json This article is a memo about creating this demo page. Background There is an annotation plugin for Mirador 3 called mirador-annotations. https://github.com/ProjectMirador/mirador-annotations I introduced usage examples in the following article. A demo page is already available at the following link, but it does not provide the ability to specify an IIIF manifest file via URL parameters. ...

July 7, 2024 · 3 min · Nakamura

Delivering IIIF Images Using mdx.jp Object Storage and Cantaloupe Image Server

Overview This is a personal note on how to deliver IIIF images using mdx.jp object storage and Cantaloupe Image Server, one of the IIIF image servers. Background In the following article, I introduced how to deliver images using mdx.jp object storage. In the following article, I introduced how to deliver images stored in Amazon S3 using Cantaloupe Image Server. By combining these approaches, we aim to address the cost challenges of IIIF image delivery in digital archives. ...

July 7, 2024 · 3 min · Nakamura

Using mdx Object Storage (Using Cyberduck)

Overview I had the opportunity to use mdx’s object storage, so this is a memo. https://mdx.jp/ Pricing The pricing for fiscal year 2024 is as follows. https://mdx.jp/guide/charge It costs 0.01 points (yen) per GB per day, which is approximately 0.3 yen per GB per month. Application Method & Usage with s3cmd The following official tutorial video was helpful. https://www.youtube.com/watch?v=IN_4NS9hO2Y Using Cyberduck The video above introduces file operations using command-line tools. ...

July 6, 2024 · 2 min · Nakamura

Reverse Proxy Settings for Drupal Running with Docker + Traefik

Overview I was running Drupal with HTTPS using Docker + Traefik, as introduced in the following article. At the time, with Drupal’s default settings, URLs were set with http as shown below. The problem with this was that, for example, when setting up Google account login as described in the following article, the redirect URL started with http, while the Google Cloud console requires URLs starting with https. This discrepancy caused authentication to fail in some cases. ...

July 4, 2024 · 3 min · Nakamura

Survey of IIIF-Compatible Viewers

Overview I conducted a survey of IIIF-compatible viewers and would like to share the results. There may be some gaps, but I hope it serves as a useful reference. Name URL Icon Mirador https://projectmirador.org/embed/?iiif-content= mirador3.svg Universal Viewer https://uv-v3.netlify.app/#?manifest= uv.jpg Annona https://ncsu-libraries.github.io/annona/tools/#/display?url= annoa.png Clover https://samvera-labs.github.io/clover-iiif/docs/viewer/demo?iiif-content= clover.png Glycerine Viewer https://demo.viewer.glycerine.io/viewer?iiif-content= glycerine.jpg IIIF Curation Viewer http://codh.rois.ac.jp/software/iiif-curation-viewer/demo/?manifest= icp-logo.svg Image Annotator https://www.kanzaki.com/works/2016/pub/image-annotator?u= ia-logo.png TIFY https://tify.rocks/?manifest= tify-logo.svg References The following IIIF 3.0 Viewer Matrix was particularly helpful. ...

July 4, 2024 · 1 min · Nakamura

Commands for Batch Replacing IIIF Canvas URIs

There are cases where you want to batch replace Canvas URIs across multiple IIIF manifest files. For example, the command to replace www.dl.ndl.go.jp with dl.ndl.go.jp in JSON files under the current directory is as follows. The -i '' option is specific to macOS syntax. f i n d . - t y p e f - n a m e " * . j s o n " - e x e c s e d - i ' s / w w w \ . d l \ . n d l \ . g o \ . j p / d l \ . n d l \ . g o \ . j p / g ' { } + Note: This script directly modifies files. Before using it on important data, I recommend taking precautions such as creating backups. Additionally, please be careful about the types of files you apply this to, as performing text replacement on binary files (such as images or executables) may corrupt them. ...

July 2, 2024 · 1 min · Nakamura

Configuration Example for Using BulkImport in Omeka S

Overview When performing bulk data registration using Omeka S’s BulkImport, you can configure various settings for the registration method. While these settings can be configured each time you upload, using pre-registered settings can help reduce errors made by operators. Here, I introduce a configuration example for bulk registration when associating IIIF images with already registered items. Item Example Create an item with sample as the dcterms:identifier as shown below: ...

July 2, 2024 · 2 min · Nakamura

Bug in the BulkImport Module for Omeka S

Overview When using the BulkImport module with the combination of PHP 8.1.29 and Omeka S version 4.0.4, the following error occurred. F S # a t 0 t a a c / l k h o e t m r r e r a / o c x r e x : : x / U w n w c w a / u o g m h e t k a T - y … p e E r r o r : m b _ s u b s t r ( ) : A r g u m e n t # 1 ( $ s t r i n g ) m u s t b e o f t y p e s t r i n g , n u l l g i v e n i n / h o m e / x x x / w w w / o m e k a - s / m o d u l e s / B u l k I m p o r t / s r c / P r o c e s s o r / R e s o u r c e P r o c e s s o r . p h p : 1 0 7 9 I have not been able to identify the root cause at this point, but I will describe the workaround. ...

July 2, 2024 · 2 min · Nakamura

Service with name "Omeka\Acl" could not be created

Overview When installing the CleanUrl module on Omeka S 4.1.x, the following error occurred. L S a e m r i v n i a c s e \ S w e i r t v h i c n e a M m a e n a " g O e m r e \ k E a x \ c A e c p l t " i o c n o \ u S l e d r v n i o c t e N b o e t C c r r e e a a t t e e d d E . x c R e e p a t s i o o n n : R e s o u r c e i d ' O m e k a \ C o n t r o l l e r \ S i t e \ P a g e ' a l r e a d y e x i s t s i n t h e A C L This issue had also been reported in the following forum. ...

July 1, 2024 · 1 min · Nakamura

'session.name' is not a valid sessions-related ini setting

Overview The following error occurred during Omeka S operation. ' s e s s i o n . n a m e ' i s n o t a v a l i d s e s s i o n s - r e l a t e d i n i s e t t i n g This same issue was reported in the following forum. ...

July 1, 2024 · 1 min · Nakamura

LEAF Writer: How to Add Sample Data

Overview This is a record of investigating how to customize LEAF Writer. https://gitlab.com/calincs/cwrc/leaf-writer/leaf-writer This time, it is a memo on how to add sample data. We add custom sample data as shown below. Method Please refer to the following. https://gitlab.com/nakamura196/leaf-writer/-/commit/c4e98090c94874037980819c9672eea10814eedb In addition to updating samples.json, it was also necessary to update apps/commons/src/icons/index.tsx to add an icon, although this is not mandatory. Result As shown below, the editor environment could be opened from the sample data. ...

June 29, 2024 · 1 min · Nakamura

LEAF Writer: How to Use the Image Viewer

Overview LEAF Writer provides a feature for displaying text and images side by side, as shown below. It also offers a feature where the text moves in sync when you navigate through image pages. This article introduces TEI/XML markup examples for displaying images in the Image Viewer section. Method Specify the pb tag as follows. https://github.com/kouigenjimonogatari/kouigenjimonogatari.github.io/blob/master/xml/lw/01.xml Specifically, it looks like this: < p b c o r r e s p = " # z o n e _ 0 0 0 5 " f a c s = " h t t p s : / / d l . n d l . g o . j p / a p i / i i i f / 3 4 3 7 6 8 6 / R 0 0 0 0 0 2 2 / 0 , 0 , 3 4 4 5 , 4 7 0 6 / f u l l / 0 / d e f a u l t . j p g " n = " 5 " / > The image specified in the facs attribute of the pb element appears to be displayed in the Image Viewer section. ...

June 29, 2024 · 2 min · Nakamura