Project

General

Profile

1
<%@page import="edu.ucsb.nceas.metacat.MetaCatUtil"%>
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: leinfelder $'
10
  *      '$Date: 2008-02-25 13:10:11 -0800 (Mon, 25 Feb 2008) $'
11
  *  '$Revision: 3734 $'
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
<%
30
   
31
   // CONTEXT NAME of metacat installed:
32
	String      CONTEXT_NAME          = request.getContextPath();
33
	
34
	// URL of SERVER with context (and optional port)
35
	String     SERVER_URL_WITH_CONTEXT =  request.getScheme() + "://" + request.getServerName();
36
	if ( request.getLocalPort() != 80 ) {
37
		SERVER_URL_WITH_CONTEXT += ":" + request.getLocalPort();
38
	}
39
	SERVER_URL_WITH_CONTEXT += CONTEXT_NAME;
40

    
41
	// URL of metacat to be used for login & searching:
42
	String      METACAT_URL           =  SERVER_URL_WITH_CONTEXT+ "/metacat";
43
	
44
	// URL for LDAP login actions
45
	String 		CGI_PREFIX = MetaCatUtil.getOption("cgi-prefix");
46

    
47
%>
(12-12/12)