metadata101 / iso19139.ca.HNAP

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

citation validation #365

Closed wangf1122 closed 7 months ago

wangf1122 commented 7 months ago

There was some good validation in https://github.com/geonetwork/core-geonetwork/blob/main/schemas/iso19139/src/main/plugin/iso19139/schematron/schematron-rules-iso.sch

But HNAP schema has no such validation Sschematron in place. I attempt to introduce such Schematron and found they are not so compactable.

One validation rule I would like to bring in is: https://github.com/geonetwork/core-geonetwork/blob/bd153b0b9af09db01d0faf7d5cfc6b8708110047/schemas/iso19139/src/main/plugin/iso19139/schematron/schematron-rules-iso.sch#L573-L583

There are many fields (i.e. title) in this citation is mandatory

image

If we attempt to remove this citation, these mandatory fields are removed as well image

But the data validates fine: image

Here is the fixed result: image