How to hide or remove the links in upper right corner of CA Service Catalog page
book
Article ID: 125338
calendar_today
Updated On:
Products
CA Service CatalogCA Service Management - Asset Portfolio ManagementCA Service Management - Service Desk Manager
Issue/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
N/A
Environment
Windows
Resolution
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"
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