This section describes how to modify the Sun Java System Messenger Express Address (directory lookup) window shown in Modifying the Address (Directory Lookup) Window.
You can modify the following in the Address (directory lookup) window:
Change overall window appearance
Alter search controls and their text
Add additonal LDAP server search
Alter all other texts
Add User Defined Directory to Search
To modify the Address window, edit the appropriate files as follows:
To customize the overall window appearance, edit the getSearchResult() and idxHTML() functions in the lookup.js file.
To customize other text, edit the // LDAP Lookup values in the lang/lookup_fs.html file.
To add additional LDAP server search, add new entries specifying the LDAP host followed by the DN as the third parameter, edit the lang/lookup_fs.html file.
Functionally, searchFrameHTML() and addFrameHTML() assign the following functions to the buttons:
Search: parent.doSearch()
Cancel: parent.cancel()
The example shown in Example—Address (Directory Lookup) Window Modifications changes “Search Corporate directory” to “Search the Sun Directory” and adds the LDAP server search “Search Yahoo!” to the search list.
Example—Address (Directory Lookup) Window Modifications shows the necessary changes to be made in en/lookup_fs.html.
//Search Control function s_SearchCtrl() { .... ’<option value="3 200"\> Search the Sun Java System Directory </option\>\\n’ + .... |
Example—Address (Directory Lookup) Window Modifications shows how to add LDAP server search to the list. The file to edit is en/lookup_fs.html.
//Search Control function s_SearchCtrl() { ... ’<option value="2 25 ldap://ldap.yahoo.com/"\>’ + ’Search Yahoo!</option\>\\n’ + ’</select\>\\n’ + ... |
You can add an additional user defined directory to the LDAP server search in the Address (Directory Lookup) Window. This can be accomplished by adding new entry for the LDAP host followed by the DN in the lang/lookup_fs.html.
Add a new entry specifying the LDAP host followed by the DN as the third parameter in the lang/lookup_fs.html file.
The example shows the changes made to Address (Directory Lookup) Window to search for the user defined directory in the host florizel.com with the DN ou=People, o=florizel.com.
Example—Adding a User Defined Directory to Search to the Address (Directory Lookup) Window shows how to add the user defined directory to the search list in the Address (Directory Lookup) Window. The file to edit is lang/lookup_fs.html.
//Search Control function s_SearchCtrl() { ... ’<option value="2 25 ldap://ldap.florizel.com/ou=People,o=florizel.com"\>’ + ’Search Florizel!</option\>\\n’ + ... |