More progress:
On 08.04.2012 02:48, Achim wrote:
- Contact photos that show fine in iOS and jxplorer don't show at
all in the web UI. No need to be able to update the photo here, but showing the already existing contact photo would be awesome ;-)
It appears that there have been some efforts in the past (2006!) about this [2], and even some recent success [3]. I cannot find any reference to jpegPhoto in the current code though.
Inspired by [1] I simply added the mapping
'photo' => 'jpegPhoto',
and voila, contact pictures are shown and even become editable/deletable: very elegant! Perhaps this should be in the tutorial and/or the default main.inc.php examples?
At the same time, once a contact has an image, they indeed become ineditable in RC as already described here [2] (which also seems to contain the solution): Warning: ldap_mod_del(): Modify: Inappropriate matching in program/include/rcube_ldap.php on line 1082
If I remove the photo (which itself is not possible from within RC, so I use iOS for that), the contact becomes editable again.
While I was at it, I also added some additional fields, based on [3, 4]
'prefix' => 'title',
'phone:fax' => 'facsimileTelephoneNumber',
'website' => 'labeledURI',
'notes' => 'description',
These would be nice but don't seem to work:
'department' => 'departmentNumber', // can be added in UI, but
gets "emptied" when pressing save 'manager' => 'manager', // does not show up in UI 'assistant' => 'secretary', // does not show up in UI
Is there perhaps an existing (complete?) inetOrgPerson fieldmap [3] for RC? Or should I be using another schema completely (with birthdate etc)?
One (very small) suggestion: it would be great if the (old/current) image would be replaced by a small thumbnail of the new picture: the old one is visible in the UI until you "save" the contact. This is contrary to the behaviour of the other elements, where you can see the *new* values on screen before you press Save.
Best regards, Achim
[1] http://lists.roundcube.net/pipermail/users/2011-December/008182.html [2] http://permalink.gmane.org/gmane.mail.roundcube.devel/9714 [3] http://www.zytrax.com/books/ldap/ape/inetorgperson.html [4] http://www.roundcubeforum.net/index.php?topic=9146.msg37348#msg37348