comparison gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl @ 1008:1b42a86184f6

Removed the changes of rev1206 and 1214. gnv/trunk@1222 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 25 Jun 2010 08:11:39 +0000
parents a0d16ccb82ba
children
comparison
equal deleted inserted replaced
1007:de9a0b16e99f 1008:1b42a86184f6
9 <xsl:output 9 <xsl:output
10 method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="no" /> 10 method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="no" />
11 11
12 <xsl:param name="example-linestring"/> 12 <xsl:param name="example-linestring"/>
13 <xsl:param name="example-polygon"/> 13 <xsl:param name="example-polygon"/>
14 <xsl:param name="uuid"/>
15 <xsl:param name="next-url">/gnv/next.do</xsl:param>
16 <xsl:param name="further">false</xsl:param>
17 <xsl:param name="exception"/>
18 <xsl:param name="gnviewer-select-button-src">./images/auswaehlen.png</xsl:param>
19 14
20 <xsl:template match="art:ui"> 15 <!-- single select -->
21 <xsl:if test="$further = 'true'"> 16 <xsl:template match="xform:select1">
22 <div id="timeseriesfilter"> 17 <xsl:variable name="selectName" select="@ref"/>
23 <form id="fisSelectionForm" 18 <legend><xsl:value-of select="xform:label"/></legend>
24 onsubmit="displayOverlay()" 19 <select name="{$selectName}">
25 action="{$next-url}" 20 <xsl:apply-templates />
26 method="post"> 21 </select>
27 <fieldset>
28 <xsl:if test="$exception != ''">
29 <div class="inputException"><xsl:value-of select="$exception"/></div>
30 </xsl:if>
31 <input type="hidden" name="artifact-uuid" value="{$uuid}"/>
32 <xsl:apply-templates select="art:dynamic"/>
33 <xsl:variable name="item-count" select="count(art:dynamic//xform:select1//xform:item)"/>
34 <xsl:if test="$item-count = 0 or $item-count &gt; 5">
35 <br/>
36 <input style="margin-top: 5px;" type="image" src="{$gnviewer-select-button-src}"/>
37 </xsl:if>
38 </fieldset>
39 </form>
40 </div>
41 </xsl:if>
42 </xsl:template> 22 </xsl:template>
43 23
44 <!-- single select -->
45 <xsl:template match="xform:select1" >
46 <xsl:variable name="selectName" select="@ref"/>
47 <xsl:variable name="items" select="count(.//xform:item)"/>
48 <legend><xsl:value-of select="xform:label"/></legend>
49 <xsl:choose>
50 <xsl:when test="$items &lt; 6">
51 <ul><xsl:apply-templates mode="direct-link"/></ul>
52 </xsl:when>
53 <xsl:otherwise>
54 <select name="{$selectName}">
55 <xsl:apply-templates />
56 </select>
57 </xsl:otherwise>
58 </xsl:choose>
59 </xsl:template>
60
61 <xsl:template match="text()" mode="direct-link"/>
62
63 <!-- options for select: direct-link -->
64 <xsl:template match="xform:item" mode="direct-link">
65 <xsl:variable name="optionValue" select="xform:value"/>
66 <xsl:variable name="selectName" select="ancestor::xform:select1/@ref"/>
67 <li><a onclick="displayOverlay()"
68 href="{$next-url}?{$selectName}={$optionValue}"><xsl:value-of select="xform:label"/></a></li>
69 </xsl:template>
70 24
71 <!-- multi select --> 25 <!-- multi select -->
72 <xsl:template match="xform:select"> 26 <xsl:template match="xform:select">
73 <xsl:variable name="selectName" select="@ref"/> 27 <xsl:variable name="selectName" select="@ref"/>
74 <xsl:variable name="items" select="count(.//xform:item)"/> 28 <xsl:variable name="items" select="count(//xform:item)"/>
75 <legend> 29 <legend>
76 <xsl:value-of select="xform:label"/> 30 <xsl:value-of select="xform:label"/>
77 </legend> 31 </legend>
78 32
79 <xsl:choose> 33 <xsl:choose>

http://dive4elements.wald.intevation.org