Revision 5951
Added by ben leinfelder over 13 years ago
annotation-root.xsl | ||
---|---|---|
30 | 30 |
--> |
31 | 31 |
<xsl:stylesheet |
32 | 32 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
33 |
xmlns:sms="http://ecoinformatics.org/sms/annotation.0.9"
|
|
33 |
xmlns:sms="http://ecoinformatics.org/sms/annotation.1.0beta1"
|
|
34 | 34 |
xmlns:fn="http://www.w3.org/2005/xpath-functions" |
35 | 35 |
version="2.0"> |
36 | 36 |
|
... | ... | |
135 | 135 |
<xsl:variable name="mapCount"> |
136 | 136 |
<xsl:value-of select="count(./*[local-name()='map'])"/> |
137 | 137 |
</xsl:variable> |
138 |
<!-- reference to the annotation parent --> |
|
139 |
<xsl:variable name="thisAnnotationId"> |
|
140 |
<xsl:value-of select="./@id"/> |
|
141 |
</xsl:variable> |
|
142 |
<!-- reference to the dataPackage parent --> |
|
143 |
<xsl:variable name="thisDataPackage"> |
|
144 |
<xsl:value-of select="./@dataPackage"/> |
|
145 |
</xsl:variable> |
|
138 | 146 |
<td class="rowodd" width="{$labelWidth}"> |
139 |
Data Table <xsl:value-of select="./@dataTable"/>: |
|
147 |
Data Table |
|
148 |
(<xsl:value-of select="$mapCount"/> |
|
149 |
<xsl:text> attributes</xsl:text>): |
|
140 | 150 |
</td> |
141 | 151 |
<td class="roweven"> |
142 | 152 |
<xsl:for-each select="./*[local-name()='map']"> |
143 |
<xsl:value-of select="./@attribute"/> |
|
153 |
<a> |
|
154 |
<xsl:attribute name="href"> |
|
155 |
<xsl:value-of select="$tripleURI"/><xsl:value-of select="$thisDataPackage"/>&displaymodule=entity&entitytype=dataTable&entityindex=<xsl:value-of select="number(./@dataObject)+1"/>&annotationId=<xsl:value-of select="$thisAnnotationId"/> |
|
156 |
</xsl:attribute> |
|
157 |
<xsl:value-of select="./@attribute"/> |
|
158 |
</a> |
|
144 | 159 |
<xsl:if test="position() != last()">, </xsl:if> |
145 | 160 |
</xsl:for-each> |
146 |
(<a> |
|
147 |
<xsl:attribute name="href"> |
|
148 |
<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"/> |
|
149 |
</xsl:attribute> |
|
150 |
<xsl:value-of select="$mapCount"/> |
|
151 |
<xsl:text> attributes</xsl:text> |
|
152 |
</a>) |
|
161 |
|
|
153 | 162 |
</td> |
154 | 163 |
</tr> |
155 | 164 |
<tr> |
... | ... | |
157 | 166 |
Data Package: |
158 | 167 |
</td> |
159 | 168 |
<td class="roweven"> |
160 |
<xsl:value-of select="./@emlPackage"/>
|
|
169 |
<xsl:value-of select="./@dataPackage"/>
|
|
161 | 170 |
(<a> |
162 | 171 |
<xsl:attribute name="href"> |
163 |
<xsl:value-of select="$tripleURI"/><xsl:value-of select="./@emlPackage"/>
|
|
172 |
<xsl:value-of select="$tripleURI"/><xsl:value-of select="./@dataPackage"/>
|
|
164 | 173 |
</xsl:attribute> |
165 | 174 |
<xsl:text>View Metadata</xsl:text> |
166 | 175 |
</a>) |
... | ... | |
170 | 179 |
<script language="JavaScript"> |
171 | 180 |
loadStats( |
172 | 181 |
'emlStats', |
173 |
'<xsl:value-of select="./@emlPackage" />',
|
|
182 |
'<xsl:value-of select="./@dataPackage" />',
|
|
174 | 183 |
'<xsl:value-of select="$contextURL" />/metacat', |
175 | 184 |
'<xsl:value-of select="$qformat" />'); |
176 | 185 |
</script> |
... | ... | |
376 | 385 |
<tr> |
377 | 386 |
<th colspan="5"> |
378 | 387 |
Attribute Summary |
379 |
(<a> |
|
380 |
<xsl:attribute name="href"> |
|
381 |
<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"/> |
|
382 |
</xsl:attribute> |
|
383 |
<xsl:text>Data Table: </xsl:text> |
|
384 |
<xsl:value-of select="./@dataTable"/> |
|
385 |
</a>) |
|
386 | 388 |
</th> |
387 | 389 |
</tr> |
388 | 390 |
|
389 |
|
|
390 | 391 |
<tr> |
391 | 392 |
<td class="roweven" width="{$labelWidth}"></td> |
392 | 393 |
<td class="rowodd"> |
... | ... | |
407 | 408 |
<xsl:variable name="thisAnnotationId"> |
408 | 409 |
<xsl:value-of select="./@id"/> |
409 | 410 |
</xsl:variable> |
411 |
<!-- reference to the dataPackage parent --> |
|
412 |
<xsl:variable name="thisDataPackage"> |
|
413 |
<xsl:value-of select="./@dataPackage"/> |
|
414 |
</xsl:variable> |
|
410 | 415 |
|
411 | 416 |
<xsl:for-each select="./*[local-name()='map']"> |
412 | 417 |
<tr> |
... | ... | |
416 | 421 |
</xsl:variable> |
417 | 422 |
<td class="rowodd"> |
418 | 423 |
<xsl:value-of select="$attributeLabel"/> |
424 |
<!-- the dataObject that contains this attribute --> |
|
425 |
(<a> |
|
426 |
<xsl:attribute name="href"> |
|
427 |
<xsl:value-of select="$tripleURI"/><xsl:value-of select="$thisDataPackage"/>&displaymodule=entity&entitytype=dataTable&entityindex=<xsl:value-of select="number(./@dataObject)+1"/>&annotationId=<xsl:value-of select="$thisAnnotationId"/> |
|
428 |
</xsl:attribute> |
|
429 |
<xsl:text>Data Table: </xsl:text> |
|
430 |
<xsl:value-of select="./@dataObject"/> |
|
431 |
</a>) |
|
419 | 432 |
</td> |
420 | 433 |
|
421 | 434 |
<!-- look up the attribute mapping for the given attribute --> |
Also available in: Unified diff
update skin to use new annotation schema - http://ecoinformatics.org/sms/annotation.1.0beta1