oczpush
oczpush copied to clipboard
Fix fields mapping between AS and OC
tests from @bilbob74
OK, back to the Contactsync. All Phonenumbers, i enter to the Phone synced to OwnCloud without a type. If i enter a Mobilnumber, it sends only a Phonenumber, without Type "Mobil". Pager is send as Phonenumber, Company isnt send at all, Fax is send as pure Phonenumber (both, private and work). The same is by email. All 3 Mails are added (private, work and other on the Phone), but added in OwnCloud withoud Type. The Address is always add as Workaddress. I have added on the Phone a Private, Work and other Address. The Note and the anniversary arent added. Other not added fields: Partnerinfo, Childinfo, Office Location, Jobtitle (Position), second surname, nickname and title. The Photo looks very nice.
I dont know, if the correct infos are send and only not visible in OwnCloud, but they are visible on the Phone, where i have entered them. Next i will try the same from OwnCloud to the Phone.
Ah pardon second surname, Title and Prefix are realy there, only not visible in the default Contactinfo in OwnCLoud, so this is ok.
OwnCloud to Phone:
Send to the Phone Name Surname Companyname second name titel and suffix Birthday Mail, with correct types (maybe this was luck) Home address is send, but as Type "other"
Not send: Nickname Work Phone Page (send as Private 2), all other Phones with specified type Workaddress other address website Photo added in OwnCloud was not transfered to the Phone
thats all, what i can enter in Owncloud. There is no field for partner, Child, Office Location, Anniversary and position. Maybe this is the reason for the above, not displayed fields.
thx to the code in #13 most of the fields are now correct. I couldnt test it completely, but if i create a new contact in RoundCube with CardDAV Plugin, the Contact is transfered to OwnCloud and from there to the Phone. But after changing some values, the fields are crippled again. I could test this at home directly with OwnCloud to Exclude problems with the CardDAV Plugin from RoundCube. What i have seen is, that some fields are not transfered at all.
according to occontacts.php i have found this comment: // not supported: anniversary, assistantname, assistnamephonenumber, children, department, officelocation, radiophonenumber, spouse, rtf
Maybe, the missing fields can be added with the help of http://en.wikipedia.org/wiki/VCard