Allow for non-numeric nomisma IDs

This commit is contained in:
Joshua Ramon Enslin 2023-07-19 15:59:13 +02:00
parent d47490f217
commit f73c729dff
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -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,