Merge pull request #15 from nateprewitt/feature/microformats

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

Merging this, but I'm going to update the educationalTraining template to include a check of the ?subclass variable. If it's "EducationalProcess" or "PostdoctoralTraining", I'll include the item type. (tlw72)
This commit is contained in:
tworrall 2015-02-10 17:01:16 -05:00
commit 6c82131d93
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>