Skip to content

Commit

Permalink
only request coupled resources if at least one resource identifier ex…
Browse files Browse the repository at this point in the history
…ists
  • Loading branch information
jvanzadelhoff committed Jun 6, 2023
1 parent 441e8c8 commit 42a0409
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/resources/iso2dcat.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@
</xsl:if>
<xsl:value-of select="concat('?', $resourceIdentifiers)"/>
</xsl:variable>
<xsl:variable name="coupledServices" select="document($coupledServicesUri)"/>
<xsl:variable name="coupledServices">
<xsl:if test="$resourceIdentifiers">
<xsl:copy-of select="document($coupledServicesUri)"/>
</xsl:if>
</xsl:variable>

<xsl:template match="gmd:MD_Metadata|gmi:MI_Metadata">
<dcat:Dataset>
Expand Down

0 comments on commit 42a0409

Please sign in to comment.