45 |
45 |
<xsl:key name="mapping" match="//*[local-name()='map']" use="@measurement" />
|
46 |
46 |
|
47 |
47 |
<xsl:template name="annotation">
|
48 |
|
|
|
48 |
<xsl:param name="showAll">true</xsl:param>
|
49 |
49 |
<table align="center" border="0" cellpadding="5" cellspacing="0" width="100%">
|
50 |
|
<tr>
|
51 |
|
<th class="tablehead" colspan="2">
|
52 |
|
Annotation
|
53 |
|
</th>
|
54 |
|
</tr>
|
55 |
50 |
<tr class="subpanel">
|
56 |
|
<th style="text-align: left" colspan="2">Details</th>
|
|
51 |
<th style="text-align: left" colspan="2">Annotation</th>
|
57 |
52 |
</tr>
|
58 |
53 |
<tr class="subpanel">
|
59 |
54 |
<td class="text_plain" colspan="2">
|
... | ... | |
107 |
102 |
</table>
|
108 |
103 |
</td>
|
109 |
104 |
</tr>
|
110 |
|
<tr class="subpanel">
|
111 |
|
<th style="text-align: left">
|
112 |
|
Entity
|
113 |
|
</th>
|
114 |
|
<th style="text-align: left">
|
115 |
|
Measurement
|
116 |
|
</th>
|
|
105 |
|
|
106 |
<xsl:if test="$showAll='true'">
|
|
107 |
|
|
108 |
<tr class="subpanel">
|
|
109 |
<th style="text-align: left">
|
|
110 |
Entity
|
|
111 |
</th>
|
|
112 |
<th style="text-align: left">
|
|
113 |
Measurement
|
|
114 |
</th>
|
|
115 |
</tr>
|
|
116 |
|
|
117 |
<xsl:for-each select="./*[local-name()='observation']">
|
|
118 |
<tr valign="top" class="subpanel">
|
|
119 |
<xsl:attribute name="class">
|
|
120 |
<xsl:choose>
|
|
121 |
<xsl:when test="position() mod 2 = 1">rowodd</xsl:when>
|
|
122 |
<xsl:when test="position() mod 2 = 0">roweven</xsl:when>
|
|
123 |
</xsl:choose>
|
|
124 |
</xsl:attribute>
|
|
125 |
|
|
126 |
<!-- observation entity -->
|
|
127 |
<td class="text_plain">
|
|
128 |
Class: <xsl:value-of select="substring-after(./*[local-name()='entity']/@id, ':')"/>
|
|
129 |
<br/>
|
|
130 |
Ontology: <xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./*[local-name()='entity']/@id, ':'), .)"/>
|
|
131 |
<br />
|
|
132 |
Label: <xsl:value-of select="./@label"/>
|
|
133 |
</td>
|
|
134 |
<!-- measurement -->
|
|
135 |
<td class="text_plain">
|
|
136 |
<xsl:for-each select="./*[local-name()='measurement']">
|
|
137 |
<table>
|
|
138 |
<tr>
|
|
139 |
<td class="text_plain">
|
|
140 |
Column:
|
|
141 |
</td>
|
|
142 |
<td class="text_plain">
|
|
143 |
<xsl:for-each select="key('mapping', @label)">
|
|
144 |
<xsl:value-of select="./@attribute" />
|
|
145 |
</xsl:for-each>
|
|
146 |
</td>
|
|
147 |
<td></td>
|
|
148 |
</tr>
|
|
149 |
<tr>
|
|
150 |
<td class="text_plain">
|
|
151 |
Characteristic[s]:
|
|
152 |
</td>
|
|
153 |
<td class="text_plain">
|
|
154 |
<xsl:for-each select="./*[local-name()='characteristic']">
|
|
155 |
<!--xsl:value-of select="./@id" /-->
|
|
156 |
<xsl:value-of select="substring-after(./@id, ':')"/>
|
|
157 |
</xsl:for-each>
|
|
158 |
</td>
|
|
159 |
<td class="text_plain">
|
|
160 |
<xsl:for-each select="./*[local-name()='characteristic']">
|
|
161 |
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./@id, ':'), .)"/>
|
|
162 |
</xsl:for-each>
|
|
163 |
</td>
|
|
164 |
</tr>
|
|
165 |
<tr>
|
|
166 |
<td class="text_plain">
|
|
167 |
Standard:
|
|
168 |
</td>
|
|
169 |
<td class="text_plain">
|
|
170 |
<!-- xsl:value-of select="./*[local-name()='standard']/@id" /-->
|
|
171 |
<xsl:value-of select="substring-after(./*[local-name()='standard']/@id, ':')"/>
|
|
172 |
</td>
|
|
173 |
<td class="text_plain">
|
|
174 |
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./*[local-name()='standard']/@id, ':'), .)"/>
|
|
175 |
</td>
|
|
176 |
</tr>
|
|
177 |
<tr>
|
|
178 |
<td class="text_plain">
|
|
179 |
Protocol:
|
|
180 |
</td>
|
|
181 |
<td class="text_plain">
|
|
182 |
<!-- xsl:value-of select="./*[local-name()='protocol']/@id" /-->
|
|
183 |
<xsl:value-of select="substring-after(./*[local-name()='protocol']/@id, ':')"/>
|
|
184 |
</td>
|
|
185 |
<td class="text_plain">
|
|
186 |
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./*[local-name()='protocol']/@id, ':'), .)"/>
|
|
187 |
</td>
|
|
188 |
</tr>
|
|
189 |
</table>
|
|
190 |
<hr/>
|
|
191 |
</xsl:for-each>
|
|
192 |
</td>
|
|
193 |
</tr>
|
|
194 |
|
|
195 |
</xsl:for-each>
|
|
196 |
|
|
197 |
</xsl:if>
|
|
198 |
|
|
199 |
<tr class="searchresultsdivider">
|
|
200 |
<td colspan="5">
|
|
201 |
</td>
|
117 |
202 |
</tr>
|
118 |
|
|
119 |
|
<xsl:for-each select="./*[local-name()='observation']">
|
120 |
|
<tr valign="top" class="subpanel">
|
121 |
|
<xsl:attribute name="class">
|
122 |
|
<xsl:choose>
|
123 |
|
<xsl:when test="position() mod 2 = 1">rowodd</xsl:when>
|
124 |
|
<xsl:when test="position() mod 2 = 0">roweven</xsl:when>
|
125 |
|
</xsl:choose>
|
126 |
|
</xsl:attribute>
|
127 |
|
|
128 |
|
<!-- observation entity -->
|
129 |
|
<td class="text_plain">
|
130 |
|
Class: <xsl:value-of select="substring-after(./*[local-name()='entity']/@id, ':')"/>
|
131 |
|
<br/>
|
132 |
|
Ontology: <xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./*[local-name()='entity']/@id, ':'), .)"/>
|
133 |
|
<br />
|
134 |
|
Label: <xsl:value-of select="./@label"/>
|
135 |
|
</td>
|
136 |
|
<!-- measurement -->
|
137 |
|
<td class="text_plain">
|
138 |
|
<xsl:for-each select="./*[local-name()='measurement']">
|
139 |
|
<table>
|
140 |
|
<tr>
|
141 |
|
<td class="text_plain">
|
142 |
|
Column:
|
143 |
|
</td>
|
144 |
|
<td class="text_plain">
|
145 |
|
<xsl:for-each select="key('mapping', @label)">
|
146 |
|
<xsl:value-of select="./@attribute" />
|
147 |
|
</xsl:for-each>
|
148 |
|
</td>
|
149 |
|
<td></td>
|
150 |
|
</tr>
|
151 |
|
<tr>
|
152 |
|
<td class="text_plain">
|
153 |
|
Characteristic[s]:
|
154 |
|
</td>
|
155 |
|
<td class="text_plain">
|
156 |
|
<xsl:for-each select="./*[local-name()='characteristic']">
|
157 |
|
<!--xsl:value-of select="./@id" /-->
|
158 |
|
<xsl:value-of select="substring-after(./@id, ':')"/>
|
159 |
|
</xsl:for-each>
|
160 |
|
</td>
|
161 |
|
<td class="text_plain">
|
162 |
|
<xsl:for-each select="./*[local-name()='characteristic']">
|
163 |
|
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./@id, ':'), .)"/>
|
164 |
|
</xsl:for-each>
|
165 |
|
</td>
|
166 |
|
</tr>
|
167 |
|
<tr>
|
168 |
|
<td class="text_plain">
|
169 |
|
Standard:
|
170 |
|
</td>
|
171 |
|
<td class="text_plain">
|
172 |
|
<!-- xsl:value-of select="./*[local-name()='standard']/@id" /-->
|
173 |
|
<xsl:value-of select="substring-after(./*[local-name()='standard']/@id, ':')"/>
|
174 |
|
</td>
|
175 |
|
<td class="text_plain">
|
176 |
|
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./*[local-name()='standard']/@id, ':'), .)"/>
|
177 |
|
</td>
|
178 |
|
</tr>
|
179 |
|
<tr>
|
180 |
|
<td class="text_plain">
|
181 |
|
Protocol:
|
182 |
|
</td>
|
183 |
|
<td class="text_plain">
|
184 |
|
<!-- xsl:value-of select="./*[local-name()='protocol']/@id" /-->
|
185 |
|
<xsl:value-of select="substring-after(./*[local-name()='protocol']/@id, ':')"/>
|
186 |
|
</td>
|
187 |
|
<td class="text_plain">
|
188 |
|
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./*[local-name()='protocol']/@id, ':'), .)"/>
|
189 |
|
</td>
|
190 |
|
</tr>
|
191 |
|
</table>
|
192 |
|
<hr/>
|
193 |
|
</xsl:for-each>
|
194 |
|
</td>
|
195 |
|
|
196 |
|
</tr>
|
197 |
|
<tr class="searchresultsdivider">
|
198 |
|
<td colspan="5">
|
199 |
|
</td>
|
200 |
|
</tr>
|
201 |
|
|
202 |
|
</xsl:for-each>
|
|
203 |
|
203 |
204 |
</table>
|
204 |
205 |
</xsl:template>
|
205 |
206 |
|
only show that an annotation exists in the resultset, not the full details