VIVO-928: added microformats to non persons. Typing goes two levels down in some cases for organizations. Some info content entities covered, though many types not covered by schema.org

This commit is contained in:
Tim Worrall 2015-02-10 16:34:32 -05:00
parent b21cd24489
commit 83b6458fe3
2 changed files with 9 additions and 2 deletions

View file

@ -1,4 +1,6 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#import "lib-microformats.ftl" as mf>
<#--Number of labels present-->
<#if !labelCount??>
<#assign labelCount = 0 >
@ -14,7 +16,7 @@
<#-- Default individual profile page template -->
<#--@dumpAll /-->
<section id="individual-intro" class="vcard" role="region">
<section id="individual-intro" class="vcard" role="region" <@mf.sectionSchema individual/>>
<section id="share-contact" role="region">
<#-- Image -->
<#assign individualImage>
@ -39,7 +41,7 @@
<h2>${relatedSubject.relatingPredicateDomainPublic} for ${relatedSubject.name}</h2>
<p><a href="${relatedSubject.url}" title="${i18n().return_to(relatedSubject.name)}">&larr; ${i18n().return_to(relatedSubject.name)}</a></p>
<#else>
<h1 class="fn">
<h1 class="fn" itemprop="name">
<#-- Label -->
<@p.label individual editable labelCount localesCount languageCount/>

View file

@ -0,0 +1,5 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#macro sectionSchema individual>
<#-- Placeholder macro only. Will generate errors if this file is removed from the Vitro source. -->
</#macro>