[uf-discuss] hCard markup question w.r.t. organizations

2008-06-20 Thread Amelia Ireland
Hi,

What is the recommendation for marking up an organization (or department
/ group) within an organization using the hCard spec? For example, I want
to create an hCard for the Molecular Biology Lab at the University of
Cambridge. I presume that something like this would not work:

fn, organization-unit: Molecular Biology Lab
organization-name: University of Cambridge

Any help would be appreciated!

Thanks,
Amelia.

-- 
Amelia Ireland
GO Editorial Office
http://www.ebi.ac.uk || http://www.berkeleybop.org
Carbon neutral driving: http://www.targetneutral.com/TONIC/index.jsp

___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss


[uf-discuss] hCard markup question w.r.t. organizations

2008-06-20 Thread Toby A Inkster

Basic idea is:

div class=vcard
  div class=org
div class=organization-unit fnMolecular Biology Lab/div
div class=organization-nameUniversity of Cambridge/div
  /div
/div

If this is also part of the lab's postal address, you can combine it  
nicely with the adr:


div class=vcard
  div class=adr label
div class=org
  div class=organization-unit extended-address fn
Molecular Biology Lab
  /div
  div class=organization-name extended-address
University of Cambridge
  /div
/div
div class=street-address123 Some Street/div
!-- etc --
  /div
/div

The drafts for vCard 4.0 (hCard is based on vCard 3.0) include a  
property called KIND to indicate which type of thing the card  
provides contact information for. e.g. individual, org, group, etc.  
Cognition http://buzzword.org.uk/cognition/ will automatically  
infer the kind of hCard by noticing that the fn and organization- 
unit properties are identical, so the kind must be group.


--
Toby A Inkster
mailto:[EMAIL PROTECTED]
http://tobyinkster.co.uk



___
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss