From 91545df1e6980bb1489d74b1d765ebe414e76377 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 9 Aug 2011 10:07:22 +0000 Subject: [PATCH] * eSync/Addressbook: added mapping of private cellphone to home2phone, other phone to business2phonenumber and changed role to title in mapping of jobtitle (role is no longer mapped, because no outlook equivalent, egw prefix is mapped to ol title!) --- .../inc/class.addressbook_activesync.inc.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/addressbook/inc/class.addressbook_activesync.inc.php b/addressbook/inc/class.addressbook_activesync.inc.php index 92900595f8..2c67e03dda 100644 --- a/addressbook/inc/class.addressbook_activesync.inc.php +++ b/addressbook/inc/class.addressbook_activesync.inc.php @@ -42,7 +42,7 @@ class addressbook_activesync implements activesync_plugin_write, activesync_plug 'body' => 'note', //'bodysize' => '', //'bodytruncated' => '', - //'business2phonenumber' => '', + 'business2phonenumber' => 'tel_other', 'businesscity' => 'adr_one_locality', 'businesscountry' => 'adr_one_countryname', 'businesspostalcode' => 'adr_one_postalcode', @@ -52,7 +52,7 @@ class addressbook_activesync implements activesync_plugin_write, activesync_plug 'businessphonenumber' => 'tel_work', 'carphonenumber' => 'tel_car', 'categories' => 'cat_id', - //'children' => '', + //'children' => '', // collection of 'child' elements 'companyname' => 'org_name', 'department' => 'org_unit', 'email1address' => 'email', @@ -60,7 +60,7 @@ class addressbook_activesync implements activesync_plugin_write, activesync_plug //'email3address' => '', 'fileas' => 'n_fileas', 'firstname' => 'n_given', - //'home2phonenumber' => '', + 'home2phonenumber' => 'tel_cell_private', 'homecity' => 'adr_two_locality', 'homecountry' => 'adr_two_countryname', 'homepostalcode' => 'adr_two_postalcode', @@ -68,7 +68,7 @@ class addressbook_activesync implements activesync_plugin_write, activesync_plug 'homestreet' => 'adr_two_street', 'homefaxnumber' => 'tel_fax_home', 'homephonenumber' => 'tel_home', - 'jobtitle' => 'role', + 'jobtitle' => 'title', // unfortunatly outlook only has title & jobtitle, while EGw has 'n_prefix', 'title' & 'role', 'lastname' => 'n_family', 'middlename' => 'n_middle', 'mobilephonenumber' => 'tel_cell', @@ -82,7 +82,7 @@ class addressbook_activesync implements activesync_plugin_write, activesync_plug //'radiophonenumber' => '', //'spouse' => '', 'suffix' => 'n_suffix', - 'title' => 'n_prefix', + 'title' => 'n_prefix', 'webpage' => 'url', //'yomicompanyname' => '', //'yomifirstname' => '', @@ -533,6 +533,9 @@ class addressbook_activesync implements activesync_plugin_write, activesync_plug $contact[$attr] = $message->$key; } break; + case 'title': // as ol jobtitle mapping changed in egw from role to title, do NOT overwrite title with value of role + if ($id && $message->$key == $contact['role']) break; + // fall throught default: $contact[$attr] = $message->$key; break;