Project

General

Profile

« Previous | Next » 

Revision 5732

include more details in the Citation section

View differences:

lib/style/skins/semtools/resultset.xsl
135 135
					
136 136
						<tr>
137 137
							<td colspan="2">
138
								Citation:
139
								<xsl:text> </xsl:text>
140
								<a>
141
									<xsl:attribute name="href">
142
										<xsl:value-of select="$tripleURI"/><xsl:value-of select="./docid"/>
143
									</xsl:attribute>
144
									<xsl:value-of select="$contextURL" /><![CDATA[/metacat/]]><xsl:value-of select="./docid"/><![CDATA[/]]><xsl:value-of select="$qformat" />										
145
								</a>
138
								<table class="subGroup subGroup_border onehundred_percent">
139
									<tr>
140
										<td class="rowodd">
141
											Citation:
142
										</td>
143
										<td class="roweven">
144
											<!-- the author -->
145
											<xsl:choose>
146
												<xsl:when test="count(./param[@name='creator/individualName/surName']) > 0">
147
													<xsl:for-each select="./param[@name='creator/individualName/surName']">
148
														<xsl:value-of select="." />
149
														<xsl:if test="position() != last()">, </xsl:if>
150
													</xsl:for-each>
151
												</xsl:when>
152
												<xsl:otherwise>
153
													<xsl:for-each select="./param[@name='creator/organizationName']">
154
														<xsl:value-of select="." />
155
														<xsl:if test="position() != last()">, </xsl:if>
156
													</xsl:for-each>
157
												</xsl:otherwise>
158
											</xsl:choose>
159
											<xsl:text>. </xsl:text>
160
											<!-- the pubdate -->
161
											<xsl:value-of select="substring(string(./param[@name='dataset/pubDate']),1,4)"/>
162
	        								<xsl:if test="substring(string(./param[@name='dataset/pubDate']),1,4) != ''">. </xsl:if>
163
											<!-- the link -->
164
											<a>
165
												<xsl:attribute name="href">
166
													<xsl:value-of select="$tripleURI"/><xsl:value-of select="./docid"/>
167
												</xsl:attribute>
168
												<xsl:value-of select="$contextURL" /><![CDATA[/metacat/]]><xsl:value-of select="./docid"/><![CDATA[/]]><xsl:value-of select="$qformat" />										
169
											</a>
170
										</td>
171
									</tr>		
172
								</table>
146 173
							</td>
147 174
						</tr>
148 175
						
lib/style/skins/semtools/annotation-root.xsl
48 48
	
49 49
	<xsl:template name="annotation">
50 50
		<xsl:param name="showAll">true</xsl:param>
51
		<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" class="subGroup">
51
		<table align="center" width="100%" class="subGroup">
52 52
			<tr>
53 53
				<td>
54 54
					<!-- annotation summary -->
55
					<xsl:call-template name="annotationSummary" />
55
					<xsl:call-template name="annotationSearchResult" />
56 56
				</td>
57 57
			</tr>
58 58
			
......
61 61
					<tr>
62 62
						<td class="text_plain">
63 63
							<table class="subGroup subGroup_border">
64
								<tr>
65
									<th>
66
										Observation
67
									</th>
68
								</tr>
69 64
								<tr valign="top">
70 65
									<td>
71 66
										<!-- observation entity -->
......
99 94
		
100 95
	</xsl:template>
101 96
	
97
	<xsl:template name="annotationSearchResult">
98
		<table class="subGroup subGroup_border">
99
			<tr>
100
				<xsl:variable name="mapCount">
101
					<xsl:value-of select="count(./*[local-name()='map'])"/>
102
				</xsl:variable>
103
				<td class="rowodd">
104
					Data Table (<xsl:value-of select="./@dataTable"/>):
105
     			</td>
106
     			<td class="roweven">
107
     				<a>
108
						<xsl:attribute name="href">
109
							<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"/>&amp;annotationId=<xsl:value-of select="./@id"/>
110
						</xsl:attribute>
111
						
112
	     				<xsl:for-each select="./*[local-name()='map']">
113
	     					<xsl:value-of select="./@attribute"/>
114
	     					<xsl:if test="position() != last()">, </xsl:if>
115
	     				</xsl:for-each>
116
	     				(<xsl:value-of select="$mapCount"/> attributes)	
117
					</a>	
118
     			</td>
119
     		</tr>
120
			<tr>
121
				<td class="rowodd">
122
     				Annotation (<xsl:value-of select="./@id"/>):
123
     			</td>
124
     			<td class="roweven">
125
     				<a>
126
						<xsl:attribute name="href">
127
							<xsl:value-of select="$tripleURI"/><xsl:value-of select="./@id"/>
128
						</xsl:attribute>
129
						View
130
					</a>
131
										
132
					<!-- stats -->
133
					<span id="annotationStats"></span>
134
					<script language="JavaScript">
135
						loadStats(
136
							'annotationStats', 
137
							'<xsl:value-of select="./@id" />', 
138
							'<xsl:value-of select="$contextURL" />/metacat',
139
							'<xsl:value-of select="$qformat" />');
140
					</script>
141
					
142
				</td>	
143
			</tr>
144
			<tr>
145
				<td class="rowodd">
146
     				Data Package (<xsl:value-of select="./@emlPackage"/>):
147
     			</td>
148
     			<td class="roweven">
149
     				<a>
150
						<xsl:attribute name="href">
151
							<xsl:value-of select="$tripleURI"/><xsl:value-of select="./@emlPackage"/>
152
						</xsl:attribute>
153
						View Metadata
154
					</a>
155
											
156
					<!-- stats -->
157
					<span id="emlStats"></span>
158
					<script language="JavaScript">
159
						loadStats(
160
							'emlStats', 
161
							'<xsl:value-of select="./@emlPackage" />', 
162
							'<xsl:value-of select="$contextURL" />/metacat',
163
							'<xsl:value-of select="$qformat" />');
164
					</script>
165
						
166
				</td>
167
     		</tr>
168
     	</table>
169
	</xsl:template>
170
	
102 171
	<xsl:template name="annotationSummary">
103 172
		<table class="subGroup subGroup_border">
104 173
			<tr>
......
173 242
	<xsl:template name="observation">
174 243
		<table>
175 244
			<tr>
245
				<th colspan="2">
246
					Observation (<xsl:value-of select="./@label"/>)
247
				</th>
248
			</tr>
249
			<tr>
176 250
				<td class="rowodd">
177
					Class:
251
					Entity:
178 252
				</td>
179 253
				<td class="roweven">
180 254
					<p>
......
197 271
				</td>
198 272
			</tr>
199 273
			
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 274
		</table>
209 275
	
210 276
	</xsl:template>

Also available in: Unified diff