1 |
295
|
berkley
|
<?xml version="1.0"?>
|
2 |
|
|
<!--
|
3 |
|
|
* marine.xsl
|
4 |
|
|
*
|
5 |
|
|
* Authors: Matt Jones, Chad Berkley
|
6 |
|
|
* Copyright: 2000 Regents of the University of California and the
|
7 |
|
|
* National Center for Ecological Analysis and Synthesis
|
8 |
|
|
* For Details: http://www.nceas.ucsb.edu/
|
9 |
|
|
* Created: 2000 July 20
|
10 |
304
|
berkley
|
* File Info: '$Id$'
|
11 |
295
|
berkley
|
*
|
12 |
|
|
* This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
|
13 |
|
|
* convert an XML file showing the resultset of a query
|
14 |
|
|
* into an HTML format suitable for rendering with modern web browsers.
|
15 |
|
|
* This stylesheet formats .
|
16 |
|
|
-->
|
17 |
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
18 |
|
|
|
19 |
|
|
<xsl:output method="html"/>
|
20 |
|
|
|
21 |
|
|
<xsl:template match="/">
|
22 |
|
|
<html>
|
23 |
|
|
<head>
|
24 |
386
|
berkley
|
<link rel="stylesheet" type="text/css" href="@html-path@/marine/rowcol.css" />
|
25 |
295
|
berkley
|
</head>
|
26 |
|
|
<body class="emlbody">
|
27 |
318
|
berkley
|
<script language="JavaScript">
|
28 |
|
|
function gotoNceas()
|
29 |
|
|
{
|
30 |
|
|
window.location="http://www.nceas.ucsb.edu";
|
31 |
|
|
}
|
32 |
|
|
</script>
|
33 |
304
|
berkley
|
<a name="top" />
|
34 |
318
|
berkley
|
<table width="100%">
|
35 |
|
|
<tr>
|
36 |
|
|
<td align="left" valign="top">
|
37 |
386
|
berkley
|
<form action="@html-path@/servlet/marine"
|
38 |
318
|
berkley
|
method="POST">
|
39 |
386
|
berkley
|
<input type="hidden" name="action" value="query" />
|
40 |
318
|
berkley
|
<input type="hidden" name="query" value="" />
|
41 |
|
|
<input type="hidden" name="qformat" value="html" />
|
42 |
|
|
<input type="hidden" name="operator" value="UNION" />
|
43 |
|
|
<input type="hidden" name="anyfield" value="%" />
|
44 |
|
|
<input type="submit" value="Browse the Database" size="15" />
|
45 |
|
|
</form>
|
46 |
|
|
</td>
|
47 |
|
|
<td align="center" valign="bottom">
|
48 |
386
|
berkley
|
<img src="@html-path@/marine/logo-line.gif" alt="NCEAS Logo"
|
49 |
|
|
onClick="gotoNceas()" />
|
50 |
318
|
berkley
|
</td>
|
51 |
|
|
<td align="right" valign="top">
|
52 |
386
|
berkley
|
<form action="@html-path@/servlet/marine"
|
53 |
318
|
berkley
|
method="POST">
|
54 |
386
|
berkley
|
Quick Search: <input type="text" name="anyfield" size="10" />
|
55 |
318
|
berkley
|
<input type="hidden" name="action" value="query" />
|
56 |
|
|
<input type="hidden" name="qformat" value="html" />
|
57 |
|
|
<input type="hidden" name="operator" value="UNION" />
|
58 |
|
|
</form>
|
59 |
|
|
</td>
|
60 |
|
|
</tr>
|
61 |
|
|
</table>
|
62 |
|
|
|
63 |
|
|
<hr />
|
64 |
|
|
|
65 |
304
|
berkley
|
<center><h1>MARINE Query Interface</h1></center>
|
66 |
318
|
berkley
|
<font size="2">
|
67 |
|
|
<p class="intro">
|
68 |
|
|
This page is used to query information for
|
69 |
386
|
berkley
|
<a href="http://www.mms.gov/omm/pacific/enviro/mint.htm">MARINE</a>
|
70 |
|
|
scientists from
|
71 |
318
|
berkley
|
the NCEAS Ecological Metadata Database. For more information on
|
72 |
|
|
this project, please read the
|
73 |
386
|
berkley
|
<a href=
|
74 |
|
|
"http://www.nceas.ucsb.edu/marinedata/">
|
75 |
318
|
berkley
|
proposal abstract</a>.
|
76 |
|
|
</p>
|
77 |
304
|
berkley
|
|
78 |
318
|
berkley
|
<p class="intro">
|
79 |
386
|
berkley
|
Each step below contains several fields relating to a part of the
|
80 |
|
|
dataset. You may also browse
|
81 |
|
|
the entire database by simply clicking the browse link at the top
|
82 |
|
|
of the page.
|
83 |
318
|
berkley
|
Clicking on the buttons next to each data line will give you more
|
84 |
386
|
berkley
|
information about the dataset or allow you to download the entire
|
85 |
|
|
dataset.
|
86 |
|
|
Please note some fields in the query forms will not be pertinent to
|
87 |
|
|
your dataset.
|
88 |
|
|
If this is the case, simply leave any field blank to omit it from
|
89 |
|
|
the searching.
|
90 |
318
|
berkley
|
</p>
|
91 |
304
|
berkley
|
|
92 |
318
|
berkley
|
<p class="intro">
|
93 |
386
|
berkley
|
Note that the wildcard character is a percent sign (%). It may
|
94 |
|
|
be used in any
|
95 |
|
|
field to denote "any" value. For example, the query "do%" would
|
96 |
|
|
return "document"
|
97 |
|
|
or "dog" or "domino" or "dolphin", etc. Placing a single percent
|
98 |
|
|
sign in a field
|
99 |
|
|
will return any document that contains that field. Placing a
|
100 |
|
|
percent sign in
|
101 |
|
|
the "Any Field" field is equivalent to browsing the database (i.e.
|
102 |
|
|
it will return
|
103 |
318
|
berkley
|
every document).
|
104 |
|
|
</p>
|
105 |
|
|
</font>
|
106 |
|
|
|
107 |
386
|
berkley
|
<form action="@html-path@/servlet/marine"
|
108 |
298
|
berkley
|
method="POST">
|
109 |
318
|
berkley
|
|
110 |
304
|
berkley
|
<table width="100%" border="1">
|
111 |
|
|
<tr>
|
112 |
318
|
berkley
|
<td valign="bottom" width = "25">
|
113 |
386
|
berkley
|
<img src="@html-path@/marine/step1.jpg" />
|
114 |
304
|
berkley
|
</td>
|
115 |
318
|
berkley
|
<td>
|
116 |
|
|
<h4>Keywords and Title</h4>
|
117 |
|
|
<p>
|
118 |
|
|
<font size="2">
|
119 |
386
|
berkley
|
Enter any keywords that might partain to the dataset you
|
120 |
|
|
are looking for.
|
121 |
|
|
The "Any Field" text box will search for any field in any
|
122 |
|
|
document for
|
123 |
|
|
the text you provide. The title and alternate title will
|
124 |
|
|
search for text
|
125 |
|
|
in the title or alternate title fields of a document only.
|
126 |
|
|
Fields left
|
127 |
318
|
berkley
|
blank will not be used in the search criteria.
|
128 |
|
|
</font></p>
|
129 |
|
|
</td>
|
130 |
304
|
berkley
|
</tr>
|
131 |
|
|
</table>
|
132 |
318
|
berkley
|
|
133 |
304
|
berkley
|
<table width="100%">
|
134 |
298
|
berkley
|
<tr>
|
135 |
304
|
berkley
|
<td>Title:</td>
|
136 |
318
|
berkley
|
<td>
|
137 |
|
|
<input type="text" name="title" size="15">
|
138 |
|
|
<xsl:attribute name="value">
|
139 |
|
|
<xsl:value-of select="resultset/query/title" />
|
140 |
|
|
</xsl:attribute>
|
141 |
|
|
</input>
|
142 |
|
|
</td>
|
143 |
|
|
<td>Any Field:</td>
|
144 |
|
|
<td>
|
145 |
|
|
<input type="text" name="anyfield" size="15">
|
146 |
|
|
<xsl:attribute name="value">
|
147 |
|
|
<xsl:value-of select="resultset/query/anyfield" />
|
148 |
|
|
</xsl:attribute>
|
149 |
|
|
</input>
|
150 |
|
|
</td>
|
151 |
298
|
berkley
|
</tr>
|
152 |
304
|
berkley
|
<tr>
|
153 |
318
|
berkley
|
<td>Alternate Title:</td>
|
154 |
|
|
<td>
|
155 |
|
|
<input type="text" name="alttitle" size="15">
|
156 |
|
|
<xsl:attribute name="value">
|
157 |
|
|
<xsl:value-of select="resultset/query/alttitle" />
|
158 |
|
|
</xsl:attribute>
|
159 |
|
|
</input>
|
160 |
|
|
</td>
|
161 |
|
|
<td>Keywords:</td>
|
162 |
|
|
<td>
|
163 |
|
|
<input type="text" name="keyword" size="15">
|
164 |
|
|
<xsl:attribute name="value">
|
165 |
|
|
<xsl:value-of select="resultset/query/keyword" />
|
166 |
|
|
</xsl:attribute>
|
167 |
|
|
</input>
|
168 |
|
|
</td>
|
169 |
304
|
berkley
|
</tr>
|
170 |
|
|
</table>
|
171 |
318
|
berkley
|
|
172 |
304
|
berkley
|
<table width="100%" border="1">
|
173 |
|
|
<tr>
|
174 |
318
|
berkley
|
<td valign="bottom" width="25">
|
175 |
386
|
berkley
|
<img src="@html-path@/marine/step2.jpg" />
|
176 |
318
|
berkley
|
</td>
|
177 |
|
|
<td>
|
178 |
|
|
<h4>Dataset Owner Information</h4>
|
179 |
|
|
<p>
|
180 |
|
|
<font size="2">
|
181 |
386
|
berkley
|
Enter data about the owner of the dataset. There may be more
|
182 |
|
|
than one
|
183 |
|
|
owner of any given dataset. Any field(s) left blank will not be
|
184 |
|
|
used
|
185 |
318
|
berkley
|
in the search criteria.
|
186 |
|
|
</font>
|
187 |
304
|
berkley
|
</p>
|
188 |
|
|
</td>
|
189 |
|
|
</tr>
|
190 |
|
|
</table>
|
191 |
|
|
<table width="100%">
|
192 |
|
|
<tr>
|
193 |
318
|
berkley
|
<td>First Name:</td>
|
194 |
|
|
<td>
|
195 |
|
|
<input type="text" name="given_name" size="15">
|
196 |
|
|
<xsl:attribute name="value">
|
197 |
|
|
<xsl:value-of select="resultset/query/given_name" />
|
198 |
|
|
</xsl:attribute>
|
199 |
|
|
</input>
|
200 |
|
|
</td>
|
201 |
|
|
<td>Last Name:</td>
|
202 |
|
|
<td> <!-- <input type="text" name="surname" /> -->
|
203 |
|
|
<input type="text" name="surname" size="15">
|
204 |
|
|
<xsl:attribute name="value">
|
205 |
|
|
<xsl:value-of select="resultset/query/surname" />
|
206 |
|
|
</xsl:attribute>
|
207 |
|
|
</input>
|
208 |
|
|
</td>
|
209 |
304
|
berkley
|
</tr>
|
210 |
318
|
berkley
|
<tr>
|
211 |
|
|
<td>Organization:</td>
|
212 |
|
|
<td>
|
213 |
|
|
<input type="text" name="organizationName" size="15">
|
214 |
|
|
<xsl:attribute name="value">
|
215 |
|
|
<xsl:value-of select="resultset/query/organizationName" />
|
216 |
|
|
</xsl:attribute>
|
217 |
|
|
</input>
|
218 |
|
|
</td>
|
219 |
|
|
<td>Email Address:</td>
|
220 |
|
|
<td>
|
221 |
|
|
<input type="text" name="electronicMailAddress" size="15">
|
222 |
|
|
<xsl:attribute name="value">
|
223 |
|
|
<xsl:value-of select="resultset/query/electronicMailAddress" />
|
224 |
|
|
</xsl:attribute>
|
225 |
|
|
</input>
|
226 |
|
|
</td>
|
227 |
|
|
</tr>
|
228 |
|
|
</table>
|
229 |
304
|
berkley
|
|
230 |
|
|
<table width="100%" border="1">
|
231 |
|
|
<tr>
|
232 |
318
|
berkley
|
<td valign="bottom" width="25">
|
233 |
386
|
berkley
|
<img src="@html-path@/marine/step3.jpg" />
|
234 |
318
|
berkley
|
</td>
|
235 |
|
|
<td>
|
236 |
|
|
<h4>Query the Database</h4>
|
237 |
|
|
<p>
|
238 |
|
|
<font size="2">
|
239 |
|
|
Click the Query button to submit your query. The results will be
|
240 |
|
|
displayed below under the heading "Results".
|
241 |
|
|
</font>
|
242 |
304
|
berkley
|
</p>
|
243 |
|
|
</td>
|
244 |
|
|
</tr>
|
245 |
|
|
</table>
|
246 |
386
|
berkley
|
<input type="hidden" name="action" value="query" />
|
247 |
304
|
berkley
|
<input type="hidden" name="qformat" value="html" />
|
248 |
|
|
<input type="hidden" name="operator" value="UNION" />
|
249 |
|
|
|
250 |
318
|
berkley
|
<input type="submit" value="Query" />
|
251 |
|
|
<input type="reset" value="Clear Form" />
|
252 |
304
|
berkley
|
|
253 |
298
|
berkley
|
</form>
|
254 |
304
|
berkley
|
|
255 |
386
|
berkley
|
<a name="browse" />
|
256 |
|
|
<font size="3"><xsl:number value="count(resultset/document)" /> documents
|
257 |
|
|
found.</font>
|
258 |
318
|
berkley
|
<!-- This tests to see if there are returned documents,
|
259 |
|
|
if there are not then don't show the query results
|
260 |
|
|
-->
|
261 |
|
|
<xsl:if test="count(resultset/document) > 0">
|
262 |
304
|
berkley
|
|
263 |
295
|
berkley
|
<center>
|
264 |
304
|
berkley
|
<u><h2>Results</h2></u>
|
265 |
295
|
berkley
|
</center>
|
266 |
|
|
|
267 |
386
|
berkley
|
<form action="@html-path@/servlet/marine" method="POST">
|
268 |
295
|
berkley
|
<input type="hidden" name="action" value="getdocument"/>
|
269 |
318
|
berkley
|
|
270 |
295
|
berkley
|
<table width="100%">
|
271 |
|
|
<tr class="rowodd">
|
272 |
|
|
<th> </th>
|
273 |
|
|
<th><xsl:text>Title</xsl:text></th>
|
274 |
318
|
berkley
|
<th><xsl:text>Owner</xsl:text></th>
|
275 |
|
|
<th><xsl:text>Organization</xsl:text></th>
|
276 |
|
|
<th><xsl:text>Creation Date</xsl:text></th>
|
277 |
|
|
<th><xsl:text>Last Updated</xsl:text></th>
|
278 |
295
|
berkley
|
</tr>
|
279 |
|
|
|
280 |
318
|
berkley
|
|
281 |
|
|
|
282 |
295
|
berkley
|
<xsl:for-each select="resultset/document">
|
283 |
318
|
berkley
|
<xsl:sort select="doctitle"/>
|
284 |
295
|
berkley
|
<tr valign="top">
|
285 |
|
|
<xsl:attribute name="class">
|
286 |
|
|
<xsl:choose>
|
287 |
|
|
<xsl:when test="position() mod 2 = 1">rowwhite</xsl:when>
|
288 |
|
|
<xsl:when test="position() mod 2 = 0">rowlight</xsl:when>
|
289 |
|
|
</xsl:choose>
|
290 |
|
|
</xsl:attribute>
|
291 |
|
|
|
292 |
|
|
<td>
|
293 |
|
|
<input border="0" type="image">
|
294 |
|
|
<xsl:attribute name="src">
|
295 |
|
|
<xsl:choose>
|
296 |
|
|
<xsl:when test="position()
|
297 |
386
|
berkley
|
mod 2 = 1">@html-path@/marine/whiteMenu.jpg</xsl:when>
|
298 |
295
|
berkley
|
<xsl:when test="position()
|
299 |
386
|
berkley
|
mod 2 = 0">@html-path@/marine/blueMenu.jpg</xsl:when>
|
300 |
295
|
berkley
|
</xsl:choose>
|
301 |
|
|
</xsl:attribute>
|
302 |
|
|
<xsl:attribute name="name">
|
303 |
|
|
<xsl:value-of select="./docid"/>
|
304 |
|
|
</xsl:attribute>
|
305 |
|
|
</input>
|
306 |
|
|
</td>
|
307 |
|
|
<td><xsl:value-of select="./doctitle"/>
|
308 |
318
|
berkley
|
|
309 |
295
|
berkley
|
<xsl:text> </xsl:text>
|
310 |
318
|
berkley
|
</td>
|
311 |
386
|
berkley
|
<!-- <td><xsl:value-of select="./givenName" />
|
312 |
318
|
berkley
|
<xsl:text> </xsl:text>
|
313 |
|
|
<xsl:value-of select="./surName" />
|
314 |
|
|
<xsl:text> </xsl:text>
|
315 |
|
|
</td>
|
316 |
|
|
<td><xsl:value-of select="./organizationName" />
|
317 |
|
|
<xsl:text> </xsl:text>
|
318 |
|
|
</td>
|
319 |
295
|
berkley
|
<td>
|
320 |
318
|
berkley
|
<xsl:value-of select="./date_created" />
|
321 |
|
|
<xsl:text> </xsl:text>
|
322 |
295
|
berkley
|
</td>
|
323 |
318
|
berkley
|
<td>
|
324 |
|
|
<xsl:value-of select="./date_updated" />
|
325 |
|
|
<xsl:text> </xsl:text>
|
326 |
386
|
berkley
|
</td> -->
|
327 |
295
|
berkley
|
</tr>
|
328 |
|
|
</xsl:for-each>
|
329 |
|
|
</table>
|
330 |
|
|
</form>
|
331 |
|
|
|
332 |
304
|
berkley
|
<h3><a href="#top">New Query</a></h3>
|
333 |
|
|
|
334 |
318
|
berkley
|
</xsl:if>
|
335 |
|
|
|
336 |
295
|
berkley
|
</body>
|
337 |
|
|
</html>
|
338 |
|
|
</xsl:template>
|
339 |
|
|
|
340 |
|
|
</xsl:stylesheet>
|