Skip to content

Commit

Permalink
citation validation (#365)
Browse files Browse the repository at this point in the history
* citation validation

* Remove nilReason for citation validation
  • Loading branch information
wangf1122 authored Dec 15, 2023
1 parent 7db8368 commit e3b127e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@
<ServiceNamespace>srv:SV_ServiceIdentification is misplaced for gmd:MD_ScopeCode: </ServiceNamespace>
<MissingContactMail>Contact - Electronic mail address is required</MissingContactMail>

<requireCitation>Citation</requireCitation>
<alert.requiredCitation>Data Identification Citation is a required element</alert.requiredCitation>

</strings>
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@
<ServiceNamespace>srv:SV_ServiceIdentification est mal placé pour gmd:MD_ScopeCode: </ServiceNamespace>
<MissingContactMail>Contact - Adresse de courrier électronique obligatoire</MissingContactMail>

<requireCitation>Citation</requireCitation>
<alert.requiredCitation>La citation d’identification des données est un élément obligatoire</alert.requiredCitation>

</strings>
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,15 @@
</sch:rule>
</sch:pattern>

<!--Citation -->
<sch:pattern>
<sch:title>$loc/strings/requireCitation</sch:title>
<sch:rule context="//gmd:identificationInfo/*/gmd:citation">
<sch:assert test="gmd:CI_Citation">
<sch:value-of select="$loc/strings/alert.requiredCitation"/>
</sch:assert>
</sch:rule>
</sch:pattern>

<!--- Data Identification pattern -->
<sch:pattern>
Expand Down

0 comments on commit e3b127e

Please sign in to comment.