Limiting Filter Properties in Omeka S Advanced Search

Overview On the advanced search screen for each site built with Omeka S, users can select a property and search for specific values. With the default settings, all properties registered in Omeka S are displayed, which can make it difficult to use. This article introduces how to limit the properties shown as selectable options, as shown below: This article targets Omeka S version 4.0.4. Documentation The relevant documentation can be found here: ...

February 17, 2024 · 1 min · Nakamura

Omeka S Bulk Import Module: Usage Guide (February 2024 Edition)

Overview Bulk Import is a module for batch registration of items and media in Omeka S. https://github.com/Daniel-KM/Omeka-S-module-BulkImport It has been continuously updated and has become quite convenient, so this is a memo. Installation It can be installed in the usual way. However, the Log module must be installed beforehand. https://github.com/Daniel-KM/Omeka-S-module-Log Usage Here, I will introduce an example of registration using a CSV file. Configuration First, access the following and click the edit icon. ...

February 7, 2024 · 3 min · Nakamura

Created a Simple TEI/XML File Viewer Using Next.js

Overview I created a simple viewer that displays the contents of TEI/XML files. https://github.com/utda/tei-viewer Here is a display example targeting TEI/XML of the Koui Genji Monogatari: https://utda.github.io/tei-viewer/?u=https://kouigenjimonogatari.github.io/tei/01.xml&v=true Usage As a minimum feature, when a IIIF manifest file is associated, the Mirador viewer is displayed. The association method is based on the following format: https://github.com/TEI-EAJ/jp_guidelines/wiki/IIIF画像とのリンク Additionally, when the n attribute is given to the pb tag, a page number display feature is provided. Furthermore, for Japanese language support, when v=true is given as a query parameter, vertical text is displayed. ...

February 5, 2024 · 2 min · Nakamura

Configuring Amazon S3 as a Processing Source and AIP Storage Destination in Archivematica

Overview This is a memo on how to configure Amazon S3 files and folders as processing targets in Archivematica, and save the resulting AIPs to S3. Using S3 as storage is expected to facilitate integration with other systems and expand options for long-term AIP preservation. The following article from Wellcome Collection was helpful. https://docs.wellcomecollection.org/archivematica/administering-archivematica/bootstrapping Amazon S3 Configuration Create a bucket. This time, I created a bucket named archivematica.aws.ldas.jp in the us-east-1 region. ...

February 3, 2024 · 3 min · Nakamura

An Example of Specifying Image Frames in Universal Viewer

In recent years, it has become common for museums, libraries, and archives to publish images using the International Image Interoperability Framework (IIIF), an international framework for image sharing. https://iiif.io/ For publishing IIIF images, viewers such as Mirador and Universal Viewer are used. https://projectmirador.org/ https://universalviewer.io/ In digital archive systems that adopt the latter Universal Viewer, you can often obtain a URL specifying a particular frame by appending “#?cv={image frame index}”. Note that the index starts from 0, so to specify the 2nd frame, you would use 1. ...

February 2, 2024 · 1 min · Nakamura

Trying the Docker Version of Cantaloupe

Overview While trying the Docker version of TEI Publisher, I found that a Docker version of Cantaloupe was being used, so I created a repository for using it standalone. https://github.com/nakamura196/docker_cantaloupe Usage instructions are provided in the README of the above repository. The following Docker image is used. https://hub.docker.com/r/islandora/cantaloupe Reference: Images That Can Be Served by Cantaloupe This is explained on the following page. https://cantaloupe-project.github.io/manual/5.0/images.html For high-resolution images, JPEG2000 or Pyramidal Tiled TIFF is recommended. ...

January 25, 2024 · 1 min · Nakamura

Drupal: Registering Files from URLs Using the Feeds Module

Overview This describes how to register files from URLs using the Feeds module. The following was helpful. https://www.drupal.org/docs/contributed-modules/feeds/feeds-howtos/importing-files Method Find the file field from the dropdown list and create a mapping target for the file or image field. For “File ID,” specify a mapping to the full URL (including the http/https prefix). Select “File ID” under “Reference by.” Configure the action so that the feed processes existing files. After configuring these changes, save the mapping. ...

January 23, 2024 · 1 min · Nakamura

How to Bulk Delete Files in Drupal

This is a memo on how to bulk delete files in Drupal. The following was helpful. https://www.drush.org/12.x/commands/entity_delete/ d r u s h e n t i t y : d e l e t e f i l e I hope this serves as a useful reference for situations such as when files can no longer be viewed due to errors like Drupal\Core\File\Exception\InvalidStreamWrapperException. ...

January 23, 2024 · 1 min · Nakamura

Handling Private Files in Omeka S

