Add basic institution category: univ. collection

This commit is contained in:
Joshua Ramon Enslin 2024-06-17 15:44:29 +02:00
parent e55e4c210a
commit d3ff111750
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE
2 changed files with 5 additions and 1 deletions

2
l18n

@ -1 +1 @@
Subproject commit e863da6ffe66d9edcf14452d185d56eeebf1a178 Subproject commit 9a92d4fdda6ee8193e0005693a349331294a8af9

View File

@ -16,6 +16,7 @@ enum MDInstitutionBasicCategory implements MDValueEnumInterface, JsonSerializabl
case library; case library;
case memorial_site; case memorial_site;
case private_collection; case private_collection;
case university_collection;
/** /**
* Returns a value of this type based on a string. * Returns a value of this type based on a string.
@ -32,6 +33,7 @@ enum MDInstitutionBasicCategory implements MDValueEnumInterface, JsonSerializabl
"library" => self::library, "library" => self::library,
"memorial_site" => self::memorial_site, "memorial_site" => self::memorial_site,
"private_collection" => self::private_collection, "private_collection" => self::private_collection,
"university_collection" => self::university_collection,
default => throw new MDpageParameterNotFromListException("Unknown institution category"), default => throw new MDpageParameterNotFromListException("Unknown institution category"),
}; };
@ -52,6 +54,7 @@ enum MDInstitutionBasicCategory implements MDValueEnumInterface, JsonSerializabl
2 => self::library, 2 => self::library,
3 => self::memorial_site, 3 => self::memorial_site,
4 => self::private_collection, 4 => self::private_collection,
5 => self::university_collection,
default => throw new MDpageParameterNotFromListException("Unknown institution category"), default => throw new MDpageParameterNotFromListException("Unknown institution category"),
}; };
@ -130,6 +133,7 @@ enum MDInstitutionBasicCategory implements MDValueEnumInterface, JsonSerializabl
self::library => 2, self::library => 2,
self::memorial_site => 3, self::memorial_site => 3,
self::private_collection => 4, self::private_collection => 4,
self::university_collection => 5,
# default => throw new MDpageParameterNotFromListException("Unknown object record status"), # default => throw new MDpageParameterNotFromListException("Unknown object record status"),
}; };