Closed wangf1122 closed 11 months ago
@josegar74
Please take a look of this to replace PR https://github.com/metadata101/iso19139.ca.HNAP/pull/328
@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?
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](https://user-images.githubusercontent.com/74916635/233385435-4cbaf443-da04-40ac-943a-09eb06ea2273.png)
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
As result, the schema validation will fail![image](https://user-images.githubusercontent.com/74916635/233386126-0d38087c-4b28-4760-8983-7f59d37ab856.png)
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.