metadata101 / iso19139.ca.HNAP

ISO Harmonized North American Profile (HNAP)
GNU General Public License v2.0
4 stars 19 forks source link

dynamic err msg of description for online resource validation schema #392

Closed xiechangning20 closed 4 weeks ago

xiechangning20 commented 1 month ago

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

But the validation errors do not clearly describe the informationimage

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) image

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.