Project

General

Profile

« Previous | Next » 

Revision 5591

nest annotation groupings nicely for each obs/meas

View differences:

lib/style/skins/semtools/annotation.xsl
42 42
	<xsl:template match="/">
43 43
		<html>
44 44
			<head>
45
				<title>Annotation</title>
45
				<title>Annotation Details</title>
46 46
				<link rel="stylesheet" type="text/css"
47 47
					href="/knb/style/skins/{$qformat}/{$qformat}.css" />
48 48
				<script language="Javascript" type="text/JavaScript"
......
59 59
				<div id="content_wrapper">
60 60
				
61 61
				<div class="group group_border">
62
					<h3>Annotation</h3>
62
					<h3>Annotation Details</h3>
63 63
				</div>
64 64
				<xsl:for-each select="/*[local-name()='annotation']">
65 65
					<xsl:call-template name="annotation"/>
lib/style/skins/semtools/semtools.css
462 462
    font-weight:                normal;
463 463
    text-decoration:            none;
464 464
  }
465
  
466
pre.inline {
467
    padding: 0px;
468
    padding-left: 10px;
469
    padding-right: 10px;
470
}  
465 471

  
466 472
/* for creating block quotes. 
467 473
 * set off with a slight indent to the left & right margins
......
1166 1172
}
1167 1173
.sectionheader {
1168 1174
	font-weight: bold;
1175
}
1176
.searchresultsdivider {
1177
	height:	10px;
1169 1178
}
lib/style/skins/semtools/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>&#187;&#160;</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>&#187;&#160;</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"/>&amp;displaymodule=entity&amp;entitytype=dataTable&amp;entityindex=<xsl:value-of select="number(./@dataTable)+1"/>
95 83
									</xsl:attribute>
96
			     					View Data Table Metadata
84
			     					<xsl:text>&#187;&#160;</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