Split linkable noda repositories for IKMK / NDP for actors and places

This commit is contained in:
Joshua Ramon Enslin 2023-07-16 11:45:05 +02:00
parent 1de413b3fb
commit 06cc1d4c10
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE
2 changed files with 7 additions and 1 deletions

View File

@ -23,7 +23,7 @@ final class MDNodaRepositoriesSet extends MDValueSet {
'MBL',
'NDB/ADB',
'ndl',
'ndp-ikmk',
'ndp-ikmk-persons',
'nomisma',
'npg',
'orcid',

View File

@ -29,6 +29,7 @@ enum MDNodaRepository implements MDValueEnumInterface, JsonSerializable {
case ndb_adb;
case ndl;
case ndp_ikmk;
case ndp_ikmk_persons;
case nomisma;
case npg;
case oberbegriffsdatei;
@ -72,6 +73,7 @@ enum MDNodaRepository implements MDValueEnumInterface, JsonSerializable {
'NDB/ADB' => self::ndb_adb,
'ndl' => self::ndl,
'ndp-ikmk' => self::ndp_ikmk,
'ndp-ikmk-persons' => self::ndp_ikmk_persons,
'nomisma' => self::nomisma,
'npg' => self::npg,
'oberbegriffsdatei' => self::oberbegriffsdatei,
@ -115,6 +117,7 @@ enum MDNodaRepository implements MDValueEnumInterface, JsonSerializable {
self::ndb_adb => 'NDB/ADB',
self::ndl => 'ndl',
self::ndp_ikmk => 'ndp-ikmk',
self::ndp_ikmk_persons => 'ndp-ikmk-persons',
self::nomisma => 'nomisma',
self::npg => 'npg',
self::oberbegriffsdatei => 'oberbegriffsdatei',
@ -159,6 +162,7 @@ enum MDNodaRepository implements MDValueEnumInterface, JsonSerializable {
self::ndb_adb => 'https://www.deutsche-biographie.de/pnd' . $id . '.html',
self::ndl => 'https://id.ndl.go.jp/auth/ndlna/' . $id,
self::ndp_ikmk => 'https://ikmk.smb.museum/ndp/land/' . $id,
self::ndp_ikmk_persons => 'https://ikmk.smb.museum/ndp/person/' . $id,
self::nomisma => 'http://nomisma.org/id/' . $id,
self::npg => 'https://www.npg.org.uk/collections/search/person/' . $id,
self::oberbegriffsdatei => 'https://term.museum-digital.de/oberbegriffsdatei/tag/' . $id,
@ -203,6 +207,7 @@ enum MDNodaRepository implements MDValueEnumInterface, JsonSerializable {
self::ndb_adb => 'https://www.deutsche-biographie.de/search?name=' . urlencode($searchTerm),
self::ndl => 'https://id.ndl.go.jp/auth/ndlna/' . urlencode($searchTerm),
self::ndp_ikmk => 'https://ikmk.smb.museum/ndp/list?lang=de&q=' . urlencode($searchTerm),
self::ndp_ikmk_persons => 'https://ikmk.smb.museum/ndp/list?lang=de&q=' . urlencode($searchTerm),
self::nomisma => 'http://nomisma.org/browse?q=' . urlencode($searchTerm),
self::npg => 'https://www.npg.org.uk/collections/search/person/' . urlencode($searchTerm),
self::oberbegriffsdatei => 'https://term.museum-digital.de/redir.php?search=' . urlencode($searchTerm) . '&kind=tag|oberbegriffsdatei',
@ -393,6 +398,7 @@ enum MDNodaRepository implements MDValueEnumInterface, JsonSerializable {
self::ndb_adb => self::validateGndId($id, ['https://www.deutsche-biographie.de/pnd', '.html']),
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::npg => self::validateNumericId($id, ['https://www.npg.org.uk/collections/search/person/']),
self::oberbegriffsdatei => self::validateNumericId($id, ['https://term.museum-digital.de/oberbegriffsdatei/tag/']),