metadata101 / iso19139.ca.HNAP

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

add gmd:scope to gmd:dataQuality #331

Closed wangf1122 closed 11 months ago

wangf1122 commented 1 year ago

The current template has no such gmd:dataQualityInfo therefore all metadata created are lack of this section. When the user click on "link to a source dataset" image

Geonetwork will add such section into the metadata. However it wasn't added correctly. The required gmd:scope is missing according to the schema https://github.com/metadata101/iso19139.ca.HNAP/blob/14ead08ef492220fb5d7a6e8c22022807b941201/src/main/plugin/iso19139.ca.HNAP/schema/gmd/dataQuality.xsd#L505

image

As result, the schema validation will fail image

This PR will ensure to inflate existing missing gmd:dataQualityInfo also add it to the template. It is backwards compatible by testing with both existing data and adding new data.

image

wangf1122 commented 1 year ago

@josegar74

Please take a look of this to replace PR https://github.com/metadata101/iso19139.ca.HNAP/pull/328

wangf1122 commented 1 year ago

@josegar74

I have commit the latest suggestion that you suggest to have the value=

<gmd:MD_ScopeCode codeListValue="RI_622"
codeList="https://schemas.metadata.geo.ca/register/napMetadataRegister.xml#IC_108">dataset; jeuDonnées</gmd:MD_ScopeCode>

Please see anything else needs?