Skip to content

Commit

Permalink
feat(ods): use ods explore api for CI_OnlineResource linkages
Browse files Browse the repository at this point in the history
note: this resovles CORS issues when using links, since the explore api responds with the necessary header
  • Loading branch information
tkohr authored and josegar74 committed Sep 6, 2023
1 parent 8e70dfc commit cffac20
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@
</xsl:call-template>
<xsl:if test="$count &lt; 5000">
<xsl:call-template name="dataLink">
<xsl:with-param name="format">shapefile</xsl:with-param>
<xsl:with-param name="format">shp</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:if>
Expand Down Expand Up @@ -562,10 +562,9 @@
<cit:linkage>
<gco:CharacterString>
<xsl:value-of select="concat(nodeUrl,
'/explore/dataset/',
'/api/explore/v2.1/catalog/datasets/',
(datasetid|dataset/dataset_id)[1],
'/download?format=', $format,
'&amp;timezone=Europe/Berlin&amp;use_labels_for_header=false')" />
'/exports/', $format, '?use_labels=true')" />
</gco:CharacterString>
</cit:linkage>
<cit:protocol>
Expand Down

0 comments on commit cffac20

Please sign in to comment.