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:
parent
36227770a8
commit
14d5dce59d
1 changed files with 6 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue