Project

General

Profile

« Previous | Next » 

Revision 4080

Added by daigle over 16 years ago

Merge 1.9 changes into Head

View differences:

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

  
29
<% 
29
<%
30
	// GLOBAL CONSTANTS FOR ALL METACAT SKINS
31
	// These can be overridden by individual javascripts in each skin
32
	String COMMON_SEARCH_METACAT_POST_FIELDS = "<input type=\"hidden\" name=\"action\"        value=\"query\"\\>\n"
33
			+ "<input type=\"hidden\" name=\"returnfield\"   value=\"originator/individualName/surName\"\\>\n"
34
			+ "<input type=\"hidden\" name=\"returnfield\"   value=\"originator/individualName/givenName\"\\>\n"
35
			+ "<input type=\"hidden\" name=\"returnfield\"   value=\"originator/organizationName\"\\>\n"
36
			+ "<input type=\"hidden\" name=\"returnfield\"   value=\"creator/individualName/surName\"\\>\n"
37
			+ "<input type=\"hidden\" name=\"returnfield\"   value=\"creator/organizationName\"\\>\n"
38
			+ "<input type=\"hidden\" name=\"returnfield\"   value=\"dataset/title\"\\>\n"
39
			+ "<input type=\"hidden\" name=\"returnfield\"   value=\"keyword\"\\>\n"
40
			+ "<input name=\"returnfield\" value=\"creator/individualName/givenName\" type=\"hidden\">\n"
41
			+ "<input name=\"returnfield\" value=\"idinfo/citation/citeinfo/title\" type=\"hidden\">\n"
42
			+ "<input name=\"returnfield\" value=\"idinfo/citation/citeinfo/origin\" type=\"hidden\">\n"
43
			+ "<input name=\"returnfield\" value=\"idinfo/keywords/theme/themekey\" type=\"hidden\">\n"
44
			+ "<input name=\"returndoctype\" value=\"metadata\" type=\"hidden\">\n"
45
			+ "<input type=\"hidden\" name=\"returndoctype\" value=\"-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN\"\\>\n"
46
			+ "<input type=\"hidden\" name=\"returndoctype\" value=\"-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN\"\\>\n"
47
			+ "<input type=\"hidden\" name=\"returndoctype\" value=\"eml://ecoinformatics.org/eml-2.0.1\"\\>\n"
48
			+ "<input type=\"hidden\" name=\"returndoctype\" value=\"eml://ecoinformatics.org/eml-2.0.0\"\\>\n"
49
			+ "<input type=\"hidden\" name=\"returndoctype\" value=\"-//NCEAS//eml-dataset-2.0//EN\"\\>\n"
50
			+ "<input type=\"hidden\" name=\"returndoctype\" value=\"-//NCEAS//resource//EN\"\\>\n";
30 51

  
31
// GLOBAL CONSTANTS FOR ALL METACAT SKINS
32
// These can be overridden by individual javascripts in each skin
52
	String SIMPLE_SEARCH_METACAT_POST_FIELDS = "<input type=\"hidden\" name=\"operator\"      value=\"UNION\"\\>\n"
53
			+ COMMON_SEARCH_METACAT_POST_FIELDS;
33 54

  
34
String COMMON_SEARCH_METACAT_POST_FIELDS   =
35
    "<input type=\"hidden\" name=\"action\"        value=\"query\"\\>\n"
36
    +"<input type=\"hidden\" name=\"returnfield\"   value=\"originator/individualName/surName\"\\>\n"
37
    +"<input type=\"hidden\" name=\"returnfield\"   value=\"originator/individualName/givenName\"\\>\n"
38
    +"<input type=\"hidden\" name=\"returnfield\"   value=\"originator/organizationName\"\\>\n"
39
    +"<input type=\"hidden\" name=\"returnfield\"   value=\"creator/individualName/surName\"\\>\n"
40
    +"<input type=\"hidden\" name=\"returnfield\"   value=\"creator/organizationName\"\\>\n"
41
    +"<input type=\"hidden\" name=\"returnfield\"   value=\"dataset/title\"\\>\n"
42
    +"<input type=\"hidden\" name=\"returnfield\"   value=\"keyword\"\\>\n"
43
    +"<input name=\"returnfield\" value=\"creator/individualName/givenName\" type=\"hidden\">\n"
44
    +"<input name=\"returnfield\" value=\"idinfo/citation/citeinfo/title\" type=\"hidden\">\n"
45
    +"<input name=\"returnfield\" value=\"idinfo/citation/citeinfo/origin\" type=\"hidden\">\n"
46
    +"<input name=\"returnfield\" value=\"idinfo/keywords/theme/themekey\" type=\"hidden\">\n"
