From c14f2376e492e60ad9cc14802a64bd034ce388e5 Mon Sep 17 00:00:00 2001 From: wangf1122 <74916635+wangf1122@users.noreply.github.com> Date: Fri, 10 Nov 2023 15:46:02 -0500 Subject: [PATCH] validate missing contact email field to be sync as iso19139.nap (#355) * validate missing contact email field to be sync as iso19139.nap validate missing contact email field to be sync as iso19139.nap * move missing email field logic into schematron common --- .../iso19139.ca.HNAP/loc/eng/schematron-rules-common.xml | 1 + .../iso19139.ca.HNAP/loc/fre/schematron-rules-common.xml | 1 + .../iso19139.ca.HNAP/schematron/schematron-rules-common.sch | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/src/main/plugin/iso19139.ca.HNAP/loc/eng/schematron-rules-common.xml b/src/main/plugin/iso19139.ca.HNAP/loc/eng/schematron-rules-common.xml index f98797b5..9b4ec8cd 100644 --- a/src/main/plugin/iso19139.ca.HNAP/loc/eng/schematron-rules-common.xml +++ b/src/main/plugin/iso19139.ca.HNAP/loc/eng/schematron-rules-common.xml @@ -54,5 +54,6 @@ The number of WMS Map Resources should be at most 2 (one for english and one for french) srv:SV_ServiceIdentification is misplaced for gmd:MD_ScopeCode: + Contact - Electronic mail address is required diff --git a/src/main/plugin/iso19139.ca.HNAP/loc/fre/schematron-rules-common.xml b/src/main/plugin/iso19139.ca.HNAP/loc/fre/schematron-rules-common.xml index 52933543..938075a0 100644 --- a/src/main/plugin/iso19139.ca.HNAP/loc/fre/schematron-rules-common.xml +++ b/src/main/plugin/iso19139.ca.HNAP/loc/fre/schematron-rules-common.xml @@ -54,5 +54,6 @@ Le nombre de sources de la carte WMS devrait être au plus 2 (une pour l'anglais et une pour le français) srv:SV_ServiceIdentification est mal placé pour gmd:MD_ScopeCode: + Contact - Adresse de courrier électronique obligatoire diff --git a/src/main/plugin/iso19139.ca.HNAP/schematron/schematron-rules-common.sch b/src/main/plugin/iso19139.ca.HNAP/schematron/schematron-rules-common.sch index c2831b2c..fa738f6e 100644 --- a/src/main/plugin/iso19139.ca.HNAP/schematron/schematron-rules-common.sch +++ b/src/main/plugin/iso19139.ca.HNAP/schematron/schematron-rules-common.sch @@ -61,6 +61,11 @@ $loc/strings/Metadata + + + $loc/strings/MissingContactMail + +