Project

General

Profile

« Previous | Next » 

Revision 4776

Added by daigle almost 16 years ago

Get the organization list from org.name.<orgname>= property. Add these values back into metacat.properties.

View differences:

lib/metacat.properties
155 155
ldap.templates.searchResults=searchResults.tmpl
156 156

  
157 157
############### Organization Values ###############
158
organization.configured.NCEAS=false
159
organization.name.NCEAS=National Center for Ecological Analysis and Synthesis
160
organization.configured.OBFS=false
161
organization.name.OBFS=Organization of Biological Field Stations
162
organization.configured.OSUSB=false
163
organization.name.OSUSB=
164
organization.configured.UCNRS=false
165
organization.name.UCNRS=
166
organization.configured.KU=false
167
organization.name.KU=
168
organization.configured.LTER=false
169
organization.name.LTER=
170
organization.configured.UVM=false
171
organization.name.UVM=
172
organization.configured.SDSC=false
173
organization.name.SDSC=
174
organization.configured.MSU=false
175
organization.name.MSU=
176
organization.configured.NAPIER=false
177
organization.name.NAPIER=
178
organization.configured.SANPARKS=false
179
organization.name.SANPARKS=Kruger National Park
180
organization.configured.SAEON=false
181
organization.name.SAEON=South African Environmental Observation Network Repository
158 182

  
159
#ldap.unaffiliated.dn=o=unaffiliated,dc=ecoinformatics,dc=org
160
organization.configured.unaffiliated=false
161
organization.name.unaffiliated=
183
organization.name.unaffiliated=unaffiliated
162 184
organization.base.unaffiliated=dc=ecoinformatics,dc=org
163 185
organization.org.unaffiliated=o=unaffiliated
164 186
organization.user.unaffiliated=cn=Manager
src/edu/ucsb/nceas/metacat/util/OrganizationUtil.java
53 53
		Vector<String> shortOrgNames = new Vector<String>();
54 54
		Vector<String> longOrgNames = null;
55 55
		
56
		longOrgNames = PropertyService.getPropertyNamesByGroup("organization.org");
56
		longOrgNames = PropertyService.getPropertyNamesByGroup("organization.name");
57 57

  
58 58
		for (String longName : longOrgNames) {
59
			shortOrgNames.add(longName.substring(17));
59
			shortOrgNames.add(longName.substring(18));
60 60
		}
61 61
		return shortOrgNames;
62 62
	}

Also available in: Unified diff