Add basic institution category: univ. collection
This commit is contained in:
parent
e55e4c210a
commit
d3ff111750
2
l18n
2
l18n
|
@ -1 +1 @@
|
||||||
Subproject commit e863da6ffe66d9edcf14452d185d56eeebf1a178
|
Subproject commit 9a92d4fdda6ee8193e0005693a349331294a8af9
|
|
@ -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"),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user