Compare commits

3 Commits

Author SHA1 Message Date
61c05f4556 Update translation files 2025-12-16 16:32:08 +01:00
2e388fc006 Update translation files 2025-12-16 10:28:26 +01:00
ae1d37f050 Accept http:// mindat links 2025-12-12 13:49:07 +01:00
3 changed files with 7 additions and 2 deletions

2
l18n

Submodule l18n updated: 843bfd0535...c7d1a5e1bd

View File

@@ -734,7 +734,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::mindatorg => self::validateNumericId($id, ['https://www.mindat.org/min-', '.html']),
self::mindatorg => self::validateNumericId($id, ['http://www.mindat.org/min-', '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', 'https://www.deutsche-biographie.de/gnd', '.html', '#adbcontent', '#ndbcontent', '#indexcontent']),
self::ndl => self::validateNumericId($id, [

View File

@@ -87,6 +87,11 @@ final class MDNodaRepositoryTest extends TestCase {
self::assertEquals(false, MDNodaRepository::col->validateId("123123"));
self::assertEquals("C46V", MDNodaRepository::col->validateId("https://www.catalogueoflife.org/data/taxon/C46V"));
self::assertEquals("CRLT8", MDNodaRepository::col->validateId("https://www.catalogueoflife.org/data/taxon/CRLT8"));
self::assertEquals("CRLT8", MDNodaRepository::col->validateId("http://www.catalogueoflife.org/data/taxon/CRLT8"));
self::assertEquals(false, MDNodaRepository::mindatorg->validateId("adfdasjfklasjl"));
self::assertEquals("2047", MDNodaRepository::mindatorg->validateId("https://www.mindat.org/min-2047.html"));
self::assertEquals("2047", MDNodaRepository::mindatorg->validateId("http://www.mindat.org/min-2047.html"));
}
}