Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iso19139 / Add better support for gmd:language containing gmd:LanguageCode and gco:CharacterString in metadata indexing. #6116

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<xsl:import href="fn.xsl"/>
<xsl:import href="common/inspire-constant.xsl"/>
<xsl:import href="common/index-utils.xsl"/>

<xsl:include href="../convert/functions.xsl"/>
<xsl:output method="xml" indent="yes"/>

<xsl:output name="default-serialize-mode"
Expand Down Expand Up @@ -114,9 +114,10 @@
select="gmd:language[1]/gmd:LanguageCode/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this change it does not look like mainLanguageCode is used anymore so maybe it can be removed?

@codeListValue[normalize-space(.) != '']"/>

<xsl:variable name="mainLanguage" as="xs:string?"
select="if ($mainLanguageCode) then $mainLanguageCode else
gmd:language[1]/gco:CharacterString[normalize-space(.) != '']"/>

<xsl:variable name="mainLanguage" as="xs:string?">
<xsl:call-template name="langId19139" />
</xsl:variable>

<xsl:variable name="otherLanguages" as="attribute()*"
select="gmd:locale/gmd:PT_Locale/
Expand Down