Project

General

Profile

« Previous | Next » 

Revision 4080

Added by daigle over 16 years ago

Merge 1.9 changes into Head

View differences:

index2.jsp
1
<%@ page    language="java" %>
1
<%@ page    language="java"  import="java.util.Vector,edu.ucsb.nceas.metacat.util.LDAPUtil"%>
2 2
<%
3 3
 /**
4 4
  *  '$RCSfile$'
......
32 32
%>
33 33
<%@ include file="PORTAL_SETTINGS.jsp"%>
34 34
<%@ include file="include_session_vars.jsp"%>
35
<%@ page import="edu.ucsb.nceas.metacat.MetaCatUtil" %>
35
<%@ page import="edu.ucsb.nceas.metacat.service.PropertyService" %>
36 36

  
37
<% 
38
	Vector<String> organizationList = LDAPUtil.getOrganizations();
39
%>
40

  
37 41
<%
38 42
///////////////////////////////////////////////////////////////////////////////
39 43
//
......
106 110
		</div>
107 111
	</td>
108 112
	<td align="center" width="33%">
109
	<% if ( MetaCatUtil.getOption("runSpatialOption").equals("true") ) { %>
113
	<% if ( PropertyService.getProperty("runSpatialOption").equals("true") ) { %>
110 114
	  <a href="./index_map_only.jsp" style="border:none"><img height="120" width="240" style="background-color: #C8E5F5; border: 1px solid #ccc" src="http://indus.msi.ucsb.edu:8180/knb/wms?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=metacat:world_borders,metacat:data_bounds,metacat:data_points&SRS=EPSG:4326&BBOX=-180,-90,180,90&WIDTH=240&HEIGHT=120&FORMAT=image/gif&STYLES=&TRANSPARENT=TRUE&UNIQUEID="> <br/> <span style="font-size:8pt"> Click to View Interactive Map </span> </a>
111 115
	<% } %>
112 116
	</td>
......
169 173
                                <select name="organization" style="width:140px;" <%=loginEnabledDisabled%>>
170 174
                                  <option value=""       <%=((posted_organization.length()<1)?                 "selected":"")%>>&#8212;
171 175
                                  choose one &#8212;</option>
172
                                  <option value="NCEAS"        <%=((posted_organization.equalsIgnoreCase("NCEAS"))?        "selected":"")%>>NCEAS</option>
173
                                  <option value="LTER"         <%=((posted_organization.equalsIgnoreCase("LTER"))?         "selected":"")%>>LTER</option>
174
                                  <option value="UCNRS"          <%=((posted_organization.equalsIgnoreCase("UCNRS"))?          "selected":"")%>>UCNRS</option>
175
                                  <option value="PISCO"        <%=((posted_organization.equalsIgnoreCase("PISCO"))?        "selected":"")%>>PISCO</option>
176
                                  <option value="OBFS"         <%=((posted_organization.equalsIgnoreCase("OBFS"))?         "selected":"")%>>OBFS</option>
177
                                  <option value="SDSC"         <%=((posted_organization.equalsIgnoreCase("SDSC"))?         "selected":"")%>>SDSC</option>
178
                                  <option value="KU"         <%=((posted_organization.equalsIgnoreCase("KU"))?         "selected":"")%>>KU</option>
179
                                  <option value="unaffiliated" <%=((posted_organization.equalsIgnoreCase("unaffiliated"))? "selected":"")%>>unaffiliated</option>
176
<%
177
							for (String orgName : organizationList) {
178
%> 
179
                                  <option value="<%= orgName %>"        <%=((posted_organization.equalsIgnoreCase(orgName))?    "selected":"")%>><%= orgName %></option>
180
<%
181
							}
182
%> 
180 183
                                </select></td>
181 184
                            </tr>
182 185
                            <tr valign="middle">

Also available in: Unified diff