Trying the Model Viewer Module for Omeka S

Overview Model Viewer is a module for Omeka S that integrates three.js, a viewer for 3D models. https://github.com/Daniel-KM/Omeka-S-module-ModelViewer This article explains how to use this module. References The following article introduces how to publish 3D models using IIIF. Please refer to it as well. Installation The installation process is the same as for other standard modules. Usage On the media detail page, the 3D viewer is displayed as shown below. ...

October 18, 2024 · 1 min · Nakamura

Addressing the resumptionToken Bug in Omeka S OAI-PMH Repository

Overview I encountered an issue where the Omeka S OAI-PMH repository’s resumptionToken was outputting a [badResumptionToken] error even though the token was still within its expiration period. Here are my notes on how to address this bug. Solution By adding a comparison between $currentTime and $expirationTime to the following file, tokens within their expiration period are now properly retained. p { r i v a $ $ ] f } t a e ) o e p x - r i p > e f i ' g a $ $ i } u = r e e c c e f n e x t h u x / c $ d p C r p ( / t t T i o ( r i ! $ i h o r n $ e r $ a A o i k e t e n a e p d n s e d e x t t x i d - n ' n p T i p - e r > s t i i o i > d e s = ( r m n r d s e = > ) e e T e e u r ; d i d l m v $ t T = m T e e i a r o e o t L c p u k n k e i e i e e e = e ( s L - , n w n ' t o > s $ o R c s \ e a e a e a D x i s t a s a p p p o r t i $ m o r c $ e r c h n - h e T e u _ s > ( x i d r r e g ' p m T r e ( e o i e o e p $ t a r ( k n o t ( i e ) e t s o ' p d ; n T i k C m T - i t e o h o > m o n n _ k e e r ) t r e x y : r e n A p > _ o p ) d i t l o d r $ o o l s { e a e k i e i d t x e d r t i p n P o o i s l r n r ' u y ( a , g _ ) t i t ; i $ n o e M k n x a e T p n n i i a s A m r g ' d e e e , d ) d r e T ' [ d { o ) k - / e > / n g - e A > t d i ( d d ' e ( a d ) p ) i ; ' ) ; There were cases where things worked without this fix, so there may be differences depending on the PHP version, etc. ...

October 10, 2024 · 7 min · Nakamura

(Non-Standard) Outputting Delete Records with the Omeka S OAI-PMH Repository Module

Overview I tried outputting Delete records with the Omeka S OAI-PMH Repository module, so this is a personal note for future reference. Background By using the following module, you can build OAI-PMH repository functionality. https://omeka.org/s/modules/OaiPmhRepository/ However, as far as I could confirm, there did not appear to be a feature for outputting Delete records. Related Module Omeka’s standard features do not seem to include functionality for storing deleted resources. On the other hand, the following module adds functionality to retain deleted resources. ...

October 10, 2024 · 20 min · Nakamura

A Program to Create a Visual Overview Page of Omeka S Themes

Overview In the following article, I introduced a page for visually reviewing Omeka S themes. The program used to create the above page has been published in the following repository. https://github.com/nakamura196/OmekaS Summary We hope this is helpful for similar work.

October 5, 2024 · 1 min · Nakamura

Publishing 3D Models in Omeka S

Overview I looked into how to publish 3D models in Omeka S, so here are my notes. As a result, I was able to handle 3D models in Omeka S as shown below. https://omeka.aws.ldas.jp/s/sample/item/43 Versions The versions of Omeka S and modules used are as follows. Omeka S 4.1.1 Common 3.4.62 IIIF Server 3.6.21 Universal Viewer 3.6.9 Module Installation Install the Common, IIIF Server, and Universal Viewer modules. Module Configuration Configure two settings for the IIIF Server module. ...

October 4, 2024 · 8 min · Nakamura

Handling the CSRF: Value is required and can't be empty Error in Omeka S

Overview In Omeka S, I encountered an issue where the error message “CSRF: Value is required and can’t be empty” was displayed when trying to save an item associated with many media, and saving would not complete. This article explains how to address this error. Related Articles This is mentioned in articles such as the following. It appears to be a known error, and it is stated that php.ini needs to be modified. ...

October 2, 2024 · 2 min · Nakamura

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

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

Updating Omeka S

Overview This is a personal note on updating Omeka S. Please also refer to the following official documentation. https://omeka.org/s/docs/user-manual/install/#updating Preparation: Backup Before performing update operations, be sure to create backups of the database and all files in case of unforeseen circumstances. 1. Database Backup Create a database dump file using the mysqldump command or similar. # m y m s y q s l q d l u d m u p m p - u - u d b [ _ D u B s e u r s e - r p n a o m m e e ] k a - _ p s _ [ d D b B > n a o m m e e ] k a > _ s [ _ o b u a t c p k u u t p . f s i q l l e n a m e ] 2. File Backup Back up (duplicate) the entire Omeka S installation directory. ...

August 1, 2024 · 13 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

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

Retrieving the URL of Site Pages Where Items Are Published in the Omeka S OaiPmh Repository Module

Overview This is a personal note on how to retrieve the URL of site pages where items are published in the Omeka S OaiPmh Repository module. Background The following article introduces how to create custom vocabularies using OaiPmhRepository. https://nakamura196.hatenablog.com/entry/2021/07/25/222651 Please refer to it as well. Retrieving the URL of Site Pages Where Items Are Published Before Fix In a certain customization case, the site page URL was retrieved as follows. This does not work properly when something other than dcterms:identifier is configured in the Clean URL module. Additionally, hardcoded paths like /s/db/record/ can be seen. ...

July 14, 2024 · 3 min · Nakamura

Large Videos Not Playing in Chrome

Overview I encountered an issue where large videos could not be played in Chrome. However, they could be played in Safari. When I checked with the developer tools, the download was being cancelled. The viewer part looks like this: < v s i v d u i e r d o c e e o c > o s n r t c r = o " l h s t = t " p c s o : n / t / r o o m l e s k " a . p a r w e s l . o l a d d a = s " . n j o p n / e f " i l s e t s y / l o e r = i " g w i i n d a t l h / : c 4 6 8 2 6 0 f p e x 4 ; a e h 8 e d i 9 g 2 h 6 t 0 : 3 4 4 6 6 7 5 8 p f x a ; 1 " 1 b w 0 i d d 6 t b h 2 = f " d 1 5 0 5 0 b % 0 " e 6 h 9 e 5 i . g m h p t 4 = " " 1 t 0 y 0 p % e " = > " v i d e o / q u i c k t i m e " t i t l e = " u n d e f i n e d " > This HTML was generated by the combination of Omeka S + IIIF Server introduced in the following article. ...

July 4, 2024 · 3 min · Nakamura

Difference Between production and development in Omeka S SetEnv APPLICATION_ENV

The steps to enable detailed error display in Omeka S are as follows. By making this setting, specific error messages and details will be displayed on the “Omeka S has encountered an error” page. Additionally, PHP-level errors and warnings will also be displayed on the page. This is intended to make it easier to identify and resolve issues during development, but for security reasons, it is recommended not to use this in production environments. ...

July 4, 2024 · 2 min · Nakamura

Fixing Issues with the Omeka S GoogleAnalytics Module

Overview In Omeka S, there is a module called Google Analytics for enabling Google Analytics. https://github.com/Libnamic/Omeka-S-GoogleAnalytics/ When enabling this module, there were cases where the following error message was displayed. Undefined index: additional_snippet in (...) /modules/GoogleAnalytics/Module.php on line 316 The following issue had also been raised regarding this. https://github.com/Libnamic/Omeka-S-GoogleAnalytics/issues/9 I will share the method for addressing this issue. Fix Method Make the following changes. https://github.com/Libnamic/Omeka-S-GoogleAnalytics/pull/10/commits/0123ce557d0f38834c5c37fa1ac9c986c87cbc90 Specifically, the changes are as follows. ...

July 3, 2024 · 7 min · Nakamura

Configuring CORS for Docker-based Omeka S

Overview When implementing CORS configuration for a Docker-based Omeka S as described in the following article, a server error occurred. This is a memo about that issue. Dockerfile The target is a Dockerfile like the following. F L R E R R # R R # A R & & & & C # C R & & & & & & V C R A U N U U U U R U & & & & O O U & & & & & & O M O B N V N N P N N D G N P C P N L D M E H o u r r m Y o Y r l r l c f U L a D a a z l l l i u w P d d w v w n m m v n m m n m n h i M [ p 2 E p p l i i i m n g o o n e g z f k o n E " h m e B t t i b b b a z e e c c l r e i - i / d - - - w d a p a n I - - b p j f g i t x k k o s t p v r v . g d i v s R s n p : i m A g g 1 n p r e p t e e a i a f a h u a r a f v a a n o N e e g g e e m e r r d o h - r r t r t r - v a c p t d _ t t - - g e a \ n - - n t q / / a e a - v v R a r h a a F d d - t g s p p O = t w w c b p w a v a r / e c i r R - i e e d y i i h h m 4 p w a w c a w r a r w / w 2 h n e O q n v v e p c o p p e . s v w r w e o s w r w w w - e e w N q s v e k n - - k 1 : a / / s l e v w w w w w f r r T t 6 s e e a . / r w o s u . a h w w w - w / o = i E u a - \ x x - 1 / m w m m i r t w w w d / h r " t N p l d t t s g w e w e e n / m / w a h t e S e D d l e - - i w k / k v s i w l h h t t m g a a v i c t w a h a a w / t h t a m l r t n t - n o h / - t - r a w c m t m : l / o o o e y s n u o s m s / n v / o l m l w / v u r n t f b m - l w d a h n / l w v o n u i & \ a i . e $ w r t f v w o l d n & l g c k { w p / m i f o - l u " N t l u o a v v / e w l g l i l d u m ] a e a r m - e a h r w / / u l u a m e k r p - e / s r r t m w d m e m t e / a a t j o - s / m i / o a e s e a / m c - $ g m $ i w l s h l t / / / u t g ( d e { o w / s t u a c f - r i e n k v n w . i m m b o i v t a v t p a e } / h o l e a n l a y e r - / r . h t n / / s f e r p < - o w o s z t a s f e i s e n q c i m i i m c o i . g w a q ) t e o p l c l l i / w f . h k n / e u e n d w k - i - a } \ s m s i a v / - a y c j - . s e t a h e m o p s z \ a r t x u u n e / i c b / m e r p v g r p o a w l c a g = e n s w / . r p / l - f e w c 1 a d u e d i . h 2 d o s a g i h m 6 e r s / n t o 3 p / e v i m d @ d i s a l g o n / r / 6 m _ c d v f 0 a m l w a i 0 i y u w w r l l s d n w / e { . q e l w s } c l / w o a w \ \ m m d / ; > y - / h " s w v t q i $ m l t { l i h v / - e c g f r o d r s n e i f e o i t n g y } / p / d e o a = m t / e a u k b s a a r - s / s e i - . n $ i c { n l v i u e d r \ e s / i o n } . z i p - O v a r / w w w / o m e k a - s - $ { v e r s i o n } . z i p \ Cause and Solution The following line needed to be added. ...

July 2, 2024 · 6 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

CORS Error with Omeka S IIIF Server Module

Overview When distributing IIIF manifests using the Omeka S IIIF Server module, the following CORS error occurred in external viewers. A c c e s s t o f e t c h a t ' h t t p s : / / x x x / i i i f / 2 / 0 9 f d 2 9 d 5 - 8 4 9 7 - 4 d e f - a 6 4 d - c a 1 0 4 2 8 4 f 9 0 d / m a n i f e s t ' f r o m o r i g i n ' h t t p s : / / u n i v e r s a l v i e w e r . i o ' h a s b e e n b l o c k e d b y C O R S p o l i c y : N o ' A c c e s s - C o n t r o l - A l l o w - O r i g i n ' h e a d e r i s p r e s e n t o n t h e r e q u e s t e d r e s o u r c e . I f a n o p a q u e r e s p o n s e s e r v e s y o u r n e e d s , s e t t h e r e q u e s t ' s m o d e t o ' n o - c o r s ' t o f e t c h t h e r e s o u r c e w i t h C O R S d i s a b l e d . ...

July 2, 2024 · 3 min · Nakamura