Issue with clarity of the message which should display the language if possible.
Issue with clarity of the message which should display value that is not correct.
Issue with error message showing the incorrect list of expected options
When adding a new online resource, user can input their own description values or leave blank instead of selecting from the list
But the validation errors do not clearly describe the information
i.e. instead of
Online resource description format is not valid
It should have been
French online resource description format "" is not valid
This would have made it clear what language has the issue and that "" was an empty value. But this also helps for other errors as well. i.e. if someone entered abc then the error would be
French online resource description format "abc" is not valid
which makes it much clearer on what the error is.
There is also another issue
The error states the following
Online resource description content type is not valid. Valid values are: Web Service,Service Web,Dataset,Données,API,Application,Supporting Document,Document de soutien
But the options to select from are the following. (Web Service not in the list)
It looks like the list of items put in the expected options is using both English and French values in on list which is not correct. It should have only displayed the French items.
The PR intends to address the following issues
When adding a new online resource, user can input their own description values or leave blank instead of selecting from the list![image](https://github.com/user-attachments/assets/c7e467c0-1847-49a4-a3f0-784b4f038a3c)
But the validation errors do not clearly describe the information![image](https://github.com/user-attachments/assets/74f1d694-ea47-4216-b0a2-0109d956aeeb)
i.e. instead of
It should have been
This would have made it clear what language has the issue and that "" was an empty value. But this also helps for other errors as well. i.e. if someone entered abc then the error would be
which makes it much clearer on what the error is.
There is also another issue
The error states the following Online resource description content type is not valid. Valid values are: Web Service,Service Web,Dataset,Données,API,Application,Supporting Document,Document de soutien
But the options to select from are the following. (Web Service not in the list)![image](https://github.com/user-attachments/assets/dba22324-9477-4f80-92e2-cd5ea9910543)
It looks like the list of items put in the expected options is using both English and French values in on list which is not correct. It should have only displayed the French items.