Skip to content

Commit

Permalink
Metawal / Suggestion ADU / Update to new URL layout #876.
Browse files Browse the repository at this point in the history
  • Loading branch information
fxprunayre committed Sep 30, 2024
1 parent c538be2 commit d841392
Showing 1 changed file with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@
[cit:protocol/*/text() = 'WWW:LINK'
and cit:linkage/*/text() = $aduUrl]) > 0"/>


<xsl:variable name="geoportalWallon2024urlEndPoint"
select="'https://geoportail.wallonie.be/walonmap#'"/>
<xsl:variable name="geoportalWallon2024urlTemplate">
<xsl:text>https://geoportail.wallonie.be/walonmap#PANIER=[{"serviceId":"1","visible":true,"url":"{url}","label":"{title}","type":"AGS_DYNAMIC","metadataUrl":"https://geodata.wallonie.be/id/{uuid}"}]</xsl:text>
<xsl:text>PANIER=[{"serviceId":"1","visible":true,"url":"{url}","label":"{title}","type":"AGS_DYNAMIC","metadataUrl":"https://geodata.wallonie.be/id/{uuid}"}]</xsl:text>
</xsl:variable>

<xsl:variable name="geoportalLinkRecordtitle"
Expand All @@ -45,10 +48,10 @@
select="//mdb:MD_Metadata/mdb:metadataIdentifier/*/mcc:code/gco:CharacterString"/>

<xsl:variable name="geoportalWallon2024"
select="replace(replace(replace(
$geoportalWallon2024urlTemplate, '\{url\}', encode-for-uri($esriRestServiceUrl)),
'\{title\}', encode-for-uri(util:escapeForJson($geoportalLinkRecordtitle))),
'\{uuid\}', encode-for-uri($geoportalLinkRecordUuid))"/>
select="concat($geoportalWallon2024urlEndPoint, encode-for-uri(replace(replace(replace(
$geoportalWallon2024urlTemplate, '\{url\}', $esriRestServiceUrl),
'\{title\}', replace(util:escapeForJson($geoportalLinkRecordtitle), '\\', '\\\\')),
'\{uuid\}', $geoportalLinkRecordUuid)))"/>

<xsl:variable name="isGeoportalWallon2024Defined"
select="count(//mrd:onLine/*
Expand Down Expand Up @@ -99,11 +102,12 @@
[cit:protocol/*/text() = 'WWW:LINK'
and cit:linkage/*/text() = $aduUrl]) > 0"/>


<xsl:variable name="geoportalWallon2024"
select="replace(replace(replace(
$geoportalWallon2024urlTemplate, '\{url\}', encode-for-uri(current())),
'\{title\}', encode-for-uri(util:escapeForJson(current()))),
'\{uuid\}', encode-for-uri($geoportalLinkRecordUuid))"/>
select="concat($geoportalWallon2024urlEndPoint, encode-for-uri(replace(replace(replace(
$geoportalWallon2024urlTemplate, '\{url\}', current()),
'\{title\}', replace(util:escapeForJson($geoportalLinkRecordtitle), '\\', '\\\\')),
'\{uuid\}', $geoportalLinkRecordUuid)))"/>

<xsl:variable name="isGeoportalWallon2024Defined"
select="count(//mrd:onLine/*
Expand Down

0 comments on commit d841392

Please sign in to comment.