[uf-discuss] hCard agent

Brian Suda brian.suda at gmail.com
Wed Jan 24 03:27:48 PST 2007


On 1/24/07, Mark <mark at geekhive.net> wrote:
> Hi All,
>
> I'm pulling this question out of an earlier thread, because I think
> maybe it was buried.
>
> I'm trying to figure out a good way to label multiple phone numbers for
> a given entity (in this case a performance venue) so that the labels are
> human-useable, and of course work within the format.

you can certainly have multiple phone numbers for the same hCard,
simple have something like:

<ul>
<li class="tel">+123456</li>
<li class="tel">+123457</li>
<li class="tel">+123458</li>
</ul>

> For example, a concert hall has a number of "work" phone numbers, one
> for the box-office and one for administration.  There might be yet
> another number for a technical contact for discussing things like lights
> and sound, stagecraft, etc.

you can futher add TYPEs to each phone, but they are not that specific.

> I'm starting to think that the only way to communicate the different
> purposes for these contacts with hCard is to treat them as separate, but
> linked contacts.  My question is: is the agent attribute/property the
> right way to insert this linkage?  If so how is it best used?  Should I
> just embed one vcard in another, or should I use a URL?

you have several choices here.

1) there is a NOTES field, so you can stick several other phone numbers there.
2) you can use the include-pattern so that you can reference the
common data across multiple hCards
3) you can simply create one hCard for each division.

-brian


-- 
brian suda
http://suda.co.uk


More information about the microformats-discuss mailing list