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. ...