How to hide or remove the links in upper right corner of CA Service Catalog page

Document ID : KB000125338
Last Modified Date : 28/01/2019
Show Technical Document Details
Introduction:
IMPORTANT NOTE: Please check the below document, before you start customizing your environment.
Holding a prereq procedure for a best control over your customization.
KB000125335
https://comm.support.ca.com/kb/important-notice-of-prereq-for-customization-on-ca-service-catalog-files/KB000125335
 
Background:
N/A
Environment:
Windows
Instructions:
Please check and work through the below procedure:

Modify the headertable.xsl from %USM_HOME%\view\webapps\usm\explorer.
Below are the general direction on how you may do it.
1a. Copy and drop the the headertable.xsl file from
%USM_HOME%\view\webapps\usm\explorer\headertable.xsl to
%USM_HOME%\filestore\custom\explorer and we will use

1b. Use the %USM_HOME%\filestore\custom\explorer\headertable.xsl file(the copy) for all the steps below.
 
2. Open %USM_HOME%\filestore\custom\explorer\headertable.xsl
 
3. Cut the following line (143):
<xsl:variable name="curRole" select="/xmlRoot/icuser/icgroupname"/>
from the headertable.xsl,
and paste it to the beginning of the file after the line (4):
<xsl:variable name="globalLinksCnt" select="count(/xmlRoot/menu/COLLECTION/usm_launchpad[menu_type='5' and not(display_intree='0')])"/>
 
With that, the variable "curRole" will contain the user role of the current login user.
 
3. Look for the following section within headertable.xsl (starting around line 104):
<xsl:call-template name="globallinks"/>
<xsl:variable name="tooltip" select="'help_tooltip'"/>
<xsl:variable name="loc_title">
<xsl:choose>
<xsl:when
test="$xslincludesshared/menu/*[name()='help']"><xsl:value-of
select="$xslincludesshared/menu/*[name()='help']/."/></xsl:when>
<xsl:otherwise>Help</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="loc_tooltip">
<xsl:if
test="$xslincludesshared/menu/*[name()=$tooltip]"><xsl:value-of
select="$xslincludesshared/menu/*[name()=$tooltip]/."/></xsl:if>
</xsl:variable>
<a class="headerhelp"
 
href="{concat('FileStore/help?ichelpurl=',/xmlRoot/icguinode/ichelpurl)}"
target="_blank">
<xsl:choose>
<xsl:when
test="string-length($loc_tooltip)&gt;0"><xsl:attribute
name="title"><xsl:value-of
select="$loc_tooltip"/></xsl:attribute></xsl:when>
<xsl:otherwise><xsl:attribute name="title"><xsl:value-of
select="$loc_title"/></xsl:attribute></xsl:otherwise>
</xsl:choose>
<xsl:value-of select="$loc_title"/>
</a>
<br> </br>
 
4. Assume that you do not want a Request Manger to see the links, add the following line
<xsl:if test="not($curRole='requestmanager')">
before
<xsl:call-template name="globallinks"/> (line 104)
and the following line
</xsl:if>
after
<br> </br> (line 123)
in headertable.xsl.
 
Note that you can find all the user role string by executing the following SQL statement: 
select role_id from usm_role

5. Save the changes
6. Stop CA Service Catalog
7. Delete the cache from %USM_HOME%\view\translets
8. Restart CA Service Catalog