minor changes for University and Person names with schema.org markup

This commit is contained in:
Nate Prewitt 2015-02-10 12:17:48 -07:00
parent 4dec645dd8
commit d121f725be
2 changed files with 6 additions and 6 deletions

View file

@ -26,7 +26,7 @@
<#local linkedIndividual>
<#if statement.org??>
<a href="${profileUrl(statement.uri("org"))}" title="${i18n().organization_name}">${statement.orgName}</a>
<a itemscope itemtype="http://schema.org/CollegeOrUniversity" 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>

View file

@ -11,10 +11,10 @@
<#macro showFullName statement>
<#if statement.fullName?has_content>
<#if statement.prefix??>${statement.prefix!}</#if>
${statement.firstName!}
${statement.middleName!}
${statement.lastName!}<#if statement.suffix??>, ${statement.suffix!}</#if>
<#if statement.prefix??><span itemprop="honorificPrefix">${statement.prefix!}</span></#if>
<span itemprop="givenName">${statement.firstName!}</span>
<span itemprop="additionalName">${statement.middleName!}</span>
<span itemprop="familyName">${statement.lastName!}</span><#if statement.suffix??>, ${statement.suffix!}</#if>
</#if>
</#macro>
</#macro>