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> <#local linkedIndividual>
<#if statement.org??> <#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> <#elseif editable>
<#-- Show the link to the context node only if the user is editing the page. --> <#-- 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> <a href="${profileUrl(statement.uri("edTraining"))}" title="${i18n().missing_organization}">${i18n().missing_organization}</a>

View file

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