
README

This distribution contains a number of files implementing a Google Onebox "widget". It looks people's names up in an LDAP directory.

The distribution contains the following files:

 * people.cgi - the reason de existance
 * people.pl - command-line version of people.cgi
 * people.png - an image of a person
 * people.xsl - XSL to convert people.cgi output to HTML
 * README - this file
 * LICENSE - the GNU Public License

The "widet" (people.cgi) is almost trivial. Read the value of the query paramenter sent as a part of the GET request. Open up a connection to the LDAP server. Query the server. Loop through the results keeping only a number of them as defined by the constant UPPER. Mark-up the results as Google XML. Return the XML to the HTTP client. It is then the client's resposibility to transform the XML into an HTML (table) snippet for display. (That is what people.xsl is for.)

This widget ought to work in many environments. All you really need to do is edit the values of the constants at the beginning of people.cgi.

This code is distributed under the GNU Public License.

-- 
Eric Lease Morgan <emorgan@nd.edu>
Hesburgh Libraries, University of Notre Dame

June 16, 2008

