Skip to content

Commit

Permalink
validate missing contact email field to be sync as iso19139.nap (#355)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
wangf1122 authored and josegar74 committed Mar 12, 2024
1 parent 809669c commit c14f237
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@
<MapResourcesWMSNumber>The number of WMS Map Resources should be at most 2 (one for english and one for french)</MapResourcesWMSNumber>

<ServiceNamespace>srv:SV_ServiceIdentification is misplaced for gmd:MD_ScopeCode: </ServiceNamespace>
<MissingContactMail>Contact - Electronic mail address is required</MissingContactMail>

</strings>
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@
<MapResourcesWMSNumber>Le nombre de sources de la carte WMS devrait être au plus 2 (une pour l'anglais et une pour le français)</MapResourcesWMSNumber>

<ServiceNamespace>srv:SV_ServiceIdentification est mal placé pour gmd:MD_ScopeCode: </ServiceNamespace>
<MissingContactMail>Contact - Adresse de courrier électronique obligatoire</MissingContactMail>

</strings>
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
<sch:pattern>
<sch:title>$loc/strings/Metadata</sch:title>

<sch:rule context="/gmd:MD_Metadata">
<sch:let name="missingContactMail" value="not(gmd:contact/*/gmd:contactInfo/*/gmd:address/gmd:CI_Address/gmd:electronicMailAddress)" />
<sch:assert test="not($missingContactMail)">$loc/strings/MissingContactMail</sch:assert>
</sch:rule>

<!-- HierarchyLevel -->
<sch:rule context="//gmd:hierarchyLevel">

Expand Down

0 comments on commit c14f237

Please sign in to comment.