Project

General

Profile

1
<%@ 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
<%@ include file="include_indexdata2.jsp" %>
13

    
14
<?xml version="1.0" encoding="utf-8"?>
15
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
16
<html>
17
<head>
18
  <title>Santa Barbara Coastal LTER: Data Catalog</title>
19
  <style type="text/css">
20
        @import url("http://sbc.lternet.edu/w3_recommended.css");
21
        @import url("http://sbc.lternet.edu/sbclter_wrapper.css");
22
  </style>
23
  <link rel="stylesheet" type="text/css"
24
          href="<%=STYLE_SKINS_URL%>/sbclter/sbclter.css" /> 
25

    
26
  <!-- thanks to son-of-suckerfish javascript for making the hover menus work in IE
27
  see http://www.htmldog.com/articles/suckerfish/dropdowns/  -->
28
  <script type="text/javascript"><!--//--><![CDATA[//><!--
29
     sfHover = function() {
30
        var sfEls = document.getElementById("nav").getElementsByTagName("li");
31
        for (var i=0; i<sfEls.length; i++) {
32
        sfEls[i].onmouseover=function() {
33
            this.className+=" sfhover";
34
             }
35
            sfEls[i].onmouseout=function() {
36
               this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
37
             }
38
        }
39
     }
40
     if (window.attachEvent) window.attachEvent("onload", sfHover);
41
    //--><!]]>
42
  </script>
43

    
44
  <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
45
  </script>
46
  <script type="text/javascript">
47
    uacct = "UA-2011494-1";
48
    urchinTracker();
49
  </script>
50
</head>
51

    
52
<body>
53
	<!-- include the header frag -->
54
	<jsp:include page="sbc_pageheader.htmlf" />
55

    
56
	<!--begin the left sidebar area-->
57

    
58
	<!-- begin content -->
59
  <div id="content">
60
<!--  	<div class="content-area"> -->
61
    <div id="index-h3">
62
    		<h3>Browse Datasets by Research Area</h3>
63
     </div>
64
      <!-- login form area -->
65
      
66
      <table class="onehundred_percent">
67
      <tr><td style="width:60%">
68
      
69
         <!--  <div> -->
70
               <div class="right-padding"> 
71
          <p class="instructions">To view metadata (with links to data tables), 
72
          click on the Title. For some data packages, additional tools are available:
73
           sampling locations can be browsed using Google maps and data can be queried 
74
           (i.e., limit the data returned by date, station and parameter). 
75
           If these tools are available, a link will be at the right.</p>
76
          </div>
77
      </td>
78
      
79
      <td>
80
      <!-- begin search box area -->
81
     <div>
82
    <!--  <div id="search-box_right"> --> 
83
      <table class="group group_border">
84
        <tr>
85
          <th>Query Metacat</th> 
86
          <th>&nbsp;</th>
87
        </tr>
88
        <tr>
89
          <td>Show metadata for all SBC LTER datasets:</td>
90
        <td>           
91
        <a	href="<%=SERVLET_URL%>?action=squery&amp;qformat=sbclter&amp;query=
92
      	<%= java.net.URLEncoder.encode(
93
	"<?xml version=\"1.0\"?>" +
94
         "<pathquery version=\"1.2\">" +
95
           "<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>" +
96
           "<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>" +
97
           "<returnfield>eml/dataset/title</returnfield>" +
98
           "<returnfield>eml/dataset/creator/individualName/surName</returnfield>" +
99
           "<returnfield>eml/dataset/creator/organizationName</returnfield>" +
100
           "<returnfield>eml/dataset/dataTable/entityName</returnfield>" +
101
           "<returnfield>eml/dataset/dataTable/physical/distribution/online/url</returnfield>" +
102
           "<querygroup operator=\"INTERSECT\">" +
103
             "<queryterm casesensitive=\"false\" searchmode=\"starts-with\">" +
104
               "<value>SBCLTER:</value>" +
105
               "<pathexpr>eml/dataset/title</pathexpr>" +
106
             "</queryterm>" +
107
  
108
             "<queryterm casesensitive=\"false\" searchmode=\"contains\">" +
109
               "<value>SBCLTER_</value>" +
110
               "<pathexpr>eml/dataset/title</pathexpr>" +
111
             "</queryterm>" +
112
               
113
             "<queryterm casesensitive=\"true\" searchmode=\"equals\">" +
114
               "<value>public</value>" +
115
               "<pathexpr>eml/dataset/access/allow/principal</pathexpr>" +
116
             "</queryterm>" +
117
           "</querygroup>" +
118
         "</pathquery>") %>"
119
	>
120
             Run Query
121
        </a>
122
      </td>
123
    </tr>
124
    <tr>
125
      <td>Show datasets containing term:</td>
126
      <td><em>available soon</em>
