Compare commits
No commits in common. "0698b6e487e33fbddb7a51db5716fc4e35688c36" and "10aedafad10e0e42eb92473e8f0c68dfbcae85ae" have entirely different histories.
0698b6e487
...
10aedafad1
|
@ -278,13 +278,7 @@ enum MDNodaRepository implements MDValueEnumInterface, JsonSerializable {
|
||||||
$id = strtr($id, $toRemove);
|
$id = strtr($id, $toRemove);
|
||||||
}
|
}
|
||||||
|
|
||||||
// There is an issue with this regex
|
if (preg_match("/^[0-9-X]*$/", $id) === false) return false;
|
||||||
if (preg_match("/^[0-9-X]*$/", $id) === false) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (is_numeric(strtr($id, ['-' => '', 'X' => ''])) === false) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $id;
|
return $id;
|
||||||
|
|
||||||
|
@ -382,7 +376,7 @@ enum MDNodaRepository implements MDValueEnumInterface, JsonSerializable {
|
||||||
self::bnf => self::validateNumericId($id, ["https://catalogue.bnf.fr/ark:/12148/cb"]),
|
self::bnf => self::validateNumericId($id, ["https://catalogue.bnf.fr/ark:/12148/cb"]),
|
||||||
self::cona => self::validateNumericId($id, ['https://vocab.getty.edu/page/cona/']),
|
self::cona => self::validateNumericId($id, ['https://vocab.getty.edu/page/cona/']),
|
||||||
self::editionhumboldtdigital => self::validateGndId($id, ['https://edition-humboldt.de/register/personen/detail.xql?normid=http://d-nb.info/gnd/']),
|
self::editionhumboldtdigital => self::validateGndId($id, ['https://edition-humboldt.de/register/personen/detail.xql?normid=http://d-nb.info/gnd/']),
|
||||||
self::gnd => self::validateGndId($id, ['http://d-nb.info/gnd/', 'https://d-nb.info/gnd/']),
|
self::gnd => self::validateGndId($id, ['https://d-nb.info/gnd/']),
|
||||||
self::grobsystematik => self::validateNumericId($id, ['https://term.museum-digital.de/grobsystematik/tag/']),
|
self::grobsystematik => self::validateNumericId($id, ['https://term.museum-digital.de/grobsystematik/tag/']),
|
||||||
self::iconclass => self::validateIconclassId($id),
|
self::iconclass => self::validateIconclassId($id),
|
||||||
self::lcsh => self::validateLcshId($id),
|
self::lcsh => self::validateLcshId($id),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user