metadata101 / iso19139.ca.HNAP

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

Fix country validation rules to verify the value in the thesaurus using the element language #255

Closed josegar74 closed 2 years ago

josegar74 commented 2 years ago

Previously the values were check in both languages in the thesaurus, causing that this kind of entries (English element with the French value) passed the validation:

<gmd:country xsi:type="gmd:PT_FreeText_PropertyType">
    <gco:CharacterString>Canada (le)</gco:CharacterString>
    <gmd:PT_FreeText>
        <gmd:textGroup>
            <gmd:LocalisedCharacterString xmlns="" locale="#fra">Canada (le)</gmd:LocalisedCharacterString>
        </gmd:textGroup>
    </gmd:PT_FreeText>
</gmd:country>