[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-contacts development
From: |
Michael Strey |
Subject: |
Re: [O] org-contacts development |
Date: |
Tue, 27 May 2014 11:27:02 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Reading http://orgmode.org/worg/dev/org-syntax.html#Node_Properties
I just realised that my clumsy property keys are against the rules since
they are containing whitespace characters.
Nevertheless I still like the idea of having a Type, a number and a
Value for every property that can occur multiple. Thus the properties
can be easily mapped to the VCard scheme as well as to any other scheme.
Thus, what I would like to propose is the following scheme:
#+BEGIN_SRC org
:PROPERTIES:
:Contact_Type: individual or organisation
:Organization_1_Type: company
:Organization_1_Name: The company name
:Organization_1_Department: department, business unit, division
:Organization_1_Title: job title of an individual
:FN: The full name
:GivenName:
:FamilyName:
:Name_Prefix:
:Name_Suffix:
:Nickname:
:Email_1_Type: Work
:Email_1_Value: address@hidden
:Address_1_Type: Work
:Address_1_Street: The street can contain multiple lines \\ second line
:Address_1_Box: Postal box
:Address_1_Extension: other extensions that can occur in addresses
:Address_1_City: The city
:Address_1_Region: Region, federal state etc.
:Address_1_Code: 12100
:Address_1_Country: France
:Phone_1_Type: Work
:Phone_1_Value: +33 565 623740
:Phone_2_Type: Fax
:Phone_2_Value: +33 565 623070
:Website_1_Type: Work
:Website_1_Value: http://www.domain.fr
:Birthday:
:Language: en
:Salutation:
:END:
#+END_SRC
Other user defined properties can be added and mapped to the appropriate
user defined keys during export.
Further remarks regarding my last e-mail:
> #+BEGIN: propview :id "39584cda-bff0-4b8a-9460-4fefb5b5922c" :cols (Given\
> Name Family\ Name ITEM Name\ Prefix Name\ Suffix Nickname EMAIL Phone\ 1\ -\
> Type Phone\ 1\ -\ Value Phone\ 2\ -\ Type Phone\ 2\ -\ Value Phone\ 3\ -\
> Type Phone\ 3\ -\ Value Phone\ 4\ -\ Type Phone\ 4\ -\ Value Address\ 1\ -\
> Type Address\ 1\ -\ Street Address\ 1\ -\ PO\ Box Address\ 1\ -\ Extended\
> Address Address\ 1\ -\ City Address\ 1\ -\ Region Address\ 1\ -\ Postal\ Code
> Address\ 1\ -\ Country Address\ 2\ -\ Type Address\ 2\ -\ Street Address\ 2\
> -\ PO\ Box Address\ 2\ -\ Extended\ Address Address\ 2\ -\ City Address\ 2\
> -\ Region Address\ 2\ -\ Postal\ Code Address\ 2\ -\ Country Address\ 3\ -\
> Type Address\ 3\ -\ Street Address\ 3\ -\ PO\ Box Address\ 3\ -\ Extended\
> Address Address\ 3\ -\ City Address\ 3\ -\ Region Address\ 3\ -\ Postal\ Code
> Address\ 3\ -\ Country Organization\ 1\ -\ Name Birthday Organization\ 1\ -\
> Title Organization\ 1\ -\ Department Website\ 1\ -\ Type Website\ 1\ -\ Value
> LANG TAGS) :colnames ("Given Name" "Family Name" "Name" "Name Prefix" "Name
> Suffix" "Nickname" "E-mail 1 - Value" "Phone 1 - Type" "Phone 1 - Value"
> "Phone 2 - Type" "Phone 2 - Value" "Phone 3 - Type" "Phone 3 - Value" "Phone
> 4 - Type" "Phone 4 - Value" "Address 1 - Type" "Address 1 - Street" "Address
> 1 - PO Box" "Address 1 - Extended Address" "Address 1 - City" "Address 1 -
> Region" "Address 1 - Postal Code" "Address 1 - Country" "Address 2 - Type"
> "Address 2 - Street" "Address 2 - PO Box" "Address 2 - Extended Address"
> "Address 2 - City" "Address 2 - Region" "Address 2 - Postal Code" "Address 2
> - Country" "Address 3 - Type" "Address 3 - Street" "Address 3 - PO Box"
> "Address 3 - Extended Address" "Address 3 - City" "Address 3 - Region"
> "Address 3 - Postal Code" "Address 3 - Country" "Organization 1 - Name"
> "Birthday" "Oganization 1 - Title" "Organization 1 - Department" "Website 1 -
> Type" "Website 1 - Value" "Language" "org-tags") :defaultval "" :inherit
> (TAGS) :conds ((stringp KIND)) :match "-ARCHIVE" :noquote t
Here I forgot to copy the #+END:
Please note that org-collector tries to convert property values from
strings into numbers if possible. For postal codes with leading Zeros
this can lead to unexpected results. I did not find any other way to
solve this problem than to add a national code like in the following
example
:Address_1_Code: 01169
would lead to "1169" in the propview table.
so I replaced it with
:Address_1_Code: DE-01169
--
Michael Strey
mailto:address@hidden
http://www.strey.biz
https://twitter.com/michaelstrey
- Re: [O] org-contacts development, (continued)
[O] Org-contacts standardization (was: org-contacts development), Karl Voit, 2014/05/24
Message not available
Re: [O] org-contacts development, Daimrod, 2014/05/24
Re: [O] org-contacts development, Michael Strey, 2014/05/26
- Re: [O] org-contacts development,
Michael Strey <=