127
           <%--
128
         <form name="searchByTerm" action="search_sbcmetacat.jsp" method="POST">
129
          <input type="text" name="keyword" value="input your search term"> 
130
         </form>
131
         <p> you chose: <c:out value="${param.keyword}" /></p>
132
       --%>
133
      </td>
134
    </tr>
135
   </table>
136
  </div>
137
  
138
      </td></tr></table>
139
      
140
      
141
    
142
	<%-- fix this - read the book. 
143
  somehow, a bean should hold the array name to for each category. maybe this?
144
	<jsp:useBean id="dp_groupBean" class="java.lang.String" />
145

    
146
<!-- then later, pass the groupname into the template, as a variable, not a string. -->
147
             <c:set var="dp_group" value="streamchemistry_dps" />
148
              <c:out value="${dp_group}" />
149
              <%@ include file="templates/jsp/table_dp_list.tmpl" %>
150
--%>
151
    <table class="group onehundred_percent">
152
    <tr>
153
     	<th>a. Patterns, transport, and processing of organic and inorganic inputs to coastal reefs</th>
154
      </tr>
155
      <tr><td>
156
					<ul class="ul-bulleted-list">
157
          	<li>Stream Chemistry</li>
158
						<table class="group  onehundred_percent">
159
						 <c:forEach items="${streamchemistry_dps}" var="current_dp">
160
  						<tr>
161
   						<td><a href="<%=SERVLET_URL%>?action=read&qformat=sbclter&docid=${current_dp.docid}">${current_dp.name}</a> (${current_dp.docid})</td>
162
              <td class="text_align_right">
163
               <c:if test="${!empty current_dp.queryapp_controller}">
164
                  <a href="http://sbclter.msi.ucsb.edu/${current_dp.queryapp_controller}">Browse station map and/or query data</a> 
165
                  </c:if>
166
                  </td>
167
  					 </tr>
168
 						</c:forEach>
169
						</table>
170
						</li>
171

    
172
            <li>Hydrology</li>
173
                <table class="group  onehundred_percent">
174
                <c:forEach items="${hydrology_dps}" var="current_dp">
175
                  <tr>
176
                  <td><a href="<%=SERVLET_URL%>?action=read&qformat=sbclter&docid=${current_dp.docid}">${current_dp.name}</a> (${current_dp.docid})</td>
177
            <td class="text_align_right">
178
             <c:if test="${!empty current_dp.queryapp_controller}">
179
                  <a href="http://sbclter.msi.ucsb.edu/${current_dp.queryapp_controller}">Browse station map and/or query data</a> 
180
                  </c:if>
181
                  </td>
182
                  </tr>
183
                </c:forEach>
184
              </table>
185

    
186
            <li>Watershed Characteristics</li>
187
						     <table class="group  onehundred_percent">
188
                <c:forEach items="${gis_dps}" var="current_dp">
189
                  <tr>
190
                  <td><a href="<%=SERVLET_URL%>?action=read&qformat=sbclter&docid=${current_dp.docid}">${current_dp.name}</a> (${current_dp.docid})</td>
191
            <td class="text_align_right">
192
            <c:if test="${!empty current_dp.queryapp_controller}">
193
                  <a href="http://sbclter.msi.ucsb.edu/${current_dp.queryapp_controller}">Browse station map and/or query data</a> 
194
                  </c:if>
195
                  </td>
196
                  </tr>
197
                </c:forEach>
198
              </table>
199

    
200
						<li>Ocean Currents and Biogeochemistry
201
              <ul>
202
                <li>Core measurements</li>
203
								<table class="group  onehundred_percent">
204
  							<c:forEach items="${biogeochemistry_core_dps}" var="current_dp">
205
    							<tr>
206
									<td><a href="<%=SERVLET_URL%>?action=read&qformat=sbclter&docid=${current_dp.docid}">${current_dp.name}</a> (${current_dp.docid})</td>
207
                  <td  class="text_align_right">
208
                   <c:if test="${!empty current_dp.queryapp_controller}">
209
                  <a href="http://sbclter.msi.ucsb.edu/${current_dp.queryapp_controller}">Browse station map and/or query data</a> 
210
                  </c:if>
211
                  </td>
212
    							</tr>
213
  							</c:forEach>
214
							</table>
215
              <li>Experiments</li>
216
								<table class="group  onehundred_percent">
217
  							<c:forEach items="${biogeochemistry_campaign_dps}" var="current_dp">
218
    							<tr>
219
									<td><a href="<%=SERVLET_URL%>?action=read&qformat=sbclter&docid=${current_dp.docid}">${current_dp.name}</a> (${current_dp.docid})</td>
220
                  <td class="text_align_right">
221
                   <c:if test="${!empty current_dp.queryapp_controller}">
