Project

General

Profile

« Previous | Next » 

Revision 3780

Added by daigle about 16 years ago

Changes to remove ANT tokens for the turnkey install project

View differences:

settings.jsp
1
<%@page import="edu.ucsb.nceas.metacat.MetaCatUtil"%>
2 1
<%@ page errorPage="jsperrorpage.html"  import="javax.servlet.http.*" %>
3
<!--
4
  *   '$RCSfile$'
5
  *     Authors: Matthew Brooke
6
  *   Copyright: 2000 Regents of the University of California and the
7
  *              National Center for Ecological Analysis and Synthesis
8
  * For Details: http://www.nceas.ucsb.edu/
9
  *
10
  *    '$Author$'
11
  *      '$Date$'
12
  *  '$Revision$'
13
  *
14
  * Settings file for the default metacat skin
15
  *
16
  * This program is free software; you can redistribute it and/or modify
17
  * it under the terms of the GNU General Public License as published by
18
  * the Free Software Foundation; either version 2 of the License, or
19
  * (at your option) any later version.
20
  *
21
  * This program is distributed in the hope that it will be useful,
22
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24
  * GNU General Public License for more details.
25
  *
26
  * You should have received a copy of the GNU General Public License
27
  * along with this program; if not, write to the Free Software
28
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
29
-->
30 2
<%
3
/*
4
 *   '$RCSfile$'
5
 *     Authors: Matthew Brooke
6
 *   Copyright: 2000 Regents of the University of California and the
7
 *              National Center for Ecological Analysis and Synthesis
8
 * For Details: http://www.nceas.ucsb.edu/
9
 *
10
 *    '$Author$'
11
 *      '$Date$'
12
 *  '$Revision$'
13
 *
14
 * Settings file for the default metacat skin
15
 *
16
 * This program is free software; you can redistribute it and/or modify
17
 * it under the terms of the GNU General Public License as published by
18
 * the Free Software Foundation; either version 2 of the License, or
19
 * (at your option) any later version.
20
 *
21
 * This program is distributed in the hope that it will be useful,
22
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24
 * GNU General Public License for more details.
25
 *
26
 * You should have received a copy of the GNU General Public License
27
 * along with this program; if not, write to the Free Software
28
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
29
 */
30
%>
31 31

  
32
// GLOBAL CONSTANTS FOR KNB PORTAL PAGE /////////////////////////////////////
33
   
34
   // CONTEXT NAME of metacat installed:
35
	String      CONTEXT_NAME          = request.getContextPath();
36
	
37
	// URL of SERVER with context (and optional port)
38
	String     SERVER_URL_WITH_CONTEXT =  request.getScheme() + "://" + request.getServerName();
39
	if ( request.getLocalPort() != 80 ) {
40
		SERVER_URL_WITH_CONTEXT += ":" + request.getLocalPort();
41
	}
42
	SERVER_URL_WITH_CONTEXT += CONTEXT_NAME;
32
<%@ include file="../../common/common-settings.jsp"%>
43 33

  
44
	// URL of metacat to be used for login & searching:
45
	String      METACAT_URL           =  SERVER_URL_WITH_CONTEXT+ "/metacat";
46
	
47
	// URL for LDAP login
48
	String LDAP_CGI_PREFIX = MetaCatUtil.getOption("cgi-prefix");
34
<%
49 35

  
50
	// label for logout form button when user *is* logged in:
51
	String      LOGOUT_LABEL          = "Logout";
36
// GLOBAL CONSTANTS FOR KNB PORTAL PAGE /////////////////////////////////////
52 37

  
53
	// label for login form button when user is *not* logged in:
54
	String      LOGIN_LABEL           = "Login";
55

  
56
	// last part of LDAP username to be appended after organization
57
	String      LDAP_DOMAIN           = ",dc=ecoinformatics,dc=org";
58

  
59 38
	// if true, POST variables echoed at bottom of client's browser window in a big yellow box
60
    boolean     DEBUG_TO_BROWSER      = false;
39
    // Set this value to override the global value
40
    // boolean     DEBUG_TO_BROWSER      = false;
61 41

  
42
    // Add any local post fields to COMMON_SEARCH_METACAT_POST_FIELDS, 
43
    // SIMPLE_SEARCH_METACAT_POST_FIELDS, and ADVANCED_SEARCH_METACAT_POST_FIELD here
44
	COMMON_SEARCH_METACAT_POST_FIELDS +=
45
          "<input type=\"hidden\" name=\"qformat\"       value=\"default\"\\>\n";
46
              
47
    SIMPLE_SEARCH_METACAT_POST_FIELDS +=
48
          "<input type=\"hidden\" name=\"qformat\"       value=\"default\"\\>\n";
62 49

  
63
	String      COMMON_SEARCH_METACAT_POST_FIELDS   =
64
							 "<input type=\"hidden\" name=\"action\"        value=\"query\"\\>\n"
65
              +"<input type=\"hidden\" name=\"qformat\"       value=\"default\"\\>\n"
66
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"originator/individualName/surName\"\\>\n"
67
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"originator/individualName/givenName\"\\>\n"
68
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"originator/organizationName\"\\>\n"
69
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"creator/individualName/surName\"\\>\n"
70
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"creator/organizationName\"\\>\n"
71
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"dataset/title\"\\>\n"
72
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"keyword\"\\>\n"
73
              +"<input type=\"hidden\" name=\"returndoctype\" value=\"-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN\"\\>\n"
74
              +"<input type=\"hidden\" name=\"returndoctype\" value=\"-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN\"\\>\n"
75
              +"<input type=\"hidden\" name=\"returndoctype\" value=\"eml://ecoinformatics.org/eml-2.0.0\"\\>\n"
76
              +"<input type=\"hidden\" name=\"returndoctype\" value=\"eml://ecoinformatics.org/eml-2.0.1\"\\>\n"
77
              +"<input type=\"hidden\" name=\"returndoctype\" value=\"-//NCEAS//eml-dataset-2.0//EN\"\\>\n"
78
              +"<input type=\"hidden\" name=\"returndoctype\" value=\"-//NCEAS//resource//EN\"\\>\n";
79

  
80
	String      SIMPLE_SEARCH_METACAT_POST_FIELDS   =
81
							  "<input type=\"hidden\" name=\"operator\"      value=\"UNION\"\\>\n"
82
                +COMMON_SEARCH_METACAT_POST_FIELDS;
83

  
84
	String      ADVANCED_SEARCH_METACAT_POST_FIELDS   =
85
							  "<input type=\"hidden\" name=\"operator\"      value=\"INTERSECT\"\\>\n"
86
                +COMMON_SEARCH_METACAT_POST_FIELDS;
87

  
88
/*******************************************************************************/
89
/*******************************************************************************/
50
    ADVANCED_SEARCH_METACAT_POST_FIELDS +=
51
          "<input type=\"hidden\" name=\"qformat\"       value=\"default\"\\>\n";
52
            	   
90 53
%>

Also available in: Unified diff