[turba] Firstname / LastName in addressbook - splitting them up

James W. Beauchamp jbeauchamp7 at mindspring.com
Sat May 3 12:04:02 PDT 2003


Johny:
I would be very interested in your patch.  I've been wondering how to do
this myself.

James

----- Original Message ----- 
From: "Johny" <horde at agotnes.com>
To: <turba at lists.horde.org>
Sent: Saturday, May 03, 2003 8:04 AM
Subject: [turba] Firstname / LastName in addressbook - splitting them up


> All,
>
> I've got some patches against 1.2 which do the following, tested against
> LDAP as the backend ;
>
> Add Contact -
>    You cannot edit the 'Name' field anymore, instead;
>    Add First Name / Last Name, it makes a composite Name out of these
> and submits to driver.
>    In LDAP this sets cn to composite name, sn to last name and givenName
> to first name, basically from the sources.php mapping.
>
> Edit Contact -
>    Name is made Read Only on form.
>    Editing First Name / Last Name re-sets the Name appropriately and
> submits to driver.
>    Updating one or both of FirstName/LastName causes the Name to be
> modified and updated appropriately.
>
> I have a plan to do the following too;
> On Add to Addressbook (the wee icon) I'd like to pop up a wee entry
> form, pre-populated with FirstName, LastName and Email, potentially the
>   Add Contact form?. The pre-pop could be reasonably smart;
>
>    John Smith (FirstName LastName)
>    Smith, John (LastName, FirstName)
>    Smith John (would fail, however, cut&paste would allow for easy fix)
>
> Question is, is this of interest to others? Do any of the Horde blokes
> see it as useful enough to warrant inclusion in the standard distro? If
> so I can re-jig my changes to work with the HEAD and submit proper
patches.
>
> Lemme know what you think!
>
> Cheers,
>
> Johny
> ---------------------
> PS:
> Req'd changed files are (for the record);
>
> turba;
>    addobject.php
>    addobjectaction.php
>    editobjectaction.php
>
> turba/template/edit/
>    edit.inc
>
> turba/template/add
>    add.inc
>
> config/
>    attributes.php
>    sources.php
>
>
>
> -- 
> Turba mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: turba-unsubscribe at lists.horde.org



More information about the turba mailing list