Project

General

Profile

« Previous | Next » 

Revision 4080

Added by daigle over 16 years ago

Merge 1.9 changes into Head

View differences:

index.jsp
1
<%@ page    language="java" %>
2
<% 
3
/**
1
<%@ page    language="java" import="edu.ucsb.nceas.metacat.util.MetaCatUtil" %>
2
<%
3
	/**
4 4
 *  '$RCSfile$'
5 5
 *    Copyright: 2000 Regents of the University of California and the
6 6
 *               National Center for Ecological Analysis and Synthesis
......
43 43
 
44 44
String qformat     = request.getParameter("qformat");
45 45
String addedParams = "";
46
String redirectURI = "";
46 47

  
47
//if qformat has not been set, set its value to "DEFAULT_STYLE"
48
if (qformat==null) {
49
  qformat = DEFAULT_STYLE;
50
  addedParams = "?qformat="+qformat;
48
if (MetaCatUtil.isMetacatConfigured()) {
49
    //if qformat has not been set, set its value to "DEFAULT_STYLE"
50
    if (qformat==null) {
51
      qformat = DEFAULT_STYLE;
52
      addedParams = "?qformat="+qformat;
53
    }
54
    redirectURI = "/style/skins/"+qformat+"/"+addedParams;
55
} else {
56
    redirectURI = "/metacat";
51 57
}
52 58

  
53
String redirectURI = "/style/skins/"+qformat+"/"+addedParams;
59

  
60

  
54 61
%>
55 62

  
56 63
<jsp:forward page="<%= redirectURI %>" />

Also available in: Unified diff