Posted by hubris on July 14, 2008 at 9:36pm
| Project: | vCard |
| Version: | 6.x-1.3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
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.
Comments
#1
Thanks for the hint. Will have a look at it.
#2
hi 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
if (!empty($jobtitle)) {$vcard->setJobtitle($jobtitle);
}
but i got Call to undefined function setJobtitle i also tried addJobtitle. but it's not working.
Kamlesh Patidar
#3
hi,
i have done this myself.
Kamlesh patidar
#4
Running D6 and latest version of vcard and this problem is still there.
#5
Attaching 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
#6
Changing the status.