How to change the default "no icon" image for Catalog Offerings

Document ID : KB000129441
Last Modified Date : 13/03/2019
Show Technical Document Details
Question:
When you create a new offering service or when deleting a existing icon on a service, you got by default the ugly grey square "X".
It is impossible to get rid of this icon.
How can I modify this?
Answer:

Make customization of below files to achieve above-mentioned behavior

 

1.Catalogbrowse.xsl        (File location - %USM_HOME%\view\webapps\usm\explorer\request)

2.Catalogbrowse_layout8.xsl (File location - %USM_HOME%\view\webapps\usm\explorer\request)

3.Catalogsubbrowse.xsl (File location - %USM_HOME%\view\webapps\usm\explorer\request)

 

Copy all the 3 files to filestore\custom\explorer\request     folder location (with the folder structure)

1.Open Catalogbrowse.xsl file

Search for <div class="fieldlabel_above">     ~ line number 1539 the below line 1540 line you need to modify

From

<xsl:if test="string-length(offering_image_file/LITERAL)&gt;0">

 To

<xsl:if test="string-length(offering_image_file/LITERAL)&gt;0 and not(offering_image_file/LITERAL = 'People/noimage.png')">

 

Save the file

 

2. Open Catalogbrowse_layout8.xsl file

Search for <div class="serviceimage_big_side_1">   ~ line number 226 the below line 228 line you need to modify

From

<xsl:when test="string-length(offering_image_file/LITERAL)&gt;0">

To

<xsl:when test="string-length(offering_image_file/LITERAL)&gt;0 and not(offering_image_file/LITERAL = 'People/noimage.png')">

 

Save the file

3. Open Catalogsubbrowse.xsl file

 

Search for <div class="serviceimage_big_side_1">   ~ line number 318 the below line 320 line you need to modify

From

<xsl:when test="string-length(offering_image_file/LITERAL)&gt;0">

To

<xsl:when test="string-length(offering_image_file/LITERAL)&gt;0 and not(offering_image_file/LITERAL = 'People/noimage.png')">

 

Save the file

 

Steps to follow to reflect the custom changes

  1. Delete all the translets
  2. Restart the Service catalog services
  3. Delete browser cache and verify