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

Post Reply
User avatar
tkinte
Posts: 145
Joined: 18 Nov 2014, 08:24
Location: https://www.linkedin.com/in/tshitshi-kia-ntoni
Contact:

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
You do not have the required permissions to view the files attached to this post.
User avatar
neil.walsh
Posts: 445
Joined: 16 Feb 2009, 13:45
Contact:

Great stuff. Thanks for the contribution. We'll roll this into the next release.
Post Reply