Project

General

Profile

Revision 8205

Added by Jing Tao about 7 years ago

replace the hard-coded organization list.

View differences:

lib/style/skins/nceas/nceas.properties
51 51
# ldap template settings.
52 52
#The property defines a value which controls the list of organization names showing in the account registration, password reset and change password templates in this skin.
53 53
#It overwrites the property with the same name in the metacat.properties file.
54
#The value of the property should be defined in the organization.org.VALUE=something in the metacat.properties.
54
#The value of the property should be defined in the organization.name.VALUE=something in the metacat.properties.
55 55
#Multiple values will be separated by ";".
56 56
ldap.templates.organizationList=Account
57 57

  
lib/style/common/templates/ldapRegister.tmpl
98 98
                   value="[% allParams.o %]"/>
99 99
            [% ELSE %]
100 100
            <select name="o">
101
                  <option value="unaffiliated">unaffiliated</option>
102
            </select>
101
                [% FOREACH org = orgList %]
102
                  [% IF allParams.o == org %]
103
                    <option value="[% org %]" selected>[% org %]</option>
104
                  [% ELSE %]
105
                    <option value="[% org %]">[% org %]</option>
106
                  [% END %]
107
                [% END %]
108
               </select>
103 109
            [% END %]
104 110
          </td>
105 111
        </tr>
lib/metacat.properties
204 204
ldap.templates.searchResults=searchResults.tmpl
205 205
#The property defines a default value which controls the list of organization names showing in the account registeration, password reset and change password templates for all skins.
206 206
#The value of the property will be overwritten if a skin properties file defines the property as well.
207
#The value of the property should be defined in the organization.org.VALUE=something in the organization part.
207
#The value of the property should be defined in the organization.name.VALUE=something in the organization part.
208 208
#Multiple vlaues will be separated by ";".
209 209
ldap.templates.organizationList=Account
210 210

  

Also available in: Unified diff