Page 1 of 1

[Viewer 6.8 : Information Representation Summary View] i18n issue for Instance Name and Description

Posted: 04 Feb 2020, 12:14
by tkinte
Hi.

The

Code: Select all

 'renderMultiLingual...' 
function not used for the values of name and the description.

We made the foillowing adaptation :

For the name

Code: Select all

<!--NEW i18n CODE -->
<xsl:call-template name="RenderInstanceLink">
<xsl:with-param name="theSubjectInstance" select="$currentRepresentation"/>
<xsl:with-param name="anchorClass" select="'text-primary'"/>
</xsl:call-template>
<!-- OLD CODE COMMENTED
<span class="text-primary">
<xsl:value-of select="$currentRepresentation/own_slot_value[slot_reference = 'name']/value"/>
</span> 
-->
And for the description

Code: Select all

<!--NEW i18n CODE -->
<p>
<xsl:call-template name="RenderMultiLangInstanceDescription">
<xsl:with-param name="theSubjectInstance" select="$currentRepresentation"/>
</xsl:call-template>
</p>
<!-- OLD CODE COMMENTED
<xsl:variable name="description" select="$currentRepresentation/own_slot_value[slot_reference = 'description']/value"/>
<xsl:if test="not(count($description) > 0)">-</xsl:if>
<xsl:value-of select="$description"/>
-->
The updated .xsl file in attachment.
core_il_inf_rep_summary.zip
Best regards

Tshitshi

Re: [Viewer 6.8 : Information Representation Summary View] i18n issue for Instance Name and Description

Posted: 06 Feb 2020, 09:29
by neil.walsh
Great stuff. Thanks for the contribution. We'll roll this into the next release.