Overview In Omeka S, you can set public/private settings for each resource (item sets, items, media, etc.), but for files such as images associated with media, even if the private setting is applied, anyone who knows the file URL can access it. Typically, the URL follows this pattern: <Omeka installation directory>/files/original/<hash value>.jpg If the private setting is applied to the media, it would be rare for this file URL to be known, but there are cases where you want to avoid a situation where “anyone with the link” can access it. ...

January 14, 2024 · 4 min · Nakamura

Sending Emails via Amazon SES from Omeka S on Amazon Lightsail

Overview To send emails from Omeka S running on Amazon Lightsail, it appears that email sending configuration is required. This article introduces how to use Amazon SES. https://aws.amazon.com/jp/ses/ The following forum discussion was helpful. https://forum.omeka.org/t/configuring-sendmail-or-smtp-for-omeka-s-on-amazon-lightsail/19335/1 Amazon SES Configuration Configure Amazon SES by referring to the following site. https://qiita.com/Shun_konno/items/f51ae599b68e0d2d36ea Omeka S Configuration Edit the Omeka S local.config.php file as follows. < r ] ? e ; p t h u p r ' ] ' ] n l , m , o a ' [ g i u O g l ' s ] t e ' t e , h r r _ e ' L = a c r o > n ' o ] = g s t o m , s > [ p y p p e s o p t l t [ e r e i ' ' ' ' ' e ] t t t ' o n h p c c t , i t ' n a o o o o e n i = s m s r n n _ g n = > ' e t t n n ' ' ' q s g > ' ' ' e e u p s u . s ' = c c s a s i . [ s > = = = t t e s l t . ( m > > > i i r s ' ' a t [ o o n w s p ' ' 5 n n a o = ' s e 8 _ _ m r > n , e m 7 c c e d e s a , l o ' ' t e - i a n r d s l s f = = = u e m - s i > > > e d U t s ' g , ) s p m ' ' ' ' e - t y y t u p = = o o l S s . > > u u s M e u r r ' T r s ' [ - - , P ' - p s s , e l e e a a s s s i - - t n s s - ' m m 1 , t t . p p a - - m u p a s a z e s o r s n n w A a a o n w m r y s e d . ' ' n c , , a o m m e ' , S S S P A E E S o u S S L S r t E t h S S t S e M M y s n T T p S u t P P e M p i T p c u p P o a s a ' r t e s t s t i r s l e e o n w s r d n a o ' v m r e b t e d r r y y e p c e S e o n E m d S m p e o ( n i e d n . e t g d . ) , 5 8 7 ) For host, specify the Amazon SES SMTP server endpoint corresponding to the AWS region you are using. The example uses the us-east-1 region endpoint, but change it as needed. For username and password, use the SMTP credentials generated in Amazon SES. Summary We hope this is helpful when using Omeka S with Amazon Lightsail. ...

January 13, 2024 · 3 min · Nakamura

Created a Page to Visually Browse Omeka S Themes

Overview I created a page for visually browsing Omeka S themes. https://satoru196.notion.site/satoru196/6f898ed1352e4c9fa013eee635cbabf4?v=02cab757b6cf4df6bfbedfeb85eca0a5 The following site is convenient for searching Omeka S themes: https://daniel-km.github.io/UpgradeToOmekaS/omeka_s_themes.html However, I thought it would be even more convenient to be able to see the appearance of themes and their star counts in a list view. Using the source data from the site above, I created this new page: https://github.com/Daniel-KM/UpgradeToOmekaS/blob/master/_data/omeka_s_themes.csv How It Was Created GitHub I used the GitHub API to retrieve the last update date and star count for each repository. To use the GitHub API, I created a Personal Access Token (PAT): ...

January 10, 2024 · 4 min · Nakamura

Trying the Drupal Social Auth GitHub Module

Overview I will try the Drupal Social Auth GitHub module. https://www.drupal.org/project/social_auth_github/ This module is described as follows: Social Auth GitHub allows users to register and login to your Drupal site with their GitHub account. The goal is to enable login using a GitHub account as shown below. Installation c v o e m n p d o o s r e / r b . i p n h / a d r r u r s e h q u e i n r e s o ' c d i r a u l p _ a a l u / t s h o _ c g i i a t l h _ u a b u t h _ g i t h u b : ^ 4 . 0 ' The above installation also enables social_auth and social_api. ...

January 2, 2024 · 2 min · Nakamura

Investigation of the Drupal REST & JSON API Authentication Module

