Project

General

Profile

« Previous | Next » 

Revision 3732

use cgi-prefix from build properties to configure the default skin for login.
removed hardcoded "ldap.ecoinformatics.org" reference in the jsp and reads it from the metacat.properties file.

Note: still uses ant token from the build.properties file, but at least centralizes the spot where the token needs to be dealt with.

View differences:

settings.jsp
1
<%@page import="edu.ucsb.nceas.metacat.MetaCatUtil"%>
1 2
<%@ page errorPage="jsperrorpage.html"  import="javax.servlet.http.*" %>
2 3
<!--
3 4
  *   '$RCSfile$'
......
42 43

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

  
46 50
	// label for logout form button when user *is* logged in:
47 51
	String      LOGOUT_LABEL          = "Logout";

Also available in: Unified diff