Skip to content

Commit

Permalink
Fix indexing of iso19110 metadata with cardinalities composed of mult…
Browse files Browse the repository at this point in the history
…iple ranges (#7486)

* Fix indexing of iso19110 metadata with cardinalities with multiple ranges

* Update schemas/iso19110/src/main/plugin/iso19110/index-fields/index.xsl

Co-authored-by: François Prunayre <fx.prunayre@gmail.com>

---------

Co-authored-by: François Prunayre <fx.prunayre@gmail.com>
  • Loading branch information
josegar74 and fxprunayre committed Nov 23, 2023
1 parent 49ca737 commit e75ee33
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,12 @@
"link": "<xsl:value-of select="*/gfc:code/*/@xlink:href"/>",
"type": "<xsl:value-of select="*/gfc:valueType/gco:TypeName/gco:aName/*/text()"/>"
<xsl:if test="*/gfc:cardinality">
,"cardinality": "<xsl:value-of select="concat(*/gfc:cardinality//gco:lower/*/text(), '..', */gfc:cardinality//gco:upper/*/text())"/>"
<xsl:variable name="cardinalityValue">
<xsl:for-each select="*/gfc:cardinality/*/gco:range">
<xsl:value-of select="concat(*/gco:lower/*/text(), '..', */gco:upper/*/text())"/><xsl:if test="position() != last()">, </xsl:if>
</xsl:for-each>
</xsl:variable>
,"cardinality": "<xsl:value-of select="$cardinalityValue"/>"
</xsl:if>
<xsl:variable name="codeList"
select="*/gfc:listedValue[normalize-space(*) != '']"/>
Expand Down

0 comments on commit e75ee33

Please sign in to comment.