73 |
73 |
|
74 |
74 |
<table align="left" border="0" cellpadding="0" cellspacing="5" width="100%">
|
75 |
75 |
<tr valign="top">
|
76 |
|
|
77 |
|
<!-- ANNOTATIONS HERE -->
|
78 |
|
<xsl:if test="count(resultset/document[docname='annotation']) > 0">
|
79 |
|
<td>
|
80 |
|
<xsl:call-template name="annotationResults"/>
|
81 |
|
</td>
|
82 |
|
</xsl:if>
|
83 |
76 |
|
84 |
77 |
<!-- EML HERE -->
|
85 |
78 |
<xsl:if test="count(resultset/document[docname='eml']) > 0">
|
... | ... | |
102 |
95 |
|
103 |
96 |
<xsl:template name="emlResults">
|
104 |
97 |
<table align="center" border="0" cellpadding="5" cellspacing="0" width="100%">
|
|
98 |
|
|
99 |
<!--
|
105 |
100 |
<tr class="subpanel">
|
106 |
101 |
<th style="text-align: left">
|
107 |
102 |
Title
|
... | ... | |
116 |
111 |
Keywords
|
117 |
112 |
</th>
|
118 |
113 |
</tr>
|
|
114 |
-->
|
119 |
115 |
|
120 |
116 |
<xsl:for-each
|
121 |
117 |
select="resultset/document[docname='eml']">
|
122 |
118 |
<xsl:sort
|
123 |
119 |
select="./param[@name='dataset/title']" />
|
124 |
|
<tr valign="top" class="subpanel">
|
|
120 |
|
|
121 |
<!-- the header portion of the result -->
|
|
122 |
<tr valign="top">
|
125 |
123 |
<xsl:attribute name="class">
|
126 |
124 |
<xsl:choose>
|
127 |
|
<xsl:when test="position() mod 2 = 1">rowodd</xsl:when>
|
128 |
|
<xsl:when test="position() mod 2 = 0">roweven</xsl:when>
|
|
125 |
<xsl:when test="position() mod 2 = 1">rowodd accordian</xsl:when>
|
|
126 |
<xsl:when test="position() mod 2 = 0">roweven accordian</xsl:when>
|
129 |
127 |
</xsl:choose>
|
130 |
128 |
</xsl:attribute>
|
131 |
129 |
|
132 |
|
<td class="text_plain">
|
|
130 |
<td colspan="1" class="text_plain">
|
133 |
131 |
<a>
|
134 |
132 |
<xsl:attribute name="href">
|
135 |
133 |
<xsl:value-of select="$tripleURI"/><xsl:value-of select="./docid"/>
|
... | ... | |
139 |
137 |
<xsl:value-of select="./param[@name='dataset/title']"/>
|
140 |
138 |
</b>
|
141 |
139 |
</a>
|
142 |
|
|
143 |
|
<pre>ID: <xsl:value-of select="./docid" /></pre>
|
144 |
|
|
145 |
|
<!-- render the annotation -->
|
146 |
|
<xsl:for-each select="./*[local-name()='annotation']">
|
147 |
|
<xsl:call-template name="annotation">
|
148 |
|
<xsl:with-param name="showAll" select="false"/>
|
149 |
|
</xsl:call-template>
|
150 |
|
</xsl:for-each>
|
151 |
|
|
|
140 |
(<xsl:value-of select="./docid" />)
|
152 |
141 |
</td>
|
153 |
|
|
154 |
|
<td class="text_plain">
|
155 |
|
<xsl:for-each
|
156 |
|
select="./param[@name='creator/individualName/surName']">
|
157 |
|
<xsl:value-of select="." />
|
158 |
|
<br />
|
159 |
|
</xsl:for-each>
|
160 |
|
</td>
|
161 |
|
|
162 |
|
<td class="text_plain">
|
163 |
|
<xsl:for-each
|
164 |
|
select="./param[@name='creator/organizationName']">
|
165 |
|
<xsl:value-of select="." />
|
166 |
|
<br />
|
167 |
|
</xsl:for-each>
|
168 |
|
</td>
|
169 |
|
|
170 |
|
<td class="text_plain">
|
171 |
|
<xsl:for-each
|
172 |
|
select="./param[@name='keyword']">
|
173 |
|
<xsl:value-of select="." />
|
174 |
|
<br />
|
175 |
|
</xsl:for-each>
|
176 |
|
</td>
|
177 |
|
|
178 |
142 |
</tr>
|
179 |
143 |
|
180 |
|
<tr class="searchresultsdivider">
|
181 |
|
<td colspan="5">
|
182 |
|
</td>
|
183 |
|
</tr>
|
184 |
|
|
185 |
|
</xsl:for-each>
|
186 |
|
</table>
|
187 |
|
</xsl:template>
|
188 |
|
|
189 |
|
<xsl:template name="annotationResults">
|
190 |
|
<table align="left" border="0" cellpadding="5" cellspacing="0" width="100%">
|
191 |
|
|
192 |
|
<tr class="subpanel">
|
193 |
|
<th style="text-align: left">
|
194 |
|
Identifier
|
195 |
|
</th>
|
196 |
|
<th style="text-align: left">
|
197 |
|
Datapackage
|
198 |
|
</th>
|
199 |
|
<th style="text-align: left">
|
200 |
|
Entities
|
201 |
|
</th>
|
202 |
|
</tr>
|
203 |
|
|
204 |
|
<xsl:for-each select="resultset/document[docname='annotation']">
|
205 |
|
<xsl:sort select="./param[@name='@id']" />
|
|
144 |
<!-- the content part -->
|
206 |
145 |
<tr valign="top">
|
207 |
146 |
<xsl:attribute name="class">
|
208 |
|
<xsl:choose>
|
209 |
|
<xsl:when test="position() mod 2 = 1">rowodd</xsl:when>
|
210 |
|
<xsl:when test="position() mod 2 = 0">roweven</xsl:when>
|
|
147 |
<xsl:choose>
|
|
148 |
<xsl:when test="position() mod 2 = 1">rowodd</xsl:when>
|
|
149 |
<xsl:when test="position() mod 2 = 0">roweven</xsl:when>
|
211 |
150 |
</xsl:choose>
|
212 |
151 |
</xsl:attribute>
|
213 |
|
|
|
152 |
|
214 |
153 |
<td class="text_plain">
|
215 |
|
<a>
|
216 |
|
<xsl:attribute name="href">
|
217 |
|
<xsl:value-of select="$tripleURI"/><xsl:value-of select="./docid"/>
|
218 |
|
</xsl:attribute>
|
219 |
|
<xsl:text>» </xsl:text>
|
220 |
|
<xsl:value-of select="./docid" />
|
221 |
|
</a>
|
222 |
|
</td>
|
223 |
154 |
|
224 |
|
<td class="text_plain">
|
225 |
|
<a>
|
226 |
|
<xsl:attribute name="href">
|
227 |
|
<xsl:value-of select="$tripleURI"/><xsl:value-of select="./param[@name='@emlPackage']"/>
|
228 |
|
</xsl:attribute>
|
229 |
|
<xsl:value-of select="./param[@name='@emlPackage']"/>
|
230 |
|
</a>
|
|
155 |
<table width="100%">
|
|
156 |
<tr>
|
|
157 |
<td>
|
|
158 |
<!-- render the annotation -->
|
|
159 |
<xsl:for-each select="./*[local-name()='annotation']">
|
|
160 |
<xsl:call-template name="annotation">
|
|
161 |
<xsl:with-param name="showAll" select="false"/>
|
|
162 |
</xsl:call-template>
|
|
163 |
</xsl:for-each>
|
|
164 |
</td>
|
|
165 |
|
|
166 |
<td>
|
|
167 |
|
|
168 |
<!-- render people -->
|
|
169 |
<table class="subGroup subGroup_border">
|
|
170 |
<tr>
|
|
171 |
<th>
|
|
172 |
Owner[s]
|
|
173 |
</th>
|
|
174 |
</tr>
|
|
175 |
<xsl:for-each
|
|
176 |
select="./param[@name='creator/individualName/surName']">
|
|
177 |
<tr>
|
|
178 |
<td>
|
|
179 |
<xsl:value-of select="." />
|
|
180 |
</td>
|
|
181 |
</tr>
|
|
182 |
</xsl:for-each>
|
|
183 |
</table>
|
|
184 |
|
|
185 |
</td>
|
|
186 |
|
|
187 |
<td>
|
|
188 |
|
|
189 |
<!-- render orgs -->
|
|
190 |
<table class="subGroup subGroup_border">
|
|
191 |
<tr>
|
|
192 |
<th>
|
|
193 |
Organizations[s]
|
|
194 |
</th>
|
|
195 |
</tr>
|
|
196 |
<xsl:for-each
|
|
197 |
select="./param[@name='creator/organizationName']">
|
|
198 |
<tr>
|
|
199 |
<td>
|
|
200 |
<xsl:value-of select="." />
|
|
201 |
</td>
|
|
202 |
</tr>
|
|
203 |
</xsl:for-each>
|
|
204 |
</table>
|
|
205 |
|
|
206 |
</td>
|
|
207 |
|
|
208 |
<td>
|
|
209 |
|
|
210 |
<!-- render keywords -->
|
|
211 |
<table class="subGroup subGroup_border">
|
|
212 |
<tr>
|
|
213 |
<th>
|
|
214 |
Keyword[s]
|
|
215 |
</th>
|
|
216 |
</tr>
|
|
217 |
<xsl:for-each
|
|
218 |
select="./param[@name='keyword']">
|
|
219 |
<tr>
|
|
220 |
<td>
|
|
221 |
<xsl:value-of select="." />
|
|
222 |
</td>
|
|
223 |
</tr>
|
|
224 |
</xsl:for-each>
|
|
225 |
</table>
|
|
226 |
|
|
227 |
</td>
|
|
228 |
</tr>
|
|
229 |
</table>
|
|
230 |
|
231 |
231 |
</td>
|
232 |
|
|
233 |
|
<td class="text_plain">
|
234 |
|
<xsl:for-each
|
235 |
|
select="./param[@name='entity/@id']">
|
236 |
|
<xsl:value-of select="." />
|
237 |
|
<br />
|
238 |
|
</xsl:for-each>
|
239 |
|
</td>
|
240 |
|
|
241 |
|
|
|
232 |
|
242 |
233 |
</tr>
|
243 |
234 |
|
244 |
|
<tr class="searchresultsdivider">
|
245 |
|
<td colspan="3">
|
246 |
|
</td>
|
247 |
|
</tr>
|
248 |
|
|
249 |
235 |
</xsl:for-each>
|
250 |
236 |
</table>
|
|
237 |
</xsl:template>
|
251 |
238 |
|
252 |
|
</xsl:template>
|
253 |
239 |
|
254 |
240 |
</xsl:stylesheet>
|
hide/show search result details for each matched row.