Project

General

Profile

« Previous | Next » 

Revision 3780

Added by daigle over 16 years ago

Changes to remove ANT tokens for the turnkey install project

View differences:

portal_settings.jsp
1 1
<%@ page errorPage="jsperrorpage.html" %>
2 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 KNB portal
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
  */
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 pisco portal
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 30
%>
31
<% 
32 31

  
33
// GLOBAL CONSTANTS FOR KNB PORTAL PAGE /////////////////////////////////////
32
<%@ include file="../../../../common/common-settings.jsp"%>
34 33

  
35
  // URL of metacat to be used for login & searching:
36
//  String      METACAT_URL           = "http://knb.ecoinformatics.org/knb/servlet/metacat";
37
    String      METACAT_URL           = "@systemidserver@@servlet-path@";
34
<% 
35
// Global settings for metacat are in common-settings.jsp.  Use this file to
36
// override or add to global values for this skin.
38 37

  
39 38
  // default title for :
40 39
  String      DEFAULT_PORTALHEAD_TITLE = "NEW Biocomplexity Data Search";
41 40
  
42
  // label for logout form button when user *is* logged in:
43
  String      LOGOUT_LABEL          = "logout";
44
  
45
  // label for login form button when user is *not* logged in:
46
  String      LOGIN_LABEL           = "login";
47
  
48
  // last part of LDAP username to be appended after organization
49
  String      LDAP_DOMAIN           = ",dc=ecoinformatics,dc=org";
50
  
51 41
  // if true, POST variables echoed at bottom of client's browser window in a big yellow box
52
    boolean     DEBUG_TO_BROWSER      = false;
42
  // Set this value to override the global value
43
  // boolean     DEBUG_TO_BROWSER      = false;
53 44
  
54
    String      COMMON_SEARCH_METACAT_POST_FIELDS   =
55
               "<input type=\"hidden\" name=\"action\"        value=\"query\"\\>\n"
56
              +"<input type=\"hidden\" name=\"qformat\"       value=\"knb2\"\\>\n"
57
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"originator/individualName/surName\"\\>\n"
58
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"originator/individualName/givenName\"\\>\n"
59
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"originator/organizationName\"\\>\n"
60
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"creator/individualName/surName\"\\>\n"
61
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"creator/organizationName\"\\>\n"
62
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"dataset/title\"\\>\n"
63
//              +"<input type=\"hidden\" name=\"returnfield\"   value=\"title\"\\>\n"
64
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"keyword\"\\>\n"
65
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"dataset/dataTable/distribution/online/url\"\\>\n"
66
              +"<input type=\"hidden\" name=\"returnfield\"   value=\"dataset/dataTable/distribution/inline\"\\>\n"
67
              +"<input type=\"hidden\" name=\"returndoctype\" value=\"-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN\"\\>\n"
68
              +"<input type=\"hidden\" name=\"returndoctype\" value=\"-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN\"\\>\n"
69
              +"<input type=\"hidden\" name=\"returndoctype\" value=\"eml://ecoinformatics.org/eml-2.0.0\"\\>\n"
70
              +"<input type=\"hidden\" name=\"returndoctype\" value=\"-//NCEAS//eml-dataset-2.0//EN\"\\>\n"
71
              +"<input type=\"hidden\" name=\"returndoctype\" value=\"-//NCEAS//resource//EN\"\\>\n";
45
  // Add any local post fields to COMMON_SEARCH_METACAT_POST_FIELDS, 
46
  // SIMPLE_SEARCH_METACAT_POST_FIELDS, and ADVANCED_SEARCH_METACAT_POST_FIELD here
47
  COMMON_SEARCH_METACAT_POST_FIELDS +=
48
        "<input type=\"hidden\" name=\"qformat\"       value=\"knb2\"\\>\n"
49
       +"<input type=\"hidden\" name=\"returnfield\"   value=\"dataset/dataTable/distribution/online/url\"\\>\n"
50
       +"<input type=\"hidden\" name=\"returnfield\"   value=\"dataset/dataTable/distribution/inline\"\\>\n";
51
          
52
  SIMPLE_SEARCH_METACAT_POST_FIELDS +=
53
       "<input type=\"hidden\" name=\"qformat\"       value=\"knb2\"\\>\n"
54
      +"<input type=\"hidden\" name=\"returnfield\"   value=\"dataset/dataTable/distribution/online/url\"\\>\n"
55
      +"<input type=\"hidden\" name=\"returnfield\"   value=\"dataset/dataTable/distribution/inline\"\\>\n";
72 56

  
73
  String      SIMPLE_SEARCH_METACAT_POST_FIELDS   =
74
                "<input type=\"hidden\" name=\"operator\"      value=\"UNION\"\\>\n"
75
                +COMMON_SEARCH_METACAT_POST_FIELDS;
57
  ADVANCED_SEARCH_METACAT_POST_FIELDS +=
58
       "<input type=\"hidden\" name=\"qformat\"       value=\"knb2\"\\>\n"
59
      +"<input type=\"hidden\" name=\"returnfield\"   value=\"dataset/dataTable/distribution/online/url\"\\>\n"
60
      +"<input type=\"hidden\" name=\"returnfield\"   value=\"dataset/dataTable/distribution/inline\"\\>\n";
76 61

  
77
  String      ADVANCED_SEARCH_METACAT_POST_FIELDS   =
78
                "<input type=\"hidden\" name=\"operator\"      value=\"INTERSECT\"\\>\n"
79
                +COMMON_SEARCH_METACAT_POST_FIELDS;
80
                              
81
/*******************************************************************************/
82
/*******************************************************************************/
62
   
83 63
%>

Also available in: Unified diff