Skip to content

Commit

Permalink
Standard / ISO19139 / Formatter / Do not display extent if none avail…
Browse files Browse the repository at this point in the history
…able (geonetwork#8229)

* Standard / ISO19139 / Formatter / Do not display extent if none available

* Update schemas/iso19139/src/main/plugin/iso19139/formatter/xsl-view/view.xsl

Co-authored-by: Jose García <[email protected]>

---------

Co-authored-by: Jose García <[email protected]>
  • Loading branch information
fxprunayre and josegar74 authored Jul 3, 2024
1 parent e22bce7 commit cddac34
Showing 1 changed file with 19 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,23 +193,25 @@
</xsl:template>

<xsl:template mode="getExtent" match="gmd:MD_Metadata|*[@gco:isoType = 'gmd:MD_Metadata']">
<section class="gn-md-side-extent">
<h2>
<i class="fa fa-fw fa-map-marker"></i>
<span>
<xsl:value-of select="$schemaStrings/spatialExtent"/>
</span>
</h2>

<xsl:choose>
<xsl:when test=".//gmd:EX_BoundingPolygon">
<xsl:copy-of select="gn-fn-render:extent($metadataUuid)"/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="gn-fn-render:bboxes(.//gmd:EX_GeographicBoundingBox)"/>
</xsl:otherwise>
</xsl:choose>
</section>
<xsl:if test=".//gmd:identificationInfo/*/gmd:extent/*/gmd:geographicElement[gmd:EX_GeographicBoundingBox or gmd:EX_BoundingPolygon]">
<section class="gn-md-side-extent">
<h2>
<i class="fa fa-fw fa-map-marker"></i>
<span>
<xsl:value-of select="$schemaStrings/spatialExtent"/>
</span>
</h2>

<xsl:choose>
<xsl:when test=".//gmd:EX_BoundingPolygon">
<xsl:copy-of select="gn-fn-render:extent($metadataUuid)"/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="gn-fn-render:bboxes(.//gmd:EX_GeographicBoundingBox)"/>
</xsl:otherwise>
</xsl:choose>
</section>
</xsl:if>
</xsl:template>

<xsl:template mode="getOverviews" match="gmd:MD_Metadata|*[@gco:isoType = 'gmd:MD_Metadata']">
Expand Down

0 comments on commit cddac34

Please sign in to comment.