How to: |
The Magnify interface can be customized to have a specific look and feel. The included style sheet is set up to be shared by more than one configuration. For this reason, there are multiple If, Then, and Else statements throughout the style sheet that use the value set to the root style sheet variable in order to make decisions on how to behave when a specific configuration is requested. For more information on setting the root style sheet variable, see How to Create a Customized Style Sheet.
Note: After viewing changes, you can refresh the Magnify session with a URL request or by restarting the application server.
For more information, see How to View the Changes.
This procedure illustrates how to identify sections of the style sheet that control aspects of the interface based on the root style sheet in the included_stylesheet.xslt file.
The first section found should be in the fullsnippetcontent variable:
<xsl:variable name="fullsnippetcontent" >
Note: When the fullsnippetcontent variable is set to true, an additional link will appear as View Full Document.
<xsl:when test="$rootstylesheet = 'century'">true</xsl:when>
<xsl:when test="$rootstylesheet = 'myexample'">true</xsl:when>
For information on how to see the result of setting the fullsnippetcontent variable to true for the customized stylesheet, see How to View the Changes. The default URL is:
http://localhost:8080/ibi_apps/search
Note: Sample or default URLs are for informational purposes only and may not resolve correctly, if at all.
The View Full Document link is added to the results, as shown in the following image.
Note:
You can modify the logo that appears on the Magnify search page and create your own home page by editing the default included_stylesheet.xslt file in the \ibi\WebFOCUS81\config\magnify folder. This procedure enables you to use a custom logo on Magnify search pages that use your customized root style sheet.
<xsl:variable name="logo_url" >
<xsl:when test="$rootstylesheet = 'default'"> images/search/magnify/logo.png </xsl:when>
<xsl:when test="$rootstylesheet = 'myexample'">
images/search/magnify/logo.png
</xsl:when>
<xsl:when test="$rootstylesheet = 'myexample'">
images/search/magnify/myexamplelogo.png</xsl:when>
Note: If you do not have a custom image, you can use the default logo.png.
For information on locating and changing the Magnify logo, see the Magnify Security and Administration manual.
This procedure enables you to customize the look of the Magnify home page.
<xsl:call-template name="customhomepage"/>
<xsl:if test="$rootstylesheet = 'century'"> <xsl:if test="/GSP/Q = ''"> <xsl:call-template name="customhomepage"/> </xsl:if> </xsl:if>
<xsl:if test="$rootstylesheet = 'myexample'"> <xsl:if test="/GSP/Q = ''"> <xsl:call-template name="myexamplecustomhomepage"/> </xsl:if> </xsl:if>
<xsl:template name="customhomepage">
<xsl:template name="myexamplecustomhomepage">
.
.
.
</xsl:template>
<p><strong>To Search Century Electronics
<p><strong>To Search My Example Electronics
WebFOCUS |