Project

General

Profile

1 4345 daigle
<%@ page language="java" contentType="text/html" %>
2
<%@ page isELIgnored="false" %>
3
<%@ page import="java.util.*" %>
4
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
5
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
6
7
<%--
8
  demo lifted from p294  _JavaServer Pages_  by
9
  Hans Bergsten, 3rd ed., O'Reilly (wolf book, ch 15) --%>
10
11
<%-- page data coming from an array of hashmaps for now. db later --%>
12 4350 daigle
<%@ include file="templates/jsp/portal_settings.jsp"%>
13
<%@ include file="templates/jsp/include_session_vars.jsp"%>
14 4345 daigle
<%@ include file="include_indexdata2.jsp" %>
15
16
<?xml version="1.0" encoding="utf-8"?>
17
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
18
<html>
19
<head>
20
  <title>Santa Barbara Coastal LTER: Data Catalog</title>
21
  <style type="text/css">
22
        @import url("http://sbc.lternet.edu/w3_recommended.css");
23
        @import url("http://sbc.lternet.edu/sbclter_wrapper.css");
24
  </style>
25
  <link rel="stylesheet" type="text/css"
26 4348 daigle
          href="<%=STYLE_SKINS_URL%>/sbclter/sbclter.css" />
27 4345 daigle
28
  <!-- thanks to son-of-suckerfish javascript for making the hover menus work in IE
29
  see http://www.htmldog.com/articles/suckerfish/dropdowns/  -->
30
  <script type="text/javascript"><!--//--><![CDATA[//><!--
31
     sfHover = function() {
32
        var sfEls = document.getElementById("nav").getElementsByTagName("li");
33
        for (var i=0; i<sfEls.length; i++) {
34
        sfEls[i].onmouseover=function() {
35
            this.className+=" sfhover";
36
             }
37
            sfEls[i].onmouseout=function() {
38
               this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
39
             }
40
        }
41
     }
42
     if (window.attachEvent) window.attachEvent("onload", sfHover);
43
    //--><!]]>
44
  </script>
45
46
  <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
47
  </script>
48
  <script type="text/javascript">
49
    uacct = "UA-2011494-1";
50
    urchinTracker();
51
  </script>
52
</head>
53
54
<body>
55
	<!-- include the header frag -->
56
	<jsp:include page="sbc_pageheader.htmlf" />
57
58
	<!--begin the left sidebar area-->
59
60
	<!-- begin content -->
61
  <div id="content">
62
<!--  	<div class="content-area"> -->
63
    <div id="index-h3">
64
    		<h3>Browse Datasets by Research Area</h3>
65
     </div>
66
      <!-- login form area -->
67
68
      <table class="onehundred_percent">
69
      <tr><td style="width:60%">
70
71
         <!--  <div> -->
72
               <div class="right-padding">
73
          <p class="instructions">To view metadata (with links to data tables),
74
          click on the Title. For some data packages, additional tools are available:
75
           sampling locations can be browsed using Google maps and data can be queried
76
           (i.e., limit the data returned by date, station and parameter).
77
           If these tools are available, a link will be at the right.</p>
78
          </div>
79
      </td>
80
81
      <td>
82
      <!-- begin search box area -->
83
     <div>
84
    <!--  <div id="search-box_right"> -->
85
      <table class="group group_border">
86
        <tr>
87
          <th>Query Metacat</th>
88
          <th>&nbsp;</th>
89
        </tr>
90
        <tr>
91
          <td>Show metadata for all SBC LTER datasets:</td>
92
        <td>
93 4348 daigle
        <a	href="<%=SERVLET_URL%>?action=squery&amp;qformat=sbclter&amp;query=
94 4345 daigle
      	<%= java.net.URLEncoder.encode(
95
	"<?xml version=\"1.0\"?>" +
96
         "<pathquery version=\"1.2\">" +
97 5710 leinfelder
           "<returndoctype>eml://ecoinformatics.org/eml-2.1.1</returndoctype>" +
98 4505 daigle
           "<returndoctype>eml://ecoinformatics.org/eml-2.1.0</returndoctype>" +
99 4345 daigle
           "<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>" +
100
           "<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>" +
101
           "<returnfield>eml/dataset/title</returnfield>" +
102
           "<returnfield>eml/dataset/creator/individualName/surName</returnfield>" +
103
           "<returnfield>eml/dataset/creator/organizationName</returnfield>" +
104
           "<returnfield>eml/dataset/dataTable/entityName</returnfield>" +
105
           "<returnfield>eml/dataset/dataTable/physical/distribution/online/url</returnfield>" +
106
           "<querygroup operator=\"INTERSECT\">" +
107
             "<queryterm casesensitive=\"false\" searchmode=\"starts-with\">" +
108
               "<value>SBCLTER:</value>" +
109
               "<pathexpr>eml/dataset/title</pathexpr>" +
110
             "</queryterm>" +
111
112
             "<queryterm casesensitive=\"false\" searchmode=\"contains\">" +
113
               "<value>SBCLTER_</value>" +
114
               "<pathexpr>eml/dataset/title</pathexpr>" +
115
             "</queryterm>" +
116
117
             "<queryterm casesensitive=\"true\" searchmode=\"equals\">" +
118
               "<value>public</value>" +
119
               "<pathexpr>eml/dataset/access/allow/principal</pathexpr>" +
120
             "</queryterm>" +
121
           "</querygroup>" +
122
         "</pathquery>") %>"
