I've set up the latest version of Vcard on a drupal 5.8 install. I've got everything working the way it's supposed to (i.e. User data shows up in vcard, including their phone number).
However, when opening/importing the vcard with Outlook 2003 the telephone number is not imported. According to http://microformats.org/wiki/vcard-implementations Outlook 2003 drops the telephone number on import if the Type is not specified (i.e. Business, Home, etc):
MSOutlook2k3 TEL
Drops TEL if TYPE is not explicitly specified.
TEL;TYPE=work: is changed to TEL;WORK;VOICE:
I've added this to line 181 in my copy of the vcard module:
$vcard->addParam('TYPE', 'work');
And that seems to work... but obviously that only works for a business contact site and becomes hardcoded into the site, if there were a way to select/change this in the vcard admin page that would be better.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | vcard_1.patch | 8.47 KB | tstackhouse |
| #5 | vcard.patch | 3.01 KB | james marks |
Comments
Comment #1
sanduhrsThanks for the hint. Will have a look at it.
Comment #2
kamleshpatidar commentedhi hubris ,
i am facing same issue. i am not able to get Phone numbers. Please give me some idea about it. & for Job title what will i have to do. as i wrote
but i got Call to undefined function setJobtitle i also tried addJobtitle. but it's not working.
Kamlesh Patidar
Comment #3
kamleshpatidar commentedhi,
i have done this myself.
Kamlesh patidar
Comment #4
tlangston commentedRunning D6 and latest version of vcard and this problem is still there.
Comment #5
james marks commentedAttaching a patch that
1) Replaces single 'telephone' property in the option list with 'Home telephone' and 'Work telephone' options
(Fixes the import problem by assigning the proper parameter to the telephone number.)
2) Adds 'Full name' to option list
(Allows for profiles that have only one 'full name' field rather than the 'Given name' and 'Family name' fields.)
James
Comment #6
james marks commentedChanging the status.
Comment #7
tstackhouse commentedThis issue is still present in the latest version and the patch in #3 does not apply cleanly. I'm hoping to manually make the changes from the patch and provide an updated patch.
Comment #8
tstackhouse commentedHere's an updated patch that includes home/work phone numbers and addresses, as well as job title. This is also in the newer -p1 format, against 6.x-1.7.
Hope this helps.