Revision 5728
Added by ben leinfelder almost 14 years ago
lib/style/skins/semtools/annotation-root.xsl | ||
---|---|---|
51 | 51 |
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="subGroup"> |
52 | 52 |
<tr> |
53 | 53 |
<td> |
54 |
|
|
55 |
<table class="subGroup subGroup_border"> |
|
56 |
<tr> |
|
57 |
<th colspan="2"> |
|
58 |
Details |
|
59 |
</th> |
|
60 |
</tr> |
|
61 |
<tr> |
|
62 |
<td class="rowodd"> |
|
63 |
Annotation: |
|
64 |
</td> |
|
65 |
<td class="roweven"> |
|
66 |
<a> |
|
67 |
<xsl:attribute name="href"> |
|
68 |
<xsl:value-of select="$tripleURI"/><xsl:value-of select="./@id"/> |
|
69 |
</xsl:attribute> |
|
70 |
<xsl:value-of select="./@id"/> |
|
71 |
</a> |
|
72 |
|
|
73 |
<!-- stats --> |
|
74 |
<span id="annotationStats"></span> |
|
75 |
<script language="JavaScript"> |
|
76 |
loadStats( |
|
77 |
'annotationStats', |
|
78 |
'<xsl:value-of select="./@id" />', |
|
79 |
'<xsl:value-of select="$contextURL" />/metacat', |
|
80 |
'<xsl:value-of select="$qformat" />'); |
|
81 |
</script> |
|
82 |
|
|
83 |
</td> |
|
84 |
</tr> |
|
85 |
<tr> |
|
86 |
<td class="rowodd"> |
|
87 |
Data Package: |
|
88 |
</td> |
|
89 |
<td class="roweven"> |
|
90 |
<a> |
|
91 |
<xsl:attribute name="href"> |
|
92 |
<xsl:value-of select="$tripleURI"/><xsl:value-of select="./@emlPackage"/> |
|
93 |
</xsl:attribute> |
|
94 |
<xsl:value-of select="./@emlPackage"/> |
|
95 |
</a> |
|
96 |
|
|
97 |
<!-- stats --> |
|
98 |
<span id="emlStats"></span> |
|
99 |
<script language="JavaScript"> |
|
100 |
loadStats( |
|
101 |
'emlStats', |
|
102 |
'<xsl:value-of select="./@emlPackage" />', |
|
103 |
'<xsl:value-of select="$contextURL" />/metacat', |
|
104 |
'<xsl:value-of select="$qformat" />'); |
|
105 |
</script> |
|
106 |
|
|
107 |
</td> |
|
108 |
</tr> |
|
109 |
<tr> |
|
110 |
<td class="rowodd"> |
|
111 |
Data Table: |
|
112 |
</td> |
|
113 |
<td class="roweven"> |
|
114 |
<a> |
|
115 |
<xsl:attribute name="href"> |
|
116 |
<xsl:value-of select="$tripleURI"/><xsl:value-of select="./@emlPackage"/>&displaymodule=entity&entitytype=dataTable&entityindex=<xsl:value-of select="number(./@dataTable)+1"/>&annotationId=<xsl:value-of select="./@id"/> |
|
117 |
</xsl:attribute> |
|
118 |
<xsl:value-of select="./@dataTable"/> |
|
119 |
</a> |
|
120 |
</td> |
|
121 |
</tr> |
|
122 |
</table> |
|
54 |
<!-- annotation summary --> |
|
55 |
<xsl:call-template name="annotationSummary" /> |
|
123 | 56 |
</td> |
124 | 57 |
</tr> |
125 | 58 |
|
... | ... | |
134 | 67 |
</th> |
135 | 68 |
</tr> |
136 | 69 |
<tr valign="top"> |
137 |
<!-- observation entity --> |
|
138 | 70 |
<td> |
139 |
<table> |
|
140 |
<tr> |
|
141 |
<td class="rowodd"> |
|
142 |
Class: |
|
143 |
</td> |
|
144 |
<td class="roweven"> |
|
145 |
<p> |
|
146 |
<xsl:attribute name="title"> |
|
147 |
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./*[local-name()='entity']/@id, ':'), .)"/> |
|
148 |
<xsl:text>#</xsl:text> |
|
149 |
<xsl:value-of select="substring-after(./*[local-name()='entity']/@id, ':')"/> |
|
150 |
</xsl:attribute> |
|
151 |
<xsl:value-of select="substring-after(./*[local-name()='entity']/@id, ':')"/> |
|
152 |
</p> |
|
153 |
</td> |
|
154 |
</tr> |
|
155 |
|
|
156 |
<tr> |
|
157 |
<td class="rowodd"> |
|
158 |
Ontology: |
|
159 |
</td> |
|
160 |
<td class="roweven"> |
|
161 |
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./*[local-name()='entity']/@id, ':'), .)"/> |
|
162 |
</td> |
|
163 |
</tr> |
|
164 |
|
|
165 |
<tr> |
|
166 |
<td class="rowodd"> |
|
167 |
Label: |
|
168 |
</td> |
|
169 |
<td class="roweven"> |
|
170 |
<xsl:value-of select="./@label"/> |
|
171 |
</td> |
|
172 |
</tr> |
|
173 |
</table> |
|
71 |
<!-- observation entity --> |
|
72 |
<xsl:call-template name="observation" /> |
|
174 | 73 |
</td> |
175 | 74 |
</tr> |
176 | 75 |
<tr> |
... | ... | |
179 | 78 |
<tr> |
180 | 79 |
<!-- measurement --> |
181 | 80 |
<xsl:for-each select="./*[local-name()='measurement']"> |
182 |
<xsl:call-template name="measurement" /> |
|
81 |
<td> |
|
82 |
<xsl:call-template name="measurement" /> |
|
83 |
</td> |
|
183 | 84 |
</xsl:for-each> |
184 |
<!-- measurement --> |
|
185 | 85 |
</tr> |
186 | 86 |
</table> |
187 | 87 |
</td> |
... | ... | |
189 | 89 |
</table> |
190 | 90 |
</td> |
191 | 91 |
</tr> |
192 |
</xsl:for-each><!-- observation --> |
|
193 |
</xsl:if> |
|
92 |
</xsl:for-each><!-- end observation -->
|
|
93 |
</xsl:if><!--end show all-->
|
|
194 | 94 |
|
195 | 95 |
<tr class="searchresultsdivider"> |
196 | 96 |
<td></td> |
... | ... | |
199 | 99 |
|
200 | 100 |
</xsl:template> |
201 | 101 |
|
102 |
<xsl:template name="annotationSummary"> |
|
103 |
<table class="subGroup subGroup_border"> |
|
104 |
<tr> |
|
105 |
<th colspan="2"> |
|
106 |
Details |
|
107 |
</th> |
|
108 |
</tr> |
|
109 |
<tr> |
|
110 |
<td class="rowodd"> |
|
111 |
Annotation: |
|
112 |
</td> |
|
113 |
<td class="roweven"> |
|
114 |
<a> |
|
115 |
<xsl:attribute name="href"> |
|
116 |
<xsl:value-of select="$tripleURI"/><xsl:value-of select="./@id"/> |
|
117 |
</xsl:attribute> |
|
118 |
<xsl:value-of select="./@id"/> |
|
119 |
</a> |
|
120 |
|
|
121 |
<!-- stats --> |
|
122 |
<span id="annotationStats"></span> |
|
123 |
<script language="JavaScript"> |
|
124 |
loadStats( |
|
125 |
'annotationStats', |
|
126 |
'<xsl:value-of select="./@id" />', |
|
127 |
'<xsl:value-of select="$contextURL" />/metacat', |
|
128 |
'<xsl:value-of select="$qformat" />'); |
|
129 |
</script> |
|
130 |
|
|
131 |
</td> |
|
132 |
</tr> |
|
133 |
<tr> |
|
134 |
<td class="rowodd"> |
|
135 |
Data Package: |
|
136 |
</td> |
|
137 |
<td class="roweven"> |
|
138 |
<a> |
|
139 |
<xsl:attribute name="href"> |
|
140 |
<xsl:value-of select="$tripleURI"/><xsl:value-of select="./@emlPackage"/> |
|
141 |
</xsl:attribute> |
|
142 |
<xsl:value-of select="./@emlPackage"/> |
|
143 |
</a> |
|
144 |
|
|
145 |
<!-- stats --> |
|
146 |
<span id="emlStats"></span> |
|
147 |
<script language="JavaScript"> |
|
148 |
loadStats( |
|
149 |
'emlStats', |
|
150 |
'<xsl:value-of select="./@emlPackage" />', |
|
151 |
'<xsl:value-of select="$contextURL" />/metacat', |
|
152 |
'<xsl:value-of select="$qformat" />'); |
|
153 |
</script> |
|
154 |
|
|
155 |
</td> |
|
156 |
</tr> |
|
157 |
<tr> |
|
158 |
<td class="rowodd"> |
|
159 |
Data Table: |
|
160 |
</td> |
|
161 |
<td class="roweven"> |
|
162 |
<a> |
|
163 |
<xsl:attribute name="href"> |
|
164 |
<xsl:value-of select="$tripleURI"/><xsl:value-of select="./@emlPackage"/>&displaymodule=entity&entitytype=dataTable&entityindex=<xsl:value-of select="number(./@dataTable)+1"/>&annotationId=<xsl:value-of select="./@id"/> |
|
165 |
</xsl:attribute> |
|
166 |
<xsl:value-of select="./@dataTable"/> |
|
167 |
</a> |
|
168 |
</td> |
|
169 |
</tr> |
|
170 |
</table> |
|
171 |
</xsl:template> |
|
172 |
|
|
173 |
<xsl:template name="observation"> |
|
174 |
<table> |
|
175 |
<tr> |
|
176 |
<td class="rowodd"> |
|
177 |
Class: |
|
178 |
</td> |
|
179 |
<td class="roweven"> |
|
180 |
<p> |
|
181 |
<xsl:attribute name="title"> |
|
182 |
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./*[local-name()='entity']/@id, ':'), .)"/> |
|
183 |
<xsl:text>#</xsl:text> |
|
184 |
<xsl:value-of select="substring-after(./*[local-name()='entity']/@id, ':')"/> |
|
185 |
</xsl:attribute> |
|
186 |
<xsl:value-of select="substring-after(./*[local-name()='entity']/@id, ':')"/> |
|
187 |
</p> |
|
188 |
</td> |
|
189 |
</tr> |
|
190 |
|
|
191 |
<tr> |
|
192 |
<td class="rowodd"> |
|
193 |
Ontology: |
|
194 |
</td> |
|
195 |
<td class="roweven"> |
|
196 |
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./*[local-name()='entity']/@id, ':'), .)"/> |
|
197 |
</td> |
|
198 |
</tr> |
|
199 |
|
|
200 |
<tr> |
|
201 |
<td class="rowodd"> |
|
202 |
Label: |
|
203 |
</td> |
|
204 |
<td class="roweven"> |
|
205 |
<xsl:value-of select="./@label"/> |
|
206 |
</td> |
|
207 |
</tr> |
|
208 |
</table> |
|
209 |
|
|
210 |
</xsl:template> |
|
211 |
|
|
202 | 212 |
<xsl:template name="measurement"> |
203 | 213 |
<!-- measurement --> |
204 |
<td class="text_plain"> |
|
205 |
<table class="subGroup subGroup_border"> |
|
206 |
<tr> |
|
207 |
<th colspan="3"> |
|
208 |
Measurement (<xsl:value-of select="./@label" />) |
|
209 |
</th> |
|
210 |
</tr> |
|
211 |
<tr> |
|
212 |
<td class="rowodd"> |
|
213 |
Column: |
|
214 |
</td> |
|
215 |
<td class="roweven"> |
|
216 |
<xsl:variable name="columnkey"> |
|
217 |
<xsl:value-of select="concat(../../@id, @label)" /> |
|
218 |
</xsl:variable> |
|
219 |
<xsl:for-each select="key('mapping', $columnkey )"> |
|
220 |
<xsl:value-of select="./@attribute" /> |
|
221 |
</xsl:for-each> |
|
222 |
</td> |
|
223 |
<td class="roweven"></td> |
|
224 |
</tr> |
|
225 |
<tr> |
|
226 |
<td class="rowodd"> |
|
227 |
Characteristic[s]: |
|
228 |
</td> |
|
229 |
<td class="roweven"> |
|
230 |
<xsl:for-each select="./*[local-name()='characteristic']"> |
|
231 |
<span> |
|
232 |
<xsl:attribute name="title"> |
|
233 |
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./@id, ':'), .)"/> |
|
234 |
<xsl:text>#</xsl:text> |
|
235 |
<xsl:value-of select="substring-after(./@id, ':')"/> |
|
236 |
</xsl:attribute> |
|
237 |
<xsl:value-of select="substring-after(./@id, ':')"/> |
|
238 |
</span> |
|
239 |
</xsl:for-each> |
|
240 |
</td> |
|
241 |
</tr> |
|
242 |
<tr> |
|
243 |
<td class="rowodd"> |
|
244 |
Standard: |
|
245 |
</td> |
|
246 |
<td class="roweven"> |
|
214 |
<table class="subGroup subGroup_border"> |
|
215 |
<tr> |
|
216 |
<th colspan="3"> |
|
217 |
Measurement (<xsl:value-of select="./@label" />) |
|
218 |
</th> |
|
219 |
</tr> |
|
220 |
<tr> |
|
221 |
<td class="rowodd"> |
|
222 |
Column: |
|
223 |
</td> |
|
224 |
<td class="roweven"> |
|
225 |
<xsl:variable name="columnkey"> |
|
226 |
<xsl:value-of select="concat(../../@id, @label)" /> |
|
227 |
</xsl:variable> |
|
228 |
<xsl:for-each select="key('mapping', $columnkey )"> |
|
229 |
<xsl:value-of select="./@attribute" /> |
|
230 |
</xsl:for-each> |
|
231 |
</td> |
|
232 |
<td class="roweven"></td> |
|
233 |
</tr> |
|
234 |
<tr> |
|
235 |
<td class="rowodd"> |
|
236 |
Characteristic[s]: |
|
237 |
</td> |
|
238 |
<td class="roweven"> |
|
239 |
<xsl:for-each select="./*[local-name()='characteristic']"> |
|
247 | 240 |
<span> |
248 | 241 |
<xsl:attribute name="title"> |
249 |
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./*[local-name()='standard']/@id, ':'), .)"/>
|
|
242 |
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./@id, ':'), .)"/> |
|
250 | 243 |
<xsl:text>#</xsl:text> |
251 |
<xsl:value-of select="substring-after(./*[local-name()='standard']/@id, ':')"/> |
|
252 |
</xsl:attribute> |
|
253 |
<xsl:value-of select="substring-after(./*[local-name()='standard']/@id, ':')"/> |
|
254 |
</span> |
|
255 |
</td> |
|
256 |
</tr> |
|
257 |
<tr> |
|
258 |
<td class="rowodd"> |
|
259 |
Protocol: |
|
260 |
</td> |
|
261 |
<td class="roweven"> |
|
262 |
<span> |
|
263 |
<xsl:attribute name="title"> |
|
264 |
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./*[local-name()='protocol']/@id, ':'), .)"/> |
|
265 |
<xsl:text>#</xsl:text> |
|
266 |
<xsl:value-of select="substring-after(./*[local-name()='protocol']/@id, ':')"/> |
|
267 |
</xsl:attribute> |
|
244 |
<xsl:value-of select="substring-after(./@id, ':')"/> |
|
245 |
</xsl:attribute> |
|
246 |
<xsl:value-of select="substring-after(./@id, ':')"/> |
|
247 |
</span> |
|
248 |
</xsl:for-each> |
|
249 |
</td> |
|
250 |
</tr> |
|
251 |
<tr> |
|
252 |
<td class="rowodd"> |
|
253 |
Standard: |
|
254 |
</td> |
|
255 |
<td class="roweven"> |
|
256 |
<span> |
|
257 |
<xsl:attribute name="title"> |
|
258 |
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./*[local-name()='standard']/@id, ':'), .)"/> |
|
259 |
<xsl:text>#</xsl:text> |
|
260 |
<xsl:value-of select="substring-after(./*[local-name()='standard']/@id, ':')"/> |
|
261 |
</xsl:attribute> |
|
262 |
<xsl:value-of select="substring-after(./*[local-name()='standard']/@id, ':')"/> |
|
263 |
</span> |
|
264 |
</td> |
|
265 |
</tr> |
|
266 |
<tr> |
|
267 |
<td class="rowodd"> |
|
268 |
Protocol: |
|
269 |
</td> |
|
270 |
<td class="roweven"> |
|
271 |
<span> |
|
272 |
<xsl:attribute name="title"> |
|
273 |
<xsl:value-of select="fn:namespace-uri-for-prefix(substring-before(./*[local-name()='protocol']/@id, ':'), .)"/> |
|
274 |
<xsl:text>#</xsl:text> |
|
268 | 275 |
<xsl:value-of select="substring-after(./*[local-name()='protocol']/@id, ':')"/> |
269 |
</span> |
|
270 |
</td> |
|
271 |
</tr> |
|
272 |
</table> |
|
273 |
</td> |
|
276 |
</xsl:attribute> |
|
277 |
<xsl:value-of select="substring-after(./*[local-name()='protocol']/@id, ':')"/> |
|
278 |
</span> |
|
279 |
</td> |
|
280 |
</tr> |
|
281 |
</table> |
|
274 | 282 |
|
275 | 283 |
</xsl:template> |
276 | 284 |
|
... | ... | |
282 | 290 |
<table> |
283 | 291 |
<tr> |
284 | 292 |
<xsl:for-each select="key('measurements', concat(//*[local-name()='annotation']/@id, ./@measurement))"> |
285 |
<xsl:call-template name="measurement"/> |
|
293 |
<td> |
|
294 |
<xsl:call-template name="measurement"/> |
|
295 |
</td> |
|
286 | 296 |
</xsl:for-each> |
287 | 297 |
</tr> |
288 | 298 |
</table> |
Also available in: Unified diff
refactor/modularize the templates for easier reuse