222
                  <a href="http://sbclter.msi.ucsb.edu/${current_dp.queryapp_controller}">Browse station map and/or query data</a> 
223
                  </c:if>
224
                  </td>
225
    							</tr>
226
  							</c:forEach>
227
							</table>              
228
              </ul> 
229
             </li><!-- closes currents and biogeo -->
230
					</ul>
231
          </td></tr>
232
          </table>
233

    
234

    
235
<!-- begin part b) primary production -->				
236
     <table class="group onehundred_percent">
237
    <tr>
238
     	<th>b. Patterns and controls of biomass and primary production</th>
239
      </tr>
240
      <tr><td>     
241
          <ul class="ul-bulleted-list">
242
            <li>Biomass and primary production of giant kelp</li>
243
            <table class="group  onehundred_percent">
244
             <c:forEach items="${biomasspp_kelp_dps}" var="current_dp">
245
              <tr>
246
              <td><a href="<%=SERVLET_URL%>?action=read&qformat=sbclter&docid=${current_dp.docid}">${current_dp.name}</a> (${current_dp.docid})</td>
247
              <td class="text_align_right">
248
               <c:if test="${!empty current_dp.queryapp_controller}">
249
                  <a href="http://sbclter.msi.ucsb.edu/${current_dp.queryapp_controller}">Browse station map and/or query data</a> 
250
                  </c:if>
251
              </td>
252
             </tr>
253
            </c:forEach>
254
            </table>
255
            </li>
256

    
257
            <li>Biomass and primary production of phytoplankton in the Santa Barbara Channel
258
                <table class="group  onehundred_percent">
259
                <c:forEach items="${biomasspp_phyto_dps}" var="current_dp">
260
                  <tr>
261
                  <td><a href="<%=SERVLET_URL%>?action=read&qformat=sbclter&docid=${current_dp.docid}">${current_dp.name}</a> (${current_dp.docid})</td>
262
            <td class="text_align_right">
263
             <c:if test="${!empty current_dp.queryapp_controller}">
264
                  <a href="http://sbclter.msi.ucsb.edu/${current_dp.queryapp_controller}">Browse station map and/or query data</a> 
265
                  </c:if>
266
            </td>
267
                  </tr>
268
                </c:forEach>
269
              </table>
270
						</li>
271
					</ul>
272
          </td></tr></table>
273

    
274
<!-- begin part c) population dynamics -->				
275
     <table class="group onehundred_percent">
276
    <tr>
277
     	<th>c. Disturbance and population dynamics of kelp forest communities</th>
278
      </tr>
279
      <tr><td>     
280
          <ul class="ul-bulleted-list">
281
            <li>Kelp forest community structure and dynamics</li>
282
            <table class="group  onehundred_percent">
283
             <c:forEach items="${population_dps}" var="current_dp">
284
              <tr>
285
              <td><a href="<%=SERVLET_URL%>?action=read&qformat=sbclter&docid=${current_dp.docid}">${current_dp.name}</a> (${current_dp.docid})</td>
286
              <td class="text_align_right">
287
                <c:if test="${!empty current_dp.queryapp_controller}">
288
                  <a href="http://sbclter.msi.ucsb.edu/${current_dp.queryapp_controller}">Browse station map and/or query data</a> 
289
                  </c:if>
290
                  </td>
291
             </tr>
292
            </c:forEach>
293
            </table>
294
            </li>
295
					</ul>
296
          </td></tr></table>
297

    
298

    
299
			<!-- begin part d) trophic structure -->				
300
     <table class="group onehundred_percent">
301
    <tr>
302
     	<th>d.  Species interactions, trophic structure and food web dynamics</th>
303
      </tr>
304
      <tr><td>     
305
          <ul class="ul-bulleted-list">
306
            <li>Food web studies using stable isotope ratio analysis</li>
307
            <table class="group  onehundred_percent">
308
             <c:forEach items="${foodweb_dps}" var="current_dp">
309
              <tr>
310
              <td><a href="<%=SERVLET_URL%>?action=read&qformat=sbclter&docid=${current_dp.docid}">${current_dp.name}</a> (${current_dp.docid})</td>
311
              <td class="text_align_right">
312
               <c:if test="${!empty current_dp.queryapp_controller}">
313
                  <a href="http://sbclter.msi.ucsb.edu/${current_dp.queryapp_controller}">Browse station map and/or query data</a> 
314
                  </c:if>
315
              </td>
316
             </tr>
317
            </c:forEach>
318
            </table>
319
            </li>
320
					</ul>
321
          </td></tr>
322
          </table>
323

    
324

    
325

    
326

    
327

    
328
<!--</div>  close id content-area -->
329
</div> <!-- close class content -->
330
</body>
331
</html>
(5-5/14)