Overview I will try JWT authentication, referencing the following article. https://www.drupal.org/docs/contributed-modules/api-authentication/jwt-authentication However, after trying it, it appeared that a paid plan subscription was required to use JWT authentication, and the investigation stopped there. Prerequisite: Download and Installation Install and enable the following two modules. https://www.drupal.org/project/rest_api_authentication https://www.drupal.org/project/restui c c v o o e m m n p p d o o o s s r e e / r r b . . i p p n h h / a a d r r r u r r s e e h q q u u e i i n r r e e r e ' ' s d d t r r _ u u a p p p a a i l l _ / / a r r u e e t s s h t t e _ u n a i t p : i i ^ c _ 1 a a . t u 2 i t 1 o h ' n e n t i c a t i o n : ^ 2 . 0 ' Steps to Configure JWT-Based API Authentication Follow the instructions below to enable the API and set up JWT-based API authentication. ...

December 31, 2023 · 2 min · Nakamura

Drupal Module Development: Searching with Variant Characters in Mind

Overview While developing a system using Drupal, I needed to implement search functionality that considers variant characters (itaiji), so I created a custom module to achieve this. (There may already be an existing module that does the same thing, but I was unable to find one.) It is published in the following repository: https://github.com/nakamura196/Drupal-module-itaiji Usage Configuration Access /admin/config and click the Itaiji link under the Search and metadata section. ...

December 21, 2023 · 1 min · Nakamura

Pagination Error When Using JSON:API Search API in Drupal

When using the JSON:API Search API in Drupal, an error occurred when adding query parameters such as page[limit]. https://www.drupal.org/project/jsonapi_search_api Specifically, the following error message was displayed. Input value “page” contains a non-scalar value. Upon investigation, this was also mentioned in the following issue. https://www.drupal.org/project/jsonapi_search_api/issues/3403107 Since it was fixed in the development version 8.x-1.x-dev, I replaced it with the following. https://www.drupal.org/project/jsonapi_search_api/releases/8.x-1.x-dev As a result, the error was resolved. Whether to use the development version of the module requires consideration, but I hope this is helpful for those experiencing the same issue. ...

December 16, 2023 · 1 min · Nakamura

Georeferencing with Allmaps

Overview This time, we try georeferencing using Allmaps. https://allmaps.org/ Allmaps is described as follows. Allmaps makes it easier and more inspiring to curate, georeference and explore collections of digitized maps. This time, we use the “Bird’s-eye View of the University of Tokyo Main Campus and Faculty of Agriculture Buildings” held by the University of Tokyo Library for Agriculture and Life Sciences. https://da.dl.itc.u-tokyo.ac.jp/portal/assets/187cc82d-11e6-9912-9dd4-b4cca9b10970 We create the following result. https://viewer.allmaps.org/?url=https%3A%2F%2Fannotations.allmaps.org%2Fimages%2F2e1d3f991aad6cb4 ...

December 7, 2023 · 22 min · Nakamura

Example of Creating a Page Using Universal Viewer v4

Overview I created a page where Universal Viewer is displayed across the entire page, as shown below, so this is a memo of the process. Universal Viewer v4 is used. https://nuxt3-demo-nine.vercel.app/uv/?manifest=https://dl.ndl.go.jp/api/iiif/3437686/manifest.json Source Code Please refer to the following source code. https://github.com/nakamura196/nuxt3-demo/blob/main/public/uv/index.html Referring to the following page: https://github.com/UniversalViewer/universalviewer/wiki/UV-Examples and the following sample, the viewer size is adjusted to change according to page resizing. https://codesandbox.io/s/uv-url-adapter-example-9d6x8 It also includes code to receive a manifest query parameter. ...

November 24, 2023 · 1 min · Nakamura

Drupal: Registering Multiple Values and Skip Processing Using the Feeds Tamper Module

Overview I attempted to register a CSV like the following using Drupal’s Feeds module. id title target xxx aaa 9600023 When you want to register multiple values in a single field like this, the Feeds Tamper module can be used. https://www.drupal.org/project/feeds_tamper The following article was helpful. https://acret.jp/drupal/articles/456 By configuring as follows, I was able to batch register multiple values. However, when the target column contains empty rows like the following, ...

November 13, 2023 · 2 min · Nakamura

Drupal: Displaying UUIDs

Overview This is a note on how to display UUIDs for content, as shown below. Module Installation The following module was used. https://www.drupal.org/project/uuid_extra Usage Select the “Manage display” tab for the content type where you want to display UUIDs, and move the UUID field as shown below. Summary I hope this serves as a useful reference.

November 13, 2023 · 1 min · Nakamura

Schemas Convertible from TEI ODD: RNG, XSD, DTD, and More

Overview In the following article, I tried creating an ODD. The above uses a tool called Roma, and you can see that the created ODD has the following output formats available. Specifically, the available formats are “RELAX NG Schema,” “RELAX NG Compact,” “W3C Schema,” “Document Type Definition,” and “ISO Schematron Constraints.” I asked GPT-4 about the differences between these formats and am sharing the results here. There may be some inaccuracies, but I hope this serves as a useful reference. ...

November 4, 2023 · 5 min · Nakamura