Files
ningbo/动易的标签库/标签库/视频类/视频关键字段拆分至搜索页.config
T
2026-08-31 16:22:00 +08:00

62 lines
2.3 KiB
XML

<?xml version="1.0"?>
<root>
<LabelType>视频类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>dataSource</name>
<datatype>string</datatype>
<default>
</default>
<intro>需要拆解的导演名</intro>
</attributes>
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
<xsl:output method="html" indent="yes"/>
<xsl:param name="dataSource"/>
<xsl:param name="fieldOption"/>
<xsl:template match="/">
<xsl:call-template name="splitStr">
<xsl:with-param name="srcStr" select="$dataSource"/>
</xsl:call-template>
</xsl:template>
<xsl:template name="splitStr">
<xsl:param name="srcStr"/>
<xsl:choose>
<xsl:when test="contains($srcStr,'|')">
<a href="{pe:InstallDir()}search.aspx?searchtype=1&amp;ModelId=23&amp;nodeId=9&amp;Keyword={pe:UrlEncode(substring-before($srcStr,'|'))}&amp;fieldOption={$fieldOption}">
<xsl:value-of select="substring-before($srcStr,'|')"/>
</a>
<xsl:variable name="dstStr" select="substring-after($srcStr,'|')" />
<xsl:choose>
<xsl:when test="contains($srcStr,'|')">
<xsl:call-template name="splitStr">
<xsl:with-param name="srcStr" select="$dstStr"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<a href="{pe:InstallDir()}search.aspx?searchtype=1&amp;ModelId=23&amp;nodeId=9&amp;Keyword={pe:UrlEncode($dstStr)}&amp;fieldOption={$fieldOption}">
<xsl:value-of select="$dstStr"/>
</a>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<a href="{pe:InstallDir()}search.aspx?searchtype=1&amp;ModelId=23&amp;nodeId=9&amp;Keyword={pe:UrlEncode($srcStr)}&amp;fieldOption={$fieldOption}">
<xsl:value-of select="$srcStr"/>
</a>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>fieldOption</name>
<datatype>string</datatype>
<default>
</default>
<intro>选项类型</intro>
</attributes>
</root>