123
	>
124
             Run Query
125
        </a>
126
      </td>
127
    </tr>
128
    <tr>
129
      <td>Show datasets containing term:</td>
130
      <td><em>available soon</em>
131
           <%--
132
         <form name="searchByTerm" action="search_sbcmetacat.jsp" method="POST">
133
          <input type="text" name="keyword" value="input your search term">
134
         </form>
135
         <p> you chose: <c:out value="${param.keyword}" /></p>
136
       --%>
137
      </td>
138
    </tr>
139
   </table>
140
  </div>
141
142
      </td></tr></table>
143
144
145
146
	<%-- fix this - read the book.
147
  somehow, a bean should hold the array name to for each category. maybe this?
148
	<jsp:useBean id="dp_groupBean" class="java.lang.String" />
149
150
<!-- then later, pass the groupname into the template, as a variable, not a string. -->
151
             <c:set var="dp_group" value="streamchemistry_dps" />
152
              <c:out value="${dp_group}" />
153
              <%@ include file="templates/jsp/table_dp_list.tmpl" %>
154
--%>
155
    <table class="group onehundred_percent">
156
    <tr>
157
     	<th>a. Patterns, transport, and processing of organic and inorganic inputs to coastal reefs</th>
158
      </tr>
159
      <tr><td>
160
					<ul class="ul-bulleted-list">
161
          	<li>Stream Chemistry</li>
162
						<table class="group  onehundred_percent">
163
						 <c:forEach items="${streamchemistry_dps}" var="current_dp">
164
  						<tr>
165 4348 daigle
   						<td><a href="<%=SERVLET_URL%>?action=read&qformat=sbclter&docid=${current_dp.docid}">${current_dp.name}</a> (${current_dp.docid})</td>
166 4345 daigle
              <td class="text_align_right">
167
               <c:if test="${!empty current_dp.queryapp_controller}">
168
                  <a href="http://sbclter.msi.ucsb.edu/${current_dp.queryapp_controller}">Browse station map and/or query data</a>
169
                  </c:if>
170
                  </td>
171
  					 </tr>
172
 						</c:forEach>
173
						</table>
174
						</li>
175
176
            <li>Hydrology</li>
177
                <table class="group  onehundred_percent">
178
                <c:forEach items="${hydrology_dps}" var="current_dp">
179
                  <tr>
180 4348 daigle
                  <td><a href="<%=SERVLET_URL%>?action=read&qformat=sbclter&docid=${current_dp.docid}">${current_dp.name}</a> (${current_dp.docid})</td>
181 4345 daigle
            <td class="text_align_right">
182
             <c:if test="${!empty current_dp.queryapp_controller}">
183
                  <a href="http://sbclter.msi.ucsb.edu/${current_dp.queryapp_controller}">Browse station map and/or query data</a>
184
                  </c:if>
185
                  </td>
186
                  </tr>
187
                </c:forEach>
188
              </table>
189
190
            <li>Watershed Characteristics</li>
191
						     <table class="group  onehundred_percent">
192
                <c:forEach items="${gis_dps}" var="current_dp">
193
                  <tr>
194 4348 daigle
                  <td><a href="<%=SERVLET_URL%>?action=read&qformat=sbclter&docid=${current_dp.docid}">${current_dp.name}</a> (${current_dp.docid})</td>
195 4345 daigle
            <td class="text_align_right">
196
            <c:if test="${!empty current_dp.queryapp_controller}">
197
                  <a href="http://sbclter.msi.ucsb.edu/${current_dp.queryapp_controller}">Browse station map and/or query data</a>
198
                  </c:if>
199
                  </td>
200
                  </tr>
201
                </c:forEach>
202
              </table>
203
204
						<li>Ocean Currents and Biogeochemistry
205
              <ul>
206
                <li>Core measurements</li>
207
								<table class="group  onehundred_percent">
208
  							<c:forEach items="${biogeochemistry_core_dps}" var="current_dp">
209
    							<tr>
210 4348 daigle
									<td><a href="<%=SERVLET_URL%>?action=read&qformat=sbclter&docid=${current_dp.docid}">${current_dp.name}</a> (${current_dp.docid})</td>
211 4345 daigle
                  <td  class="text_align_right">
212
                   <c:if test="${!empty current_dp.queryapp_controller}">
213
                  <a href="http://sbclter.msi.ucsb.edu/${current_dp.queryapp_controller}">Browse station map and/or query data</a>
214
                  </c:if>
215
                  </td>
216
    							</tr>
217
  							</c:forEach>
218
							</table>
219
              <li>Experiments</li>
220
								<table class="group  onehundred_percent">
221
  							<c:forEach items="${biogeochemistry_campaign_dps}" var="current_dp">
222
    							<tr>
