metadata101 / iso19139.ca.HNAP

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

Resource language and online resource xlink:role #260

Open wangf1122 opened 2 years ago

wangf1122 commented 2 years ago

Due to the previous PR https://github.com/metadata101/iso19139.ca.HNAP/pull/230

The xlink:role attribute will be added to "gmd:onLine" tag based on the description of the language. The language in the description comes from

https://github.com/metadata101/iso19139.ca.HNAP/blob/85aeb8ebb04c40965ba9acf6630fb6d2865b2ae4/src/main/config/codelist/local/thesauri/theme/GC_Resource_Languages.rdf#L35

But there is special case where language is eng;fra. Therefore xlink:role="urn:xml:lang:fra-CAN" was added

image

This will affect the validation in schematron. As current validation rule test if two gmd:online web service for both English and French should exist.