40 |
40 |
function submitform(action,form_ref) {
|
41 |
41 |
form_ref.action.value=action;
|
42 |
42 |
form_ref.abstractpath.value="";
|
43 |
|
form_ref.qformat.value="";
|
|
43 |
form_ref.qformat.value="knb";
|
44 |
44 |
form_ref.submit();
|
45 |
45 |
}
|
46 |
46 |
function submitform1(action, abstractpath, form_ref) {
|
... | ... | |
86 |
86 |
<form action="@html-path@/servlet/metacat" method="POST">
|
87 |
87 |
Data Search: <input type="text" name="anyfield" size="10" />
|
88 |
88 |
<input type="hidden" name="action" value="query" />
|
89 |
|
<input type="hidden" name="qformat" value="html" />
|
|
89 |
<input type="hidden" name="qformat" value="knb" />
|
90 |
90 |
<input type="hidden" name="operator" value="UNION" />
|
91 |
91 |
|
92 |
92 |
<input type="hidden" name="returnfield"
|
... | ... | |
121 |
121 |
<table width="100%">
|
122 |
122 |
<tr>
|
123 |
123 |
<th class="tablehead">Title</th>
|
124 |
|
<th class="tablehead">Action</th>
|
125 |
|
<th class="tablehead">Related Documents</th>
|
|
124 |
<!-- <th class="tablehead">Action</th> -->
|
|
125 |
<!-- <th class="tablehead">Related Documents</th> -->
|
126 |
126 |
<th class="tablehead">Contacts</th>
|
127 |
127 |
<th class="tablehead">Organization</th>
|
128 |
128 |
<th class="tablehead">Keywords</th>
|
... | ... | |
138 |
138 |
</xsl:choose>
|
139 |
139 |
</xsl:attribute>
|
140 |
140 |
|
|
141 |
<!--
|
141 |
142 |
<td>
|
142 |
143 |
<xsl:value-of select="./param[@name='title']"/>
|
143 |
144 |
<br/>
|
144 |
145 |
<p><pre>Document ID: <xsl:value-of select="./docid"/></pre></p>
|
145 |
146 |
</td>
|
|
147 |
-->
|
146 |
148 |
<td>
|
147 |
149 |
<form action="@html-path@/servlet/metacat" method="POST">
|
148 |
150 |
<xsl:attribute name="name">
|
... | ... | |
171 |
173 |
|
172 |
174 |
<a>
|
173 |
175 |
<xsl:attribute name="href">javascript:submitform('read',document.<xsl:value-of select="translate(./docid, '.', '')"/>)</xsl:attribute>
|
174 |
|
Dataset Information
|
|
176 |
<xsl:value-of select="./param[@name='title']"/>
|
175 |
177 |
</a><br />
|
|
178 |
<br/>
|
|
179 |
<p><pre>Document ID: <xsl:value-of select="./docid"/></pre></p>
|
|
180 |
<!--
|
176 |
181 |
<a>
|
177 |
182 |
<xsl:attribute name="href">javascript:submitform1('read','resource/%/abstract',document.<xsl:value-of select="translate(./docid,'.','')"/>)</xsl:attribute>
|
178 |
183 |
View Abstract
|
... | ... | |
181 |
186 |
<xsl:attribute name="href">javascript:submitform2('read','zip',document.<xsl:value-of select="translate(./docid,'.','')"/>)</xsl:attribute>
|
182 |
187 |
Download Data and Metadata
|
183 |
188 |
</a><br />
|
|
189 |
-->
|
184 |
190 |
</form>
|
185 |
191 |
</td>
|
|
192 |
<!--
|
186 |
193 |
<td>
|
187 |
194 |
<xsl:if test="count(./relation) > 0">
|
188 |
195 |
<xsl:for-each select="./relation">
|
... | ... | |
219 |
226 |
test="./relationdoctype = '-//NCEAS//eml-supplement//EN'">
|
220 |
227 |
Supplemental Information
|
221 |
228 |
</xsl:if>
|
|
229 |
-->
|
222 |
230 |
<!-- If the doctype is null, this file is assumed to
|
223 |
231 |
be a data file
|
224 |
232 |
-->
|
|
233 |
<!--
|
225 |
234 |
<xsl:if test="./relationdoctype = 'null'">
|
226 |
235 |
Data File
|
227 |
236 |
</xsl:if>
|
228 |
237 |
</xsl:if>
|
229 |
238 |
<xsl:if test="starts-with(./relationdoc, 'metacat')">
|
230 |
239 |
<xsl:attribute name="href">
|
231 |
|
<xsl:text>http://@server@@servlet-path@?action=read&qformat=html&docid=</xsl:text>
|
|
240 |
<xsl:text>http://@server@@servlet-path@?action=read&qformat=knb&docid=</xsl:text>
|
232 |
241 |
<xsl:value-of select="./relationdoc" />
|
233 |
242 |
</xsl:attribute>
|
234 |
243 |
<xsl:if
|
... | ... | |
259 |
268 |
test="./relationdoctype = '-//NCEAS//eml-supplement//EN'">
|
260 |
269 |
Supplemental Information
|
261 |
270 |
</xsl:if>
|
|
271 |
-->
|
262 |
272 |
<!-- If the doctype is null, this file is assumed to
|
263 |
273 |
be a data file
|
264 |
274 |
-->
|
|
275 |
<!--
|
265 |
276 |
<xsl:if test="./relationdoctype = 'null'">
|
266 |
277 |
Data File
|
267 |
278 |
</xsl:if>
|
... | ... | |
270 |
281 |
<br/>
|
271 |
282 |
</xsl:for-each>
|
272 |
283 |
</xsl:if>
|
273 |
|
<xsl:text> </xsl:text>
|
|
284 |
<xsl:text> </xsl:text>
|
274 |
285 |
</td>
|
|
286 |
-->
|
275 |
287 |
<td>
|
276 |
288 |
<xsl:for-each select="./param[@name='originator/individualName/surName']" >
|
277 |
289 |
<xsl:value-of select="." />
|
278 |
290 |
<br/>
|
279 |
291 |
|
280 |
292 |
</xsl:for-each>
|
281 |
|
<xsl:text> </xsl:text>
|
|
293 |
<xsl:text> </xsl:text>
|
282 |
294 |
</td>
|
283 |
295 |
<td>
|
284 |
296 |
<xsl:value-of select=
|
285 |
297 |
"./param[@name='originator/organizationName']" />
|
286 |
|
<xsl:text> </xsl:text>
|
|
298 |
<xsl:text> </xsl:text>
|
287 |
299 |
</td>
|
288 |
300 |
|
289 |
301 |
<td>
|
... | ... | |
292 |
304 |
<xsl:value-of select="." />
|
293 |
305 |
<br/>
|
294 |
306 |
</xsl:for-each>
|
295 |
|
<xsl:text> </xsl:text>
|
|
307 |
<xsl:text> </xsl:text>
|
296 |
308 |
</td>
|
297 |
309 |
</tr>
|
298 |
310 |
|
Minor bug fixes following change in style handling. Fixed image locations,
cleaned up main resultset stylesheet.