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

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

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

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

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

    
236

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

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

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

    
300

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

    
326

    
327

    
328

    
329

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