From d2dd24baeed545f07878486f9171681b59a2b87c Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Thu, 19 Oct 2023 16:11:37 +0200 Subject: [PATCH] Extend list of repository names accepted for referring to the different MDNodaRepository cases --- src/enums/MDNodaRepository.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/enums/MDNodaRepository.php b/src/enums/MDNodaRepository.php index e22eb24..951ff16 100644 --- a/src/enums/MDNodaRepository.php +++ b/src/enums/MDNodaRepository.php @@ -539,7 +539,10 @@ enum MDNodaRepository implements MDValueEnumInterface, JsonSerializable { if (filter_var($id, FILTER_VALIDATE_URL) !== false) { $id = strtr($id, [ + 'http://www.wikidata.org/wiki/' => '', + 'http://www.wikidata.org/entity/' => '', 'https://www.wikidata.org/wiki/' => '', + 'https://www.wikidata.org/entity/' => '', 'https://www.wikidata.org/w/index.php?search=&search=' => '', ]); } @@ -644,7 +647,7 @@ enum MDNodaRepository implements MDValueEnumInterface, JsonSerializable { self::klbb => self::validateNumericId($id, ['https://www.kl-bb.de/artist/', 'https://www.kl-bb.de/?page=actor&subPage=']), self::lcsh => self::validateLcshId($id), self::loc => self::validateLocId($id), - self::mbl => self::validateNumericId($id, ['http://www.uni-magdeburg.de/mbl/PHP_Skripte/mbl_verwaltung/mbl_verw_anzeige_biog.php?auswahl=3&liste_biog_name=']), + self::mbl => self::validateNumericId($id, ['http://www.uni-magdeburg.de/mbl/PHP_Skripte/mbl_verwaltung/mbl_verw_anzeige_biog.php?auswahl=3&liste_biog_name=', 'http://www.uni-magdeburg.de/mbl/Biografien/', '.htm']), self::mindatorg => self::validateNumericId($id, ['https://www.mindat.org/min-', '.html']), self::moebeltypologie => self::validateNumericId($id, ['https://term.museum-digital.de/moebel/tag/']), self::ndb_adb => self::validateGndId($id, ['https://www.deutsche-biographie.de/pnd', '.html', '#adbcontent', '#ndbcontent', '#indexcontent']),