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="templates/jsp/portal_settings.jsp"%>
13
<%@ include file="templates/jsp/include_session_vars.jsp"%>
14
<%@ 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
          href="<%=STYLE_SKINS_URL%>/sbclter/sbclter.css" /> 
27

    
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
        <a	href="<%=SERVLET_URL%>?action=squery&amp;qformat=sbclter&amp;query=
94
      	<%= java.net.URLEncoder.encode(
95
	"<?xml version=\"1.0\"?>" +
96
         "<pathquery version=\"1.2\">" +
97
           "<returndoctype>eml://ecoinformatics.org/eml-2.1.0</returndoctype>" +
98
           "<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>" +
99
           "<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>" +
100
           "<returnfield>eml/dataset/title</returnfield>" +
101
           "<returnfield>eml/dataset/creator/individualName/surName</returnfield>" +
102
           "<returnfield>eml/dataset/creator/organizationName</returnfield>" +
103
           "<returnfield>eml/dataset/dataTable/entityName</returnfield>" +
104
           "<returnfield>eml/dataset/dataTable/physical/distribution/online/url</returnfield>" +
105
           "<querygroup operator=\"INTERSECT\">" +
106
             "<queryterm casesensitive=\"false\" searchmode=\"starts-with\">" +
107
               "<value>SBCLTER:</value>" +
108
               "<pathexpr>eml/dataset/title</pathexpr>" +
109
             "</queryterm>" +
110
  
111
             "<queryterm casesensitive=\"false\" searchmode=\"contains\">" +
112
               "<value>SBCLTER_</value>" +
113
               "<pathexpr>eml/dataset/title</pathexpr>" +
114
             "</queryterm>" +
115
               
116
             "<queryterm casesensitive=\"true\" searchmode=\"equals\">" +
117
               "<value>public</value>" +
118
               "<pathexpr>eml/dataset/access/allow/principal</pathexpr>" +
119
             "</queryterm>" +
120
           "</querygroup>" +
121
         "</pathquery>") %>"
122
	>
123
             Run Query
124
        </a>
125
      </td>
126
    </tr>
127
    <tr>
128
      <td>Show datasets containing term:</td>
129
      <td><em>available soon</em>
130
           <%--
131
         <form name="searchByTerm" action="search_sbcmetacat.jsp" method="POST">
132
          <input type="text" name="keyword" value="input your search term"> 
133
         </form>
134
         <p> you chose: <c:out value="${param.keyword}" /></p>
135
       --%>
136
      </td>
137
    </tr>
138
   </table>
139
  </div>
140
  
141
      </td></tr></table>
142
      
143
      
144
    
145
	<%-- fix this - read the book. 
146
  somehow, a bean should hold the array name to for each category. maybe this?
147
	<jsp:useBean id="dp_groupBean" class="java.lang.String" />
148

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

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

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

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

    
237

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

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

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

    
301

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

    
327

    
328

    
329

    
330

    
331
<!--</div>  close id content-area -->
332
</div> <!-- close class content -->
333
</body>
334
</html>
(5-5/14)