From f73c729dfffad4d547f2a7e51edc9a46e45e1a94 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Wed, 19 Jul 2023 15:59:13 +0200 Subject: [PATCH] Allow for non-numeric nomisma IDs --- src/enums/MDNodaRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/enums/MDNodaRepository.php b/src/enums/MDNodaRepository.php index 555fc56..2507cbc 100644 --- a/src/enums/MDNodaRepository.php +++ b/src/enums/MDNodaRepository.php @@ -414,7 +414,7 @@ enum MDNodaRepository implements MDValueEnumInterface, JsonSerializable { self::ndl => self::validateNumericId($id, ['https://id.ndl.go.jp/auth/ndlna/']), self::ndp_ikmk => self::validateNumericId($id, ['https://ikmk.smb.museum/ndp/land/']), self::ndp_ikmk_persons => self::validateNumericId($id, ['https://ikmk.smb.museum/ndp/person/']), - self::nomisma => self::validateNumericId($id, ['http://nomisma.org/id/']), + self::nomisma => str_replace('http://nomisma.org/id/', '', $id), self::npg => self::validateNumericId($id, ['https://www.npg.org.uk/collections/search/person/']), self::oberbegriffsdatei => self::validateNumericId($id, ['https://term.museum-digital.de/oberbegriffsdatei/tag/']), self::orcid => preg_match('/^[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{4}$/', $id) ? $id : false,