Revision 5591
Added by ben leinfelder about 14 years ago
annotation-root.xsl | ||
---|---|---|
47 | 47 |
<xsl:template name="annotation"> |
48 | 48 |
<xsl:param name="showAll">true</xsl:param> |
49 | 49 |
|
50 |
<table align="center" border="0" cellpadding="5" cellspacing="0" width="100%" class="subGroup">
|
|
51 |
<tr class="subpanel">
|
|
52 |
<td class="text_plain" colspan="2">
|
|
50 |
<table align="center" border="0" cellpadding="0" cellspacing="10" width="100%" class="subGroup">
|
|
51 |
<tr>
|
|
52 |
<td> |
|
53 | 53 |
<table class="subGroup subGroup_border"> |
54 | 54 |
<tr> |
55 | 55 |
<td class="text_plain"> |
56 |
Annotation ID: |
|
57 |
</td> |
|
58 |
<td class="text_plain"> |
|
59 |
<xsl:value-of select="./@id"/> |
|
60 |
</td> |
|
61 |
<td class="text_plain"> |
|
62 | 56 |
<a> |
63 | 57 |
<xsl:attribute name="href"> |
64 | 58 |
<xsl:value-of select="$tripleURI"/><xsl:value-of select="./@id"/></xsl:attribute> |
65 |
View Annotation
|
|
59 |
<xsl:text>» </xsl:text>Annotation
|
|
66 | 60 |
</a> |
67 |
</td> |
|
61 |
</td> |
|
62 |
<td class="text_plain"> |
|
63 |
<pre class="inline"><xsl:value-of select="./@id"/></pre> |
|
64 |
</td> |
|
68 | 65 |
</tr> |
69 | 66 |
<tr> |
70 | 67 |
<td class="text_plain"> |
71 |
Data Package: |
|
72 |
</td> |
|
73 |
<td class="text_plain"> |
|
74 |
<xsl:value-of select="./@emlPackage"/> |
|
75 |
</td> |
|
76 |
<td class="text_plain"> |
|
77 | 68 |
<a> |
78 | 69 |
<xsl:attribute name="href"> |
79 | 70 |
<xsl:value-of select="$tripleURI"/><xsl:value-of select="./@emlPackage"/></xsl:attribute> |
80 |
View Data Package
|
|
71 |
<xsl:text>» </xsl:text>Data Package
|
|
81 | 72 |
</a> |
82 | 73 |
</td> |
74 |
<td class="text_plain"> |
|
75 |
<pre class="inline"><xsl:value-of select="./@emlPackage"/></pre> |
|
76 |
</td> |
|
83 | 77 |
</tr> |
84 | 78 |
<tr> |
85 | 79 |
<td class="text_plain"> |
86 |
Data Table: |
|
87 |
</td> |
|
88 |
<td class="text_plain"> |
|
89 |
<xsl:value-of select="./@dataTable"/> |
|
90 |
</td> |
|
91 |
<td class="text_plain"> |
|
92 | 80 |
<a> |
93 | 81 |
<xsl:attribute name="href"> |
94 | 82 |
<xsl:value-of select="$tripleURI"/><xsl:value-of select="./@emlPackage"/>&displaymodule=entity&entitytype=dataTable&entityindex=<xsl:value-of select="number(./@dataTable)+1"/> |
95 | 83 |
</xsl:attribute> |
96 |
View Data Table Metadata
|
|
84 |
<xsl:text>» </xsl:text>Data Table
|
|
97 | 85 |
</a> |
98 | 86 |
</td> |
87 |
<td class="text_plain"> |
|
88 |
<pre class="inline"><xsl:value-of select="./@dataTable"/></pre> |
|
89 |
</td> |
|
99 | 90 |
</tr> |
100 | 91 |
</table> |
101 | 92 |
</td> |
102 | 93 |
</tr> |
103 | 94 |
|
104 | 95 |
<xsl:if test="$showAll='true'"> |
105 |
|
|
106 |
<tr class="subpanel"> |
|
107 |
<td class="text_plain" colspan="2"> |
|
108 |
<table class="subGroup subGroup_border"> |
|
109 |
<tr class="subpanel"> |
|
110 |
<th style="text-align: left"> |
|
111 |
Entity |
|
112 |
</th> |
|
113 |
<th style="text-align: left"> |
|
114 |
Measurement |
|
115 |
</th> |
|
116 |
</tr> |
|
117 |
|
|
118 |
<xsl:for-each select="./*[local-name()='observation']"> |
|
119 |
<tr valign="top" class="subpanel"> |
|
96 |
<xsl:for-each select="./*[local-name()='observation']"> |
|
97 |
<tr> |
|
98 |
<td class="text_plain" colspan="2"> |
|
99 |
<table class="subGroup subGroup_border"> |
|
100 |
<tr> |
|
101 |
<th style="text-align: left"> |
|
102 |
Observation |
|
103 |
</th> |
|
104 |
<th style="text-align: left"> |
|
105 |
Measurement |
|
106 |
</th> |
|
107 |
</tr> |
|
108 |
<tr valign="top"> |
|
120 | 109 |
<xsl:attribute name="class"> |
121 | 110 |
<xsl:choose> |
122 | 111 |
<xsl:when test="position() mod 2 = 1">rowodd</xsl:when> |
... | ... | |
135 | 124 |
<!-- measurement --> |
136 | 125 |
<td class="text_plain"> |
137 | 126 |
<xsl:for-each select="./*[local-name()='measurement']"> |
138 |
<table> |
|
127 |
<table class="subGroup subGroup_border">
|
|
139 | 128 |
<tr> |
140 | 129 |
<td class="text_plain"> |
141 | 130 |
Column: |
... | ... | |
188 | 177 |
</td> |
189 | 178 |
</tr> |
190 | 179 |
</table> |
191 |
<hr/> |
|
192 |
</xsl:for-each> |
|
180 |
</xsl:for-each> <!-- measurement --> |
|
193 | 181 |
</td> |
194 | 182 |
</tr> |
195 |
</xsl:for-each>
|
|
196 |
</table>
|
|
197 |
</td>
|
|
198 |
</tr>
|
|
183 |
</table>
|
|
184 |
</td>
|
|
185 |
</tr>
|
|
186 |
</xsl:for-each><!-- observation -->
|
|
199 | 187 |
</xsl:if> |
200 | 188 |
|
201 | 189 |
<tr class="searchresultsdivider"> |
Also available in: Unified diff
nest annotation groupings nicely for each obs/meas