Simple-Contacts
Simple-Contacts copied to clipboard
Types of telephone number not displayed correctly
The types of telephone numbers are not displayed correctly:
- for telephone numbers with the types "PREF", "WORK" and "CELL" the type "Other" is displayed,
- for telephone numbers with the types "WORK" and "VOICE" only the type "Work" is displayed,
- for telephone numbers with the types "HOME" and "VOICE" only the type "Home" is displayed.
Please make sure that all given types are displayed - also the preference ("PREF") should be marked in some way.
vCard version: 3.0
Raw code of vcf file:
BEGIN:VCARD
VERSION:3.0
PRODID:-//Thunderbird.net/NONSGML Thunderbird CardBook V43.7//EN-US
UID:4446-5DD44280-1E3-4F332000
FN:Dr. Max Mustermann
N:Mustermann;Max;;Dr.
NICKNAME:MM
BDAY:1925-05-15
ORG:Test GmbH
EMAIL;TYPE=WORK:[email protected]
TEL;TYPE=WORK,CELL,PREF:+49 172 123456
TEL;TYPE=WORK,VOICE:+49 89 234567
TEL;TYPE=WORK,FAX:+49 89 345678
TEL;TYPE=HOME,VOICE:+49 176 456789
REV:2020-02-11T21:15:11Z
END:VCARD
Screenshot:
I checked the code regarding the changes necessary to solve this issue and in principle it seems quite easy to add support for "Home Cell", "Home Work", "Home Voice" and "Work Voice" - just do it as it is already done for "Home Fax" and "Home Work". I would very appreciate if this could be done for one of the next releases.
But for sure this does not solve the general problem as there are many more combinations possible. Therefore I suggest to better not try to determine the combination at all but to just display the types (except of "PREF", possible translated and sorted) as they are given in the vcf file. So anybody would get the types she or he inputs in the vcf file. I think this would be more simple (so better fitting the "simple app idea" :-)) and even could reduce some similar code for the types of email addresses, phone numbers, addresses, .... But this idea most probably needs thinking about some details.
My research says, the whole vCard implementation is not correct by now. A lot of software is failling in it, so that´s an excuse for now. For those working on the vcard implementaiton I support to check-out CardBook from Thunderbird, they do it well.
For this case: TEL;TYPE=WORK,CELL,PREF:+49 172 123456 Should result in display Work Mobile As side note, something that marks it as the 'PREF' number should exist...