we would like to increase the offering/folder name display length
Release :
Component : CA SERVICE CATALOG 17.x
This is by design . The users can have mouse hover over on the specific offering , it will be able to display the full offering name then .
If you want to increase the display length here , you will need to do "customization" on your catalog system for it .
1. From folder USM_HOME\view\webapps\usm\explorer\request\
copy file Catalogbrowse.xsl
copy file Cataloggetchildren.xsl
copy file catalogsubbrowse.xsl
into folder: USM_HOME\filestore\custom\explorer\request\
(if this full folder-path does not exist, create (sub)folders accordingly).
Note: please never modify those files at their original place and only modify/customize them on the filestore\custom\explorer\request\ folder .
2. From USM_HOME\filestore\custom\explorer\request\
Open file Catalogbrowse.xsl
1) locate the following section :
<a id="{offering_id/LITERAL}" href="javascript:detailsclick('{offering_id/LITERAL}', '{offering_code/LITERAL}')" class="feature_label" tabindex="0" title="{offering_name/LITERAL}" aria-label="{$xslcontent/featured_services}{offering_name/LITERAL}{offering_description/LITERAL}"> <!-- Accesskey for Featured list-->
<xsl:call-template name="shortenName">
<xsl:with-param name="str" select="offering_name/LITERAL"/>
<xsl:with-param name="shortenLength" select="number(30)"/>
</xsl:call-template>
</a>
change the line "<xsl:with-param name="shortenLength" select="number(30)"/>" above to
<xsl:with-param name="shortenLength" select="number(80)"/>
2) locate the following section
<xsl:otherwise>
<span title="{folder_name/LITERAL}">
<xsl:call-template name="shortenName">
<xsl:with-param name="str" select="folder_name/LITERAL"/>
<xsl:with-param name="shortenLength" select="number(30)"/>
</xsl:call-template>
</span>
</xsl:otherwise>
change the line "<xsl:with-param name="shortenLength" select="number(30)"/>" above to :
<xsl:with-param name="shortenLength" select="number(80)"/>
3) locate the following section :
<div id="subtab_link" class="left_panel_menu_sub">
<li class="anchor_li">
<a title="{$escapedName}" id="anchor_1" tabindex="0" href="javascript:showofferings('{folder_id/LITERAL}','{folder_parent_id/LITERAL}','{parent_name/LITERAL}')" class="datalinking folder_leftpanel">
<xsl:call-template name="shortenName">
<xsl:with-param name="str" select="$escapedName"/>
<xsl:with-param name="shortenLength" select="number(30)"/>
</xsl:call-template>
</a>
</li>
</div>
change the line " <xsl:with-param name="shortenLength" select="number(80)"/> " above to
<xsl:with-param name="shortenLength" select="number(80)"/>
save the file .
3. From USM_HOME\filestore\custom\explorer\request\
Open file Cataloggetchildren.xsl
1) locate the section :
<tr>
<td rowspan="2" align="absmiddle">
<xsl:if test="string-length(offering_image_file/LITERAL)>0">
<a href="javascript:detailsclick('{offering_id/LITERAL}', '{offering_code/LITERAL}')"><!--hsuja04 added offering_code field-->
<img border="0" align="left" src="FileStore/images/offerings/{offering_image_file/LITERAL}" height="32" width="32"/>
</a>
</xsl:if>
</td>
<td width="95%">
<a href="javascript:detailsclick('{offering_id/LITERAL}', '{offering_code/LITERAL}')" class="quick_start_link">
<xsl:value-of select="util:ellipsis(offering_name/LITERAL,35)" />
</a>
</td>
</tr>
change the line "<xsl:value-of select="util:ellipsis(offering_name/LITERAL,35)" /> " above to
<xsl:value-of select="util:ellipsis(offering_name/LITERAL,85)" />
2) locate the section
<a href="javascript:folderdrill('{folder_id/LITERAL}')" tabindex="0" alt="{$folderLinkTooltip}" title="{$folderLinkTooltip}" class="folder_label folder_leftpanel" aria-label="{$folderLinkTooltip} {folder_description/LITERAL}" accesskey="l">
<xsl:choose>
<xsl:when test="folder_id/LITERAL=$rootID">
<xsl:value-of select="$xslcontent/unknown"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="util:ellipsis(folder_name/LITERAL,28)" />
</xsl:otherwise>
</xsl:choose>
</a>
change the line "<xsl:value-of select="util:ellipsis(folder_name/LITERAL,28)" />" above to
<xsl:value-of select="util:ellipsis(folder_name/LITERAL, 100)" />
3) locate the section :
<li class="left_panel_menu_sub">
<a title="{$escapedName}" id="anchor_1" href="javascript:folderdrill('{folder_id/LITERAL}')" class="datalink folder_leftpanel">
<xsl:choose>
<xsl:when test="string-length($escapedName) < 18" >
<xsl:value-of select="$escapedName" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat(substring($escapedName,1,15),'...')" />
</xsl:otherwise>
</xsl:choose>
</a>
</li>
change it to :
<li class="left_panel_menu_sub">
<a title="{$escapedName}" id="anchor_1" href="javascript:folderdrill('{folder_id/LITERAL}')" class="datalink folder_leftpanel">
<xsl:choose>
<xsl:when test="string-length($escapedName) < 100" >
<xsl:value-of select="$escapedName" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat(substring($escapedName,1,97),'...')" />
</xsl:otherwise>
</xsl:choose>
</a>
</li>
save the file .
4. From USM_HOME\filestore\custom\explorer\request\
Open file catalogsubbrowse.xsl
locate the section
<div class="servicedetails_big_side_1">
<span title="{offering_name/LITERAL}" class="servicename_big_side_1">
<xsl:value-of select="util:ellipsis(offering_name/LITERAL,35)" />
</span>
<span title="{offering_description/LITERAL}" class="servicedescription_big_side_1">
<xsl:value-of select="util:ellipsis(offering_description/LITERAL,100)" />
</span>
</div>
change the line "<xsl:value-of select="util:ellipsis(offering_name/LITERAL,35)" />" above to
<xsl:value-of select="util:ellipsis(offering_name/LITERAL, 85)" />
save the file
5. After you make the changes above for those 3 files , do the following steps to have the changes to take effect :
1 ) stop the 'Service Catalog' service
2 ) clear the browser cache
3 ) clear all the files under USM_HOME\view\translets\ folder
4 ) start the 'Service Catalog' service