Skip to content

Commit

Permalink
Metadata indexing / ISO19139 / ISO19115-3.2018 / Escape graphic overv…
Browse files Browse the repository at this point in the history
…iew file name for JSON
  • Loading branch information
josegar74 committed Oct 9, 2024
1 parent f65ae30 commit c430079
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@

<xsl:for-each select="$overviews">
<overview type="object">{
"url": "<xsl:value-of select="if (local-name() = 'FileName') then @src else normalize-space(.)"/>"
"url": "<xsl:value-of select="if (local-name() = 'FileName') then util:escapeForJson(@src) else util:escapeForJson(normalize-space(.))"/>"
<xsl:if test="normalize-space(../../mcc:fileDescription) != ''">,
"nameObject":
<xsl:value-of select="gn-fn-index:add-multilingual-field('name', ../../mcc:fileDescription, $allLanguages, true())"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@
<xsl:for-each select="$overviews">
<!-- TODO can be multilingual desc and name -->
<overview type="object">{
"url": "<xsl:value-of select="normalize-space(.)"/>"
"url": "<xsl:value-of select="util:escapeForJson(normalize-space(.))"/>"
<xsl:if test="normalize-space(../../gmd:fileDescription) != ''">,
"nameObject": <xsl:value-of select="gn-fn-index:add-multilingual-field('name', ../../gmd:fileDescription, $allLanguages, true())"/>
</xsl:if>
Expand Down

0 comments on commit c430079

Please sign in to comment.