Project

General

Profile

1
<%@ page    language="java" %>
2
<%
3
/**
4
 * 
5
 * '$RCSfile$'
6
 * Copyright: 2008 Regents of the University of California and the
7
 *             National Center for Ecological Analysis and Synthesis
8
 *    '$Author: leinfelder $'
9
 *      '$Date: 2008-09-24 16:04:27 -0700 (Wed, 24 Sep 2008) $'
10
 * '$Revision: 4387 $'
11
 * 
12
 * This program is free software; you can redistribute it and/or modify
13
 * it under the terms of the GNU General Public License as published by
14
 * the Free Software Foundation; either version 2 of the License, or
15
 * (at your option) any later version.
16
 * 
17
 * This program is distributed in the hope that it will be useful,
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 * GNU General Public License for more details.
21
     
22
 * You should have received a copy of the GNU General Public License
23
 * along with this program; if not, write to the Free Software
24
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
25
 */  
26
%>
27

    
28
<%@ include file="../../common/common-settings.jsp"%>
29
<%@ include file="../../common/configure-check.jsp"%>
30
<%@page import="edu.ucsb.nceas.metacat.service.SessionService"%>
31
<%@page import="java.util.Map"%>
32

    
33

    
34
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
35
<%@page import="java.util.Iterator"%>
36
<html>
37
<head>
38
<title>FIRST Data Repository</title>
39
<link rel="stylesheet" type="text/css"
40
	href="<%=STYLE_SKINS_URL%>/first/first.css"></link>
41
</head>
42

    
43
<body>
44
<table width="100%" border="0" cellspacing="0" cellpadding="0">
45
	<tr valign="top">
46
		<td width="400">
47
			<img src="<%=STYLE_SKINS_URL%>/first/images/first2banner.jpg">	
48
		</td>
49
		<td>
50
			<table width="100%">
51
				<tr>
52
					<th colspan="3" class="title">
53
						FIRST Data Repository
54
					</th>
55
				</tr>
56
				<tr>
57
					<td>
58
						<a href="index.jsp" target="_top">
59
						Search	
60
						</a>
61
					</td>
62
					<!--
63
					<td valign="top">
64
						<p><a href="http://www.first2.org" target=_top">FIRST Site</a></p>
65
					</td>
66
					-->
67
					<td valign="top">
68
						<p><a href="about.jsp" target="_top">About</a></p>
69
					</td>
70
					<td>
71
						<%
72
						String[] docids = 
73
							SessionService.getRegisteredSession(request.getSession().getId()).getDocumentCart().getDocids();
74
						Map fields = 
75
							SessionService.getRegisteredSession(request.getSession().getId()).getDocumentCart().getFields();
76
						%>
77
						<a href="cart.jsp" target="_top">
78
							Cart 
79
						</a>	
80
							(Items: <%=docids.length %>, Fields: <%=fields.size() %>)
81
					</td>
82
				</tr>
83
				<tr>
84
					<td colspan="3">
85
						<!-- for use when downloading merged data -->
86
						<form id='fieldForm'>
87
						<%
88
						Iterator fieldIter =  fields.keySet().iterator();
89
						while (fieldIter.hasNext()) {
90
							String key = (String) fieldIter.next();
91
							String value = (String) fields.get(key);
92
						%>
93
							<input type="hidden" name="<%=key %>" value="<%=value %>" />
94
						<%	
95
						}
96
						%>	
97
						</form>
98
					</td>
99
				</tr>
100
			</table>
101
		</td>
102
	</tr>
103
</table>		
104
</body>
105
</html>
(12-12/14)