Project

General

Profile

1
<%@ page errorPage="jsperrorpage.html" %>
2
<!--
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: jones $'
10
  *      '$Date: 2004-07-13 12:54:47 -0700 (Tue, 13 Jul 2004) $'
11
  *  '$Revision: 2212 $'
12
  *
13
  * Settings file for KNB portal
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
<% 
30

    
31
// GLOBAL CONSTANTS FOR KNB PORTAL PAGE /////////////////////////////////////
32

    
33
	// URL of metacat to be used for login & searching:
34
//	String      METACAT_URL           = "http://anacapa.nceas.ucsb.edu:8080/knb/servlet/metacat/";
35
	String      METACAT_URL            = "http://knb.ecoinformatics.org/knb/servlet/metacat";
36

    
37
	// default title for :
38
	String      DEFAULT_PORTALHEAD_TITLE = "NEW Biocomplexity Data Search";
39
	
40
	// label for logout form button when user *is* logged in:
41
	String      LOGOUT_LABEL          = "Logout";
42
	
43
	// label for login form button when user is *not* logged in:
44
	String      LOGIN_LABEL           = "Login";
45
	
46
	// last part of LDAP username to be appended after organization
47
	String      LDAP_DOMAIN           = ",dc=ecoinformatics,dc=org";
48
	
49
	// if true, POST variables echoed at bottom of client's browser window in a big yellow box
50
    boolean     DEBUG_TO_BROWSER      = false;
51
	
52
	//version number to be displayed for latest morpho distribution 
53
	String MORPHO_VERSION_NUMBER = "1.5.1";
54
	
55
	// site-root-relative uri's for download morpho links for 3 target OS's. Note that 
56
	// these should be the distributions that INCLUDE THE JAVA VM (except for the MacOSX 
57
	// version, since Mac OSX ships with a JRE)
58
	String      MORPHO_DOWNLOAD_LINK_WINDOWS = "software/dist/morpho-" + MORPHO_VERSION_NUMBER + "-jre.exe";
59
	String      MORPHO_DOWNLOAD_LINK_MACOSX  = "software/dist/morpho-" + MORPHO_VERSION_NUMBER + "-MACOSX.zip";
60
	String      MORPHO_DOWNLOAD_LINK_LINUX   = "software/dist/morpho-" + MORPHO_VERSION_NUMBER + "-jre.sh";
61
	
62
	// site-root-relative uri's for download morpho links for 3 target OS's. Note that 
63
	// these should be the distributions that DO NOT INCLUDE THE JAVA VM 
64
	String      MORPHO_DOWNLOAD_LINK_WINDOWS_NO_JRE = "software/dist/morpho-" + MORPHO_VERSION_NUMBER + ".exe";
65
	String      MORPHO_DOWNLOAD_LINK_LINUX_NO_JRE   = "software/dist/morpho-" + MORPHO_VERSION_NUMBER + ".sh";
66
	
67
	// site-root-relative uri's for download morpho zip & gzip links for binaries and source 
68
	String      MORPHO_DOWNLOAD_LINK_ZIP            = "software/dist/morpho-" + MORPHO_VERSION_NUMBER + ".zip";
69
	String      MORPHO_DOWNLOAD_LINK_GZIP           = "software/dist/morpho-" + MORPHO_VERSION_NUMBER + ".tar.gz";
70
	String      MORPHO_DOWNLOAD_LINK_ZIP_SRC        = "software/dist/morpho-src-" + MORPHO_VERSION_NUMBER + ".zip";
71
	String      MORPHO_DOWNLOAD_LINK_GZIP_SRC       = "software/dist/morpho-src-" + MORPHO_VERSION_NUMBER + ".tar.gz";
72
	
73
	String      MORPHO_CHANGE_LOG_LINK              = "software/morpho/README.txt";
74
	
75
	String      MORPHO_DOWNLOAD_LINK_MAC_OS9        = "software/dist/morpho-1.1.2-jre.bin";
76
	String      MORPHO_DOWNLOAD_LINK_MAC_OS9_NO_JRE = "software/dist/morpho-1.1.2.bin";
77
	String      MORPHO_DOWNLOAD_LINK_OLD_VERSIONS   = "software/dist/";
78
	
79
	
80
		String      COMMON_SEARCH_METACAT_POST_FIELDS   =
81
							 "<input type=\"hidden\" name=\"action\"        value=\"query\"\\>\n"
82
              +"<input type=\"hidden\" name=\"qformat\"       value=\"knb2\"\\>\n"
83
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"originator/individualName/surName\"\\>\n"
84
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"originator/individualName/givenName\"\\>\n"
85
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"originator/organizationName\"\\>\n"
86
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"creator/individualName/surName\"\\>\n"
87
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"creator/organizationName\"\\>\n"
88
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"dataset/title\"\\>\n"
89
//              +"<input type=\"hidden\" name=\"returnfield\"   value=\"title\"\\>\n"
90
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"keyword\"\\>\n"
91
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"dataset/dataTable/distribution/online/url\"\\>\n"
92
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"dataset/dataTable/distribution/inline\"\\>\n"
93
              +"<input type=\"hidden\" name=\"returndoctype\" value=\"-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN\"\\>\n"
94
              +"<input type=\"hidden\" name=\"returndoctype\" value=\"-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN\"\\>\n"
95
              +"<input type=\"hidden\" name=\"returndoctype\" value=\"eml://ecoinformatics.org/eml-2.0.0\"\\>\n"
96
              +"<input type=\"hidden\" name=\"returndoctype\" value=\"-//NCEAS//eml-dataset-2.0//EN\"\\>\n"
97
              +"<input type=\"hidden\" name=\"returndoctype\" value=\"-//NCEAS//resource//EN\"\\>\n";
98

    
99
	String      SIMPLE_SEARCH_METACAT_POST_FIELDS   =
100
							  "<input type=\"hidden\" name=\"operator\"      value=\"UNION\"\\>\n"
101
                +COMMON_SEARCH_METACAT_POST_FIELDS;
102

    
103
	String      ADVANCED_SEARCH_METACAT_POST_FIELDS   =
104
							  "<input type=\"hidden\" name=\"operator\"      value=\"INTERSECT\"\\>\n"
105
                +COMMON_SEARCH_METACAT_POST_FIELDS;
106
                              
107
/*******************************************************************************/
108
/*******************************************************************************/
109
%>
(1-1/15)