/dev/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/dev/trunk

« back to all changes in this revision

Viewing changes to xslt/search.xsl

  • Committer: Suren A. Chilingaryan
  • Date: 2010-08-13 14:18:27 UTC
  • Revision ID: csa@dside.dyndns.org-20100813141827-u3o97425ppvd5g7y
Revert back to SetConfiguration from SetCustomProperties while handling certain property in search; trully support HTML content in description field within search results; support execution in XMLModule; support for setup-specific javascript code; KATRIN update

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3
3
 <xsl:output method="html" encoding="utf-8"/>
4
4
 
5
 
 <xsl:template match="Value">
6
 
    <xsl:element name="a">
7
 
        <xsl:attribute name="href">
8
 
            javascript:adei.SetCustomProperties('<xsl:value-of select="@props"/>')
9
 
        </xsl:attribute>
10
 
        <xsl:value-of select="@title"/>
11
 
    </xsl:element>
12
 
 
13
 
    <xsl:if test="description">
14
 
        <div><xsl:value-of select="description"/></div>
15
 
    </xsl:if>
16
 
    <br/><br/>
17
 
 </xsl:template>
18
 
 
19
5
 <xsl:template name="content">
20
6
    <xsl:copy>
21
7
        <xsl:for-each select="@*|node()">
24
10
    </xsl:copy>
25
11
 </xsl:template>
26
12
 
27
 
 <xsl:template match="Content">
 
13
 <xsl:template match="Content|description">
28
14
    <xsl:for-each select="@*|node()">
29
15
        <xsl:call-template name="content"/>
30
16
    </xsl:for-each>
31
17
 </xsl:template>
32
 
 
 
18
 
 
19
 <xsl:template match="Value">
 
20
    <xsl:element name="a">
 
21
        <xsl:attribute name="href">
 
22
            javascript:adei.SetConfiguration('<xsl:value-of select="@props"/>')
 
23
        </xsl:attribute>
 
24
        <xsl:value-of select="@title"/>
 
25
    </xsl:element>
 
26
 
 
27
    <xsl:if test="description">
 
28
        <div><xsl:apply-templates select="description"/></div>
 
29
    </xsl:if>
 
30
    <br/>
 
31
 </xsl:template>
 
32
 
33
33
 <xsl:template match="module">
34
34
    <div>
35
35
        <xsl:if test="@title">
79
79
      <xsl:if test="count(//Value)=1">
80
80
        <xsl:if test="//Value[@certain]">
81
81
            <script type="text/javascript">
82
 
                adei.SetCustomProperties(htmlEntityDecode('<xsl:value-of select="//Value/@props"/>'));
 
82
                adei.SetConfiguration(htmlEntityDecode('<xsl:value-of select="//Value/@props"/>'));
83
83
            </script>
84
84
        </xsl:if>
85
85
      </xsl:if>