1 |
3702
|
barteau
|
<%@ page errorPage="jsperrorpage.html" import="javax.servlet.http.*" %>
|
2 |
1929
|
brooke
|
<!--
|
3 |
|
|
* '$RCSfile$'
|
4 |
|
|
* Authors: Matthew Brooke
|
5 |
|
|
* Copyright: 2000 Regents of the University of California and the
|
6 |
|
|
* National Center for Ecological Analysis and Synthesis
|
7 |
|
|
* For Details: http://www.nceas.ucsb.edu/
|
8 |
|
|
*
|
9 |
|
|
* '$Author$'
|
10 |
|
|
* '$Date$'
|
11 |
|
|
* '$Revision$'
|
12 |
|
|
*
|
13 |
|
|
* Settings file for the default metacat skin
|
14 |
|
|
*
|
15 |
|
|
* This program is free software; you can redistribute it and/or modify
|
16 |
|
|
* it under the terms of the GNU General Public License as published by
|
17 |
|
|
* the Free Software Foundation; either version 2 of the License, or
|
18 |
|
|
* (at your option) any later version.
|
19 |
|
|
*
|
20 |
|
|
* This program is distributed in the hope that it will be useful,
|
21 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
22 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
23 |
|
|
* GNU General Public License for more details.
|
24 |
|
|
*
|
25 |
|
|
* You should have received a copy of the GNU General Public License
|
26 |
|
|
* along with this program; if not, write to the Free Software
|
27 |
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
28 |
|
|
-->
|
29 |
2219
|
sgarg
|
<%
|
30 |
1929
|
brooke
|
|
31 |
|
|
// GLOBAL CONSTANTS FOR KNB PORTAL PAGE /////////////////////////////////////
|
32 |
3726
|
tao
|
|
33 |
|
|
// CONTEXT NAME of metacat installed:
|
34 |
|
|
String CONTEXT_NAME = request.getContextPath();
|
35 |
|
|
|
36 |
3727
|
leinfelder
|
// URL of SERVER with context (and optional port)
|
37 |
|
|
String SERVER_URL_WITH_CONTEXT = request.getScheme() + "://" + request.getServerName();
|
38 |
|
|
if ( request.getLocalPort() != 80 ) {
|
39 |
|
|
SERVER_URL_WITH_CONTEXT += ":" + request.getLocalPort();
|
40 |
|
|
}
|
41 |
|
|
SERVER_URL_WITH_CONTEXT += CONTEXT_NAME;
|
42 |
1929
|
brooke
|
|
43 |
|
|
// URL of metacat to be used for login & searching:
|
44 |
3726
|
tao
|
String METACAT_URL = SERVER_URL_WITH_CONTEXT+ "/metacat";
|
45 |
1929
|
brooke
|
|
46 |
|
|
// label for logout form button when user *is* logged in:
|
47 |
|
|
String LOGOUT_LABEL = "Logout";
|
48 |
2219
|
sgarg
|
|
49 |
1929
|
brooke
|
// label for login form button when user is *not* logged in:
|
50 |
|
|
String LOGIN_LABEL = "Login";
|
51 |
2219
|
sgarg
|
|
52 |
1929
|
brooke
|
// last part of LDAP username to be appended after organization
|
53 |
|
|
String LDAP_DOMAIN = ",dc=ecoinformatics,dc=org";
|
54 |
2219
|
sgarg
|
|
55 |
1929
|
brooke
|
// if true, POST variables echoed at bottom of client's browser window in a big yellow box
|
56 |
|
|
boolean DEBUG_TO_BROWSER = false;
|
57 |
2219
|
sgarg
|
|
58 |
|
|
|
59 |
1929
|
brooke
|
String COMMON_SEARCH_METACAT_POST_FIELDS =
|
60 |
|
|
"<input type=\"hidden\" name=\"action\" value=\"query\"\\>\n"
|
61 |
|
|
+"<input type=\"hidden\" name=\"qformat\" value=\"default\"\\>\n"
|
62 |
|
|
+"<input type=\"hidden\" name=\"returnfield\" value=\"originator/individualName/surName\"\\>\n"
|
63 |
|
|
+"<input type=\"hidden\" name=\"returnfield\" value=\"originator/individualName/givenName\"\\>\n"
|
64 |
|
|
+"<input type=\"hidden\" name=\"returnfield\" value=\"originator/organizationName\"\\>\n"
|
65 |
|
|
+"<input type=\"hidden\" name=\"returnfield\" value=\"creator/individualName/surName\"\\>\n"
|
66 |
|
|
+"<input type=\"hidden\" name=\"returnfield\" value=\"creator/organizationName\"\\>\n"
|
67 |
|
|
+"<input type=\"hidden\" name=\"returnfield\" value=\"dataset/title\"\\>\n"
|
68 |
|
|
+"<input type=\"hidden\" name=\"returnfield\" value=\"keyword\"\\>\n"
|
69 |
|
|
+"<input type=\"hidden\" name=\"returndoctype\" value=\"-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN\"\\>\n"
|
70 |
|
|
+"<input type=\"hidden\" name=\"returndoctype\" value=\"-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN\"\\>\n"
|
71 |
|
|
+"<input type=\"hidden\" name=\"returndoctype\" value=\"eml://ecoinformatics.org/eml-2.0.0\"\\>\n"
|
72 |
2227
|
sgarg
|
+"<input type=\"hidden\" name=\"returndoctype\" value=\"eml://ecoinformatics.org/eml-2.0.1\"\\>\n"
|
73 |
1929
|
brooke
|
+"<input type=\"hidden\" name=\"returndoctype\" value=\"-//NCEAS//eml-dataset-2.0//EN\"\\>\n"
|
74 |
|
|
+"<input type=\"hidden\" name=\"returndoctype\" value=\"-//NCEAS//resource//EN\"\\>\n";
|
75 |
|
|
|
76 |
|
|
String SIMPLE_SEARCH_METACAT_POST_FIELDS =
|
77 |
|
|
"<input type=\"hidden\" name=\"operator\" value=\"UNION\"\\>\n"
|
78 |
|
|
+COMMON_SEARCH_METACAT_POST_FIELDS;
|
79 |
|
|
|
80 |
|
|
String ADVANCED_SEARCH_METACAT_POST_FIELDS =
|
81 |
|
|
"<input type=\"hidden\" name=\"operator\" value=\"INTERSECT\"\\>\n"
|
82 |
|
|
+COMMON_SEARCH_METACAT_POST_FIELDS;
|
83 |
2219
|
sgarg
|
|
84 |
1929
|
brooke
|
/*******************************************************************************/
|
85 |
|
|
/*******************************************************************************/
|
86 |
|
|
%>
|