Skip to content

Commit

Permalink
Update distribution format so that the value stored is the code inste…
Browse files Browse the repository at this point in the history
…ad of the English value. (#320)
  • Loading branch information
ianwallen authored Mar 27, 2023
1 parent 8aa2267 commit 20dcf1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@
<entries>
<xsl:for-each select="$resourceFormatsTh/rdf:RDF/rdf:Description">
<entry>
<code><xsl:value-of select="ns2:prefLabel[@xml:lang='en']" /></code>
<label> <xsl:value-of select="ns2:prefLabel[@xml:lang='en']" /></label>
<code><xsl:value-of select="replace(@rdf:about, 'http://geonetwork-opensource.org/EC/resourceformat#', '')" /></code>
<label><xsl:value-of select="ns2:prefLabel[@xml:lang=XslUtilHnap:twoCharLangCode($lang)]"/></label>
</entry>
</xsl:for-each>
</entries>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@

<sch:let name="distributionFormat" value="gco:CharacterString" />

<sch:assert test="($missing) or (string($distribution-formats//rdf:Description[normalize-space(ns2:prefLabel[@xml:lang=$mainLanguage2char]) = $distributionFormat]))">$loc/strings/DistributionFormatInvalid</sch:assert>
<sch:assert test="($missing) or (string($distribution-formats//rdf:Description[replace(@rdf:about, 'http://geonetwork-opensource.org/EC/resourceformat#', '') = $distributionFormat]))">$loc/strings/DistributionFormatInvalid</sch:assert>

</sch:rule>

Expand Down

0 comments on commit 20dcf1c

Please sign in to comment.