http://microformats.org/wiki/hresume#Job_Titles
To express one or more job titles/positions in the same experience
event you should use hCards. hcard requires the fn ("formatted name")
field, but it isn't reasonable to repeat your name for every job title
you mark up in hresume. So, you may use an <object> and the class name
'include' with a reference to the fn somewhere else on the page.
How can this be done with mofo?
Also, LinkedIn marks up personal links as XFN (class "url"). How can
this be added to the hResume spec? This doesn't seem to work:
many :url => XFN
> To express one or more job titles/positions in the same experience
> event you should use hCards. hcard requires the fn ("formatted name")
> field, but it isn't reasonable to repeat your name for every job title
> you mark up in hresume. So, you may use an <object> and the class name
> 'include' with a reference to the fn somewhere else on the page.
mofo doesn't yet support the include pattern. I'd like to get this in
for the 0.2 release, especially given the hResume support LinkedIn has
incorporated. Can you send me a pastie of what you have so far for
hResume? We could probably get done this week.
> Also, LinkedIn marks up personal links as XFN (class "url"). How can
> this be added to the hResume spec? This doesn't seem to work:
>
> many :url => XFN
I think that's incorrect. XFN is a page-level format based on the
'rel' attribute, not class based like "Microformats." The 'url' class
is a special microformat class with its own semantics that mofo
already supports. You shouldn't have to do anything special (beyond
declaring many :url) to get it working.
The rel="me" stuff is because LinkedIn is using both XFN and hCard
side by side. The XFN stuff says what relation links have to the page
you're viewing while the 'url' class states the url of the vcard. So
you can have more than one hCard on a page, but you can't have
multiple XFN links with rel="me" for different people on the same
page. Unless you're that crazy blonde girl from Heroes.
Anyway, hit me with your hresume.rb thus far and I'll get cranking.
--
Chris Wanstrath
http://errtheblog.com
> I think that's incorrect. XFN is a page-level format based on the
> 'rel' attribute, not class based like "Microformats." The 'url' class
> is a special microformat class with its own semantics that mofo
> already supports. You shouldn't have to do anything special (beyond
> declaring many :url) to get it working.
The thing about :url is that it only captures the href, not the name
of the link. Probably the more correct thing to do would be something
like
@resume = HResume.find('www.linkedin.com/in/blah')
@links = XFN.find('www.linkedin.com/in/blah')
I uploaded hresume.rb to the group files area.
> The thing about :url is that it only captures the href, not the name
> of the link. Probably the more correct thing to do would be something
> like
That's true, but that's how the spec goes. We could always cheat and
add an .inside method or something to the URL string? I'm okay with
cheating as long as it doesn't change things in the spec.
> @resume = HResume.find('www.linkedin.com/in/blah')
> @links = XFN.find('www.linkedin.com/in/blah')
>
> I uploaded hresume.rb to the group files area.
Cool, I will let you know of my progress. I want to get 0.2 out next
week. March 13th is a special day.
- Chris