How to: |
By default, Magnify includes the date in which a record was indexed in the datetime field of the index. If date information was provided for each record during the feed process, the value is stored in the datetime field of the index. Once the date and time information is available in the index, the Magnify style sheet can be modified to display the date information for each search result and change the date format, if necessary. The date information is displayed by default.
<xsl:variable name="show_crawldate">0</xsl:variable>
<xsl:variable name="show_crawldate">1</xsl:variable>
The next time a search is performed, the date information is displayed in the search results:
<xsl:if test="$show_crawldate !='0'"> <xsl:value-of select="$html_text_date" disable-output-escaping="yes"/> <xsl:variable name="datestr" select="MT[@N='date']/@V"/> <xsl:value-of disable-output-escaping='yes' select='substring ($datestr,1,10)'/> <!-- <xsl:value-of disable-output-escaping='yes' select='$datestr'/>--> </xsl:if>
<!--<xsl:value-of disable-output-escaping='yes' select='substring($datestr,1,10)'/>-->
<xsl:value-of disable-output-escaping='yes' select='$datestr'/>
WebFOCUS |