Commit 0a041387 authored by Willem ter Berg's avatar Willem ter Berg

update to donl:language validator

parent b57fc01f
......@@ -146,7 +146,6 @@ def update_schema(schema):
overheid_license = tk.get_validator('overheid_license')
donl_catalogs = tk.get_validator('donl_catalogs')
donl_language = tk.get_validator('donl_language')
donl_languages = tk.get_validator('donl_languages')
donl_organization = tk.get_validator('donl_organization')
mdr_filetype_nal = tk.get_validator('mdr_filetype_nal')
iana_mediatypes = tk.get_validator('iana_mediatypes')
......@@ -174,7 +173,7 @@ def update_schema(schema):
'notes': [mandatory, is_string],
'modified': [mandatory, is_date, to_extras],
'source_catalog': [recommended, donl_catalogs, to_extras],
'language': [mandatory, to_list_if_curly_string, donl_languages, to_extras],
'language': [mandatory, to_list_if_curly_string, donl_language, to_extras],
'metadata_language': [mandatory, donl_language, to_extras],
'theme': [mandatory, to_list_if_curly_string,
overheid_taxonomiebeleidsagenda, to_extras],
......@@ -225,7 +224,7 @@ def update_schema(schema):
'name': [mandatory, is_string],
'description': [mandatory, is_string],
'metadata_language': [mandatory, donl_language],
'language': [mandatory, donl_languages, to_curly_string_if_list],
'language': [mandatory, donl_language, to_curly_string_if_list],
'license': [mandatory, overheid_license],
'format': [mandatory, mdr_filetype_nal],
'size': [recommended, is_number],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment