Skip to content

Commit

Permalink
Update the behavior for uncoded languages
Browse files Browse the repository at this point in the history
  • Loading branch information
kosarko committed Aug 10, 2022
1 parent d81af9d commit 8780782
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion dspace/config/crosswalks/oai/metadataFormats/elg.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ elg.xml:62: element typeOfVideoContent: Schemas validity error : Element '{http:
<xsl:template name="Language">
<xsl:param name="isoCode"/>
<xsl:choose>
<xsl:when test="$isoCode = 'und'">
<xsl:when test="$isoCode = 'und' or $isoCode = 'mis'">
<xsl:call-template name="uncoded_languages"/>
</xsl:when>
<xsl:otherwise>
Expand All @@ -395,6 +395,13 @@ elg.xml:62: element typeOfVideoContent: Schemas validity error : Element '{http:
</xsl:template>

<xsl:template name="uncoded_languages">
<!-- This is expected in ELG:
Languages without ISO 639-3 but with a glottolog code: use “mis” for ISO and add the glottolog code
Languages with neither ISO 639-3 nor a glottolog code: use “und” for ISO and add the free text name at “languageVarietyName”
At the moment we don't have/know glottolog codes, so behave as 'und' (Undetermined) even if the iso is 'mis'
(Uncoded languages).
-->
<xsl:choose>
<!-- Assume that if we have 'und' there are language names in dc.language -->
<xsl:when test="/doc:metadata/doc:element[@name='dc']/doc:element[@name='language']/doc:element/doc:field[@name='value']">
Expand Down

0 comments on commit 8780782

Please sign in to comment.