No Jira issue. A minor change to the microformats so that the itemtype is applied based on educational process subclass.

This commit is contained in:
Tim Worrall 2015-02-11 16:49:04 -05:00
parent 36227770a8
commit 14d5dce59d

View file

@ -26,7 +26,12 @@
<#local linkedIndividual>
<#if statement.org??>
<a itemscope itemtype="http://schema.org/CollegeOrUniversity" href="${profileUrl(statement.uri("org"))}" title="${i18n().organization_name}"><span itemprop="name">${statement.orgName}</span></a>
<#assign schemaType = "http://schema.org/Organization" />
<#assign subclass = statement.subclass!"" />
<#if subclass?contains("Educational") >
<#assign schemaType = "http://schema.org/CollegeOrUniversity" />
</#if>
<a itemscope itemtype="${schemaType}" href="${profileUrl(statement.uri("org"))}" title="${i18n().organization_name}"><span itemprop="name">${statement.orgName}</span></a>
<#elseif editable>
<#-- Show the link to the context node only if the user is editing the page. -->
<a href="${profileUrl(statement.uri("edTraining"))}" title="${i18n().missing_organization}">${i18n().missing_organization}</a>