Skip to content

Commit

Permalink
UBO-274 Fixed ArrayIndexOutBoundException when language code cannot b…
Browse files Browse the repository at this point in the history
…e resolved
  • Loading branch information
Possommi authored and kkrebs committed Sep 21, 2023
1 parent 88ba44f commit 2f153b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ubo-common/src/main/resources/xsl/mods-display.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1657,7 +1657,7 @@

<!-- ========== Sprache der Publikation ========== -->
<xsl:template match="mods:languageTerm[@type='code']">
<xsl:value-of select="document(concat('language:',.))/language/label[@xml:lang=$CurrentLang]" />
<xsl:value-of select="document(concat('notnull:language:',.))/language/label[@xml:lang=$CurrentLang]" />
<xsl:if test="position() != last()">
<xsl:text>, </xsl:text>
</xsl:if>
Expand Down

0 comments on commit 2f153b4

Please sign in to comment.