223 4348 daigle
									<td><a href="<%=SERVLET_URL%>?action=read&qformat=sbclter&docid=${current_dp.docid}">${current_dp.name}</a> (${current_dp.docid})</td>
224 4345 daigle
                  <td class="text_align_right">
225
                   <c:if test="${!empty current_dp.queryapp_controller}">
226
                  <a href="http://sbclter.msi.ucsb.edu/${current_dp.queryapp_controller}">Browse station map and/or query data</a>
227
                  </c:if>
228
                  </td>
229
    							</tr>
230
  							</c:forEach>
231
							</table>
232
              </ul>
233
             </li><!-- closes currents and biogeo -->
234
					</ul>
235
          </td></tr>
236
          </table>
237
238
239
<!-- begin part b) primary production -->
240
     <table class="group onehundred_percent">
241
    <tr>
242
     	<th>b. Patterns and controls of biomass and primary production</th>
243
      </tr>
244
      <tr><td>
245
          <ul class="ul-bulleted-list">
246
            <li>Biomass and primary production of giant kelp</li>
247
            <table class="group  onehundred_percent">
248
             <c:forEach items="${biomasspp_kelp_dps}" var="current_dp">
249
              <tr>
250 4348 daigle
              <td><a href="<%=SERVLET_URL%>?action=read&qformat=sbclter&docid=${current_dp.docid}">${current_dp.name}</a> (${current_dp.docid})</td>
251 4345 daigle
              <td class="text_align_right">
252
               <c:if test="${!empty current_dp.queryapp_controller}">
253
                  <a href="http://sbclter.msi.ucsb.edu/${current_dp.queryapp_controller}">Browse station map and/or query data</a>
254
                  </c:if>
255
              </td>
256
             </tr>
257
            </c:forEach>
258
            </table>
259
            </li>
260
261
            <li>Biomass and primary production of phytoplankton in the Santa Barbara Channel
262
                <table class="group  onehundred_percent">
263
                <c:forEach items="${biomasspp_phyto_dps}" var="current_dp">
264
                  <tr>
265 4348 daigle
                  <td><a href="<%=SERVLET_URL%>?action=read&qformat=sbclter&docid=${current_dp.docid}">${current_dp.name}</a> (${current_dp.docid})</td>
266 4345 daigle
            <td class="text_align_right">
267
             <c:if test="${!empty current_dp.queryapp_controller}">
268
                  <a href="http://sbclter.msi.ucsb.edu/${current_dp.queryapp_controller}">Browse station map and/or query data</a>
269
                  </c:if>
270
            </td>
271
                  </tr>
272
                </c:forEach>
273
              </table>
274
						</li>
275
					</ul>
276
          </td></tr></table>
277
278
<!-- begin part c) population dynamics -->
279
     <table class="group onehundred_percent">
280
    <tr>
281
     	<th>c. Disturbance and population dynamics of kelp forest communities</th>
282
      </tr>
283
      <tr><td>
284
          <ul class="ul-bulleted-list">
285
            <li>Kelp forest community structure and dynamics</li>
286
            <table class="group  onehundred_percent">
287
             <c:forEach items="${population_dps}" var="current_dp">
288
              <tr>
289 4348 daigle
              <td><a href="<%=SERVLET_URL%>?action=read&qformat=sbclter&docid=${current_dp.docid}">${current_dp.name}</a> (${current_dp.docid})</td>
290 4345 daigle
              <td class="text_align_right">
291
                <c:if test="${!empty current_dp.queryapp_controller}">
292
                  <a href="http://sbclter.msi.ucsb.edu/${current_dp.queryapp_controller}">Browse station map and/or query data</a>
293
                  </c:if>
294
                  </td>
295
             </tr>
296
            </c:forEach>
297
            </table>
298
            </li>
299
					</ul>
300
          </td></tr></table>
301
302
303
			<!-- begin part d) trophic structure -->
304
     <table class="group onehundred_percent">
305
    <tr>
306
     	<th>d.  Species interactions, trophic structure and food web dynamics</th>
307
      </tr>
308
      <tr><td>
309
          <ul class="ul-bulleted-list">
310
            <li>Food web studies using stable isotope ratio analysis</li>
311
            <table class="group  onehundred_percent">
312
             <c:forEach items="${foodweb_dps}" var="current_dp">
313
              <tr>
314 4348 daigle
              <td><a href="<%=SERVLET_URL%>?action=read&qformat=sbclter&docid=${current_dp.docid}">${current_dp.name}</a> (${current_dp.docid})</td>
315 4345 daigle
              <td class="text_align_right">
316
               <c:if test="${!empty current_dp.queryapp_controller}">
317
                  <a href="http://sbclter.msi.ucsb.edu/${current_dp.queryapp_controller}">Browse station map and/or query data</a>
318
                  </c:if>
319
              </td>
320
             </tr>
321
            </c:forEach>
322
            </table>
323
            </li>
324
					</ul>
325
          </td></tr>
326
          </table>
327
328
329
330
331
332
<!--</div>  close id content-area -->
333
</div> <!-- close class content -->
334
</body>
335
</html>