更改Google Search Appliance中的结果标题
出于各种原因,我真的希望能够在Google Mini的搜索结果中显示文件名作为结果标题,而不是默认值。我几乎可以通过替换来做到这一点
<!-- *** Result Title (including PDF tag and hyperlink) *** -->
...
<span class="l">
<xsl:choose>
<xsl:when test="T">
<xsl:call-template name="reformat_keyword">
<xsl:with-param name="orig_string" select="T"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise><xsl:value-of select="$stripped_url"/></xsl:otherwise>
</xsl:choose>
</span>
同
<span class="l">
<xsl:value-of select="$stripped_url"/>
</span>
剩下的要求是:
用空格替换%20
修剪网址,只留下结束文件名
从末尾修剪文件扩展名
我怎么能做到这一点?
没有找到相关结果
已邀请:
2 个回复
枫湃揩乾纲
用空格替换%20:
凡夕