metadata101 / iso19139.ca.HNAP

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

Add schematron validation rules for datacite #283

Closed josegar74 closed 1 year ago

ianwallen commented 2 years ago

@josegar74 could provide some context on this requirement?

I would like to understand why this is added as a separate schematron instead of being added to the existing one? Is this an HNAP validation rue or is it specific for a deployment?

josegar74 commented 2 years ago

This validation is only relevant when publishing to DOI. For the metadata editor, these validation rules should be disabled to avoid interfering with metadata validation when the metadata is not relevant to the DOI publication.

josegar74 commented 1 year ago

@ianwallen the schematron code supports to add disabled in the file name (schematron-rules-datacite.disabled.sch) do the rule is disabled by default.

Unfortunately, that causes issues with the DOI code as checks for the exact file name schematron-rules-datacite.sch.

For now, going to merge the PR, knowing that should be disabled, if required, in the Admin console > Metadata and templates > Validation section