forked from extern/egroupware
* 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!)
This commit is contained in:
parent
da3ce46d14
commit
91545df1e6
@ -42,7 +42,7 @@ class addressbook_activesync implements activesync_plugin_write, activesync_plug
|
|||||||
'body' => 'note',
|
'body' => 'note',
|
||||||
//'bodysize' => '',
|
//'bodysize' => '',
|
||||||
//'bodytruncated' => '',
|
//'bodytruncated' => '',
|
||||||
//'business2phonenumber' => '',
|
'business2phonenumber' => 'tel_other',
|
||||||
'businesscity' => 'adr_one_locality',
|
'businesscity' => 'adr_one_locality',
|
||||||
'businesscountry' => 'adr_one_countryname',
|
'businesscountry' => 'adr_one_countryname',
|
||||||
'businesspostalcode' => 'adr_one_postalcode',
|
'businesspostalcode' => 'adr_one_postalcode',
|
||||||
@ -52,7 +52,7 @@ class addressbook_activesync implements activesync_plugin_write, activesync_plug
|
|||||||
'businessphonenumber' => 'tel_work',
|
'businessphonenumber' => 'tel_work',
|
||||||
'carphonenumber' => 'tel_car',
|
'carphonenumber' => 'tel_car',
|
||||||
'categories' => 'cat_id',
|
'categories' => 'cat_id',
|
||||||
//'children' => '',
|
//'children' => '', // collection of 'child' elements
|
||||||
'companyname' => 'org_name',
|
'companyname' => 'org_name',
|
||||||
'department' => 'org_unit',
|
'department' => 'org_unit',
|
||||||
'email1address' => 'email',
|
'email1address' => 'email',
|
||||||
@ -60,7 +60,7 @@ class addressbook_activesync implements activesync_plugin_write, activesync_plug
|
|||||||
//'email3address' => '',
|
//'email3address' => '',
|
||||||
'fileas' => 'n_fileas',
|
'fileas' => 'n_fileas',
|
||||||
'firstname' => 'n_given',
|
'firstname' => 'n_given',
|
||||||
//'home2phonenumber' => '',
|
'home2phonenumber' => 'tel_cell_private',
|
||||||
'homecity' => 'adr_two_locality',
|
'homecity' => 'adr_two_locality',
|
||||||
'homecountry' => 'adr_two_countryname',
|
'homecountry' => 'adr_two_countryname',
|
||||||
'homepostalcode' => 'adr_two_postalcode',
|
'homepostalcode' => 'adr_two_postalcode',
|
||||||
@ -68,7 +68,7 @@ class addressbook_activesync implements activesync_plugin_write, activesync_plug
|
|||||||
'homestreet' => 'adr_two_street',
|
'homestreet' => 'adr_two_street',
|
||||||
'homefaxnumber' => 'tel_fax_home',
|
'homefaxnumber' => 'tel_fax_home',
|
||||||
'homephonenumber' => 'tel_home',
|
'homephonenumber' => 'tel_home',
|
||||||
'jobtitle' => 'role',
|
'jobtitle' => 'title', // unfortunatly outlook only has title & jobtitle, while EGw has 'n_prefix', 'title' & 'role',
|
||||||
'lastname' => 'n_family',
|
'lastname' => 'n_family',
|
||||||
'middlename' => 'n_middle',
|
'middlename' => 'n_middle',
|
||||||
'mobilephonenumber' => 'tel_cell',
|
'mobilephonenumber' => 'tel_cell',
|
||||||
@ -82,7 +82,7 @@ class addressbook_activesync implements activesync_plugin_write, activesync_plug
|
|||||||
//'radiophonenumber' => '',
|
//'radiophonenumber' => '',
|
||||||
//'spouse' => '',
|
//'spouse' => '',
|
||||||
'suffix' => 'n_suffix',
|
'suffix' => 'n_suffix',
|
||||||
'title' => 'n_prefix',
|
'title' => 'n_prefix',
|
||||||
'webpage' => 'url',
|
'webpage' => 'url',
|
||||||
//'yomicompanyname' => '',
|
//'yomicompanyname' => '',
|
||||||
//'yomifirstname' => '',
|
//'yomifirstname' => '',
|
||||||
@ -533,6 +533,9 @@ class addressbook_activesync implements activesync_plugin_write, activesync_plug
|
|||||||
$contact[$attr] = $message->$key;
|
$contact[$attr] = $message->$key;
|
||||||
}
|
}
|
||||||
break;
|
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:
|
default:
|
||||||
$contact[$attr] = $message->$key;
|
$contact[$attr] = $message->$key;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user