47
    +"<input name=\"returndoctype\" value=\"metadata\" type=\"hidden\">\n"
48
    +"<input type=\"hidden\" name=\"returndoctype\" value=\"-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN\"\\>\n"
49
    +"<input type=\"hidden\" name=\"returndoctype\" value=\"-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN\"\\>\n"
50
    +"<input type=\"hidden\" name=\"returndoctype\" value=\"eml://ecoinformatics.org/eml-2.0.1\"\\>\n"
51
    +"<input type=\"hidden\" name=\"returndoctype\" value=\"eml://ecoinformatics.org/eml-2.0.0\"\\>\n"
52
    +"<input type=\"hidden\" name=\"returndoctype\" value=\"-//NCEAS//eml-dataset-2.0//EN\"\\>\n"
53
    +"<input type=\"hidden\" name=\"returndoctype\" value=\"-//NCEAS//resource//EN\"\\>\n";
54
    
55
    
55
	String ADVANCED_SEARCH_METACAT_POST_FIELDS = "<input type=\"hidden\" name=\"operator\"      value=\"INTERSECT\"\\>\n"
56
			+ COMMON_SEARCH_METACAT_POST_FIELDS;
56 57

  
57
String SIMPLE_SEARCH_METACAT_POST_FIELDS   =
58
    "<input type=\"hidden\" name=\"operator\"      value=\"UNION\"\\>\n"
59
    +COMMON_SEARCH_METACAT_POST_FIELDS;
58
	// if true, POST variables echoed at bottom of client's browser window in a big yellow box
59
	boolean DEBUG_TO_BROWSER = false;
60 60

  
61
String ADVANCED_SEARCH_METACAT_POST_FIELDS   =
62
    "<input type=\"hidden\" name=\"operator\"      value=\"INTERSECT\"\\>\n"
63
    +COMMON_SEARCH_METACAT_POST_FIELDS;
61
	// label for logout form button when user *is* logged in:
62
	String LOGOUT_LABEL = "Logout";
64 63

  
65
// if true, POST variables echoed at bottom of client's browser window in a big yellow box
66
boolean     DEBUG_TO_BROWSER      = false;    
64
	// label for login form button when user is *not* logged in:
65
	String LOGIN_LABEL = "Login";
67 66

  
68
// label for logout form button when user *is* logged in:
69
String      LOGOUT_LABEL          = "Logout";
67
	// last part of LDAP username to be appended after organization
68
	String LDAP_DOMAIN = ",dc=ecoinformatics,dc=org";
70 69

  
71
// label for login form button when user is *not* logged in:
72
String      LOGIN_LABEL           = "Login";
70
	String KNB_SITE_URL = PropertyService.getProperty("application.knbSiteURL");
71
	String CONTEXT_NAME = PropertyService.getProperty("application.context");
72
	String DEFAULT_STYLE = PropertyService.getProperty("application.default-style");
73
	String SERVER_URL = SystemUtil.getServerURL();
74
	String CGI_URL = SystemUtil.getCGI_URL();
75
	String CONTEXT_URL = SystemUtil.getContextURL();
76
	String SERVLET_URL = SystemUtil.getServletURL();
77
	String STYLE_SKINS_URL = SystemUtil.getStyleSkinsURL();
78
	String STYLE_COMMON_URL = SystemUtil.getStyleCommonURL();
79
	String DEFAULT_STYLE_URL = SystemUtil.getDefaultStyleURL();
73 80

  
74
// last part of LDAP username to be appended after organization
75
String      LDAP_DOMAIN           = ",dc=ecoinformatics,dc=org";
76

  
77
String      KNB_SITE_URL            = MetaCatUtil.getOption("knbSiteURL");
78
String      SERVER_URL              = MetaCatUtil.getOption("httpserver");
79
String      CONTEXT_NAME            = MetaCatUtil.getOption("context"); 
80
String      DEFAULT_STYLE           = MetaCatUtil.getOption("default-style");
81
String      CGI_URL                 = SERVER_URL + "/cgi-bin";
82
String      SERVER_URL_WITH_CONTEXT = SERVER_URL + "/" + CONTEXT_NAME;
83
String      SERVLET_URL             = SERVER_URL_WITH_CONTEXT + "/metacat";
84
String      STYLE_SKINS_URL         = SERVER_URL_WITH_CONTEXT + "/style/skins";
85
String      STYLE_COMMON_URL        = SERVER_URL_WITH_CONTEXT + "/style/common";
86
String      DEFAULT_STYLE_URL       = SERVER_URL_WITH_CONTEXT + "/style/skins/" + DEFAULT_STYLE;
87 81
%>
88 82

  

Also available in: Unified diff