I have an item with URI http://hdl.handle.net/10862/717 in our local language that has an english version: http://hdl.handle.net/10862/152.
<dim:field element="relation" qualifier="hasversion" language="en"
mdschema="dc">http://hdl.handle.net/10862/152</dim:field>
My xsl template below:
<xsl:template name="itemSummaryView-DIM-HASVERSION">
<xsl:if test="dim:field[@element='relation' and @qualifier='hasversion' and descendant::text()]">
<div class="simple-item-view-uri item-page-field-wrapper table">
<h5><i18n:text>xmlui.dri2xhtml.METS-1.0.item-hasversion</i18n:text></h5>
<span>
<xsl:for-each select="dim:field[@element='relation' and @qualifier='hasversion']">
<a>
<xsl:attribute name="href">
<xsl:copy-of select="./node()"/>
</xsl:attribute>
<xsl:value-of select="./@language"/>
</a>
<xsl:if test="count(following-sibling::dim:field[@element='relation' and @qualifier='hasversion']) != 0">
<xsl:text>; </xsl:text>
</xsl:if>
</xsl:for-each>
</span>
</div>
</xsl:if>
</xsl:template>
Using the template above, it is just displaying the text en
. What I want to achieve is to display the appropriate labels for the assigned language (eg. English for en, 日本語 for ja) just like in the language switcher if we enabled the webui.supported.locales
. I've read in dspace-tech here that DSpace doesn't know them.
Thanks in advance.