1 |
4235
|
leinfelder
|
<%@ 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$'
|
9 |
|
|
* '$Date$'
|
10 |
|
|
* '$Revision$'
|
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 |
3510
|
leinfelder
|
|
28 |
4235
|
leinfelder
|
<%@ include file="../../common/common-settings.jsp"%>
|
29 |
|
|
<%@ include file="../../common/configure-check.jsp"%>
|
30 |
4380
|
leinfelder
|
<%@page import="edu.ucsb.nceas.metacat.service.SessionService"%>
|
31 |
4387
|
leinfelder
|
<%@page import="java.util.Map"%>
|
32 |
3510
|
leinfelder
|
|
33 |
4387
|
leinfelder
|
|
34 |
3510
|
leinfelder
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
35 |
4387
|
leinfelder
|
<%@page import="java.util.Iterator"%>
|
36 |
3510
|
leinfelder
|
<html>
|
37 |
|
|
<head>
|
38 |
|
|
<title>FIRST Data Repository</title>
|
39 |
|
|
<link rel="stylesheet" type="text/css"
|
40 |
4235
|
leinfelder
|
href="<%=STYLE_SKINS_URL%>/first/first.css"></link>
|
41 |
4388
|
leinfelder
|
<script language="Javascript" type="text/JavaScript"
|
42 |
|
|
src="<%=STYLE_COMMON_URL%>/prototype-1.5.1.1/prototype.js">
|
43 |
|
|
</script>
|
44 |
|
|
<script language="Javascript" type="text/JavaScript"
|
45 |
|
|
src="<%=STYLE_COMMON_URL%>/effects.js">
|
46 |
|
|
</script>
|
47 |
|
|
<script language="Javascript">
|
48 |
|
|
|
49 |
|
|
function highlight() {
|
50 |
|
|
//Effect.Pulsate('importantThings', { pulses: 1, duration: 2 });
|
51 |
|
|
//Effect.Fade('importantThings');
|
52 |
|
|
Effect.Shake('importantThings');
|
53 |
|
|
}
|
54 |
|
|
</script>
|
55 |
|
|
|
56 |
3510
|
leinfelder
|
</head>
|
57 |
|
|
|
58 |
4388
|
leinfelder
|
<body onload="highlight()">
|
59 |
4387
|
leinfelder
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
60 |
3510
|
leinfelder
|
<tr valign="top">
|
61 |
4387
|
leinfelder
|
<td width="400">
|
62 |
4380
|
leinfelder
|
<img src="<%=STYLE_SKINS_URL%>/first/images/first2banner.jpg">
|
63 |
3510
|
leinfelder
|
</td>
|
64 |
|
|
<td>
|
65 |
4387
|
leinfelder
|
<table width="100%">
|
66 |
3510
|
leinfelder
|
<tr>
|
67 |
4380
|
leinfelder
|
<th colspan="3" class="title">
|
68 |
|
|
FIRST Data Repository
|
69 |
|
|
</th>
|
70 |
3510
|
leinfelder
|
</tr>
|
71 |
|
|
<tr>
|
72 |
4380
|
leinfelder
|
<td>
|
73 |
|
|
<a href="index.jsp" target="_top">
|
74 |
|
|
Search
|
75 |
|
|
</a>
|
76 |
3510
|
leinfelder
|
</td>
|
77 |
4380
|
leinfelder
|
<!--
|
78 |
3510
|
leinfelder
|
<td valign="top">
|
79 |
4380
|
leinfelder
|
<p><a href="http://www.first2.org" target=_top">FIRST Site</a></p>
|
80 |
3510
|
leinfelder
|
</td>
|
81 |
4380
|
leinfelder
|
-->
|
82 |
3510
|
leinfelder
|
<td valign="top">
|
83 |
4380
|
leinfelder
|
<p><a href="about.jsp" target="_top">About</a></p>
|
84 |
3510
|
leinfelder
|
</td>
|
85 |
4380
|
leinfelder
|
<td>
|
86 |
|
|
<%
|
87 |
|
|
String[] docids =
|
88 |
|
|
SessionService.getRegisteredSession(request.getSession().getId()).getDocumentCart().getDocids();
|
89 |
4387
|
leinfelder
|
Map fields =
|
90 |
|
|
SessionService.getRegisteredSession(request.getSession().getId()).getDocumentCart().getFields();
|
91 |
4380
|
leinfelder
|
%>
|
92 |
|
|
<a href="cart.jsp" target="_top">
|
93 |
4387
|
leinfelder
|
Cart
|
94 |
4380
|
leinfelder
|
</a>
|
95 |
4388
|
leinfelder
|
<div id="importantThings">
|
96 |
|
|
(Items: <%=docids.length %>, Fields: <%=fields.size() %>)
|
97 |
|
|
</div>
|
98 |
4380
|
leinfelder
|
</td>
|
99 |
3510
|
leinfelder
|
</tr>
|
100 |
4387
|
leinfelder
|
<tr>
|
101 |
|
|
<td colspan="3">
|
102 |
|
|
<!-- for use when downloading merged data -->
|
103 |
|
|
<form id='fieldForm'>
|
104 |
|
|
<%
|
105 |
|
|
Iterator fieldIter = fields.keySet().iterator();
|
106 |
|
|
while (fieldIter.hasNext()) {
|
107 |
|
|
String key = (String) fieldIter.next();
|
108 |
|
|
String value = (String) fields.get(key);
|
109 |
|
|
%>
|
110 |
|
|
<input type="hidden" name="<%=key %>" value="<%=value %>" />
|
111 |
|
|
<%
|
112 |
|
|
}
|
113 |
|
|
%>
|
114 |
|
|
</form>
|
115 |
|
|
</td>
|
116 |
|
|
</tr>
|
117 |
3510
|
leinfelder
|
</table>
|
118 |
4380
|
leinfelder
|
</td>
|
119 |
3510
|
leinfelder
|
</tr>
|
120 |
|
|
</table>
|
121 |
|
|
</body>
|
122 |
|
|
</html>
|