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:
parent
b21cd24489
commit
83b6458fe3
2 changed files with 9 additions and 2 deletions
|
@ -1,4 +1,6 @@
|
||||||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||||
|
<#import "lib-microformats.ftl" as mf>
|
||||||
|
|
||||||
<#--Number of labels present-->
|
<#--Number of labels present-->
|
||||||
<#if !labelCount??>
|
<#if !labelCount??>
|
||||||
<#assign labelCount = 0 >
|
<#assign labelCount = 0 >
|
||||||
|
@ -14,7 +16,7 @@
|
||||||
|
|
||||||
<#-- Default individual profile page template -->
|
<#-- Default individual profile page template -->
|
||||||
<#--@dumpAll /-->
|
<#--@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">
|
<section id="share-contact" role="region">
|
||||||
<#-- Image -->
|
<#-- Image -->
|
||||||
<#assign individualImage>
|
<#assign individualImage>
|
||||||
|
@ -39,7 +41,7 @@
|
||||||
<h2>${relatedSubject.relatingPredicateDomainPublic} for ${relatedSubject.name}</h2>
|
<h2>${relatedSubject.relatingPredicateDomainPublic} for ${relatedSubject.name}</h2>
|
||||||
<p><a href="${relatedSubject.url}" title="${i18n().return_to(relatedSubject.name)}">← ${i18n().return_to(relatedSubject.name)}</a></p>
|
<p><a href="${relatedSubject.url}" title="${i18n().return_to(relatedSubject.name)}">← ${i18n().return_to(relatedSubject.name)}</a></p>
|
||||||
<#else>
|
<#else>
|
||||||
<h1 class="fn">
|
<h1 class="fn" itemprop="name">
|
||||||
<#-- Label -->
|
<#-- Label -->
|
||||||
<@p.label individual editable labelCount localesCount languageCount/>
|
<@p.label individual editable labelCount localesCount languageCount/>
|
||||||
|
|
||||||
|
|
5
webapp/web/templates/freemarker/lib/lib-microformats.ftl
Normal file
5
webapp/web/templates/freemarker/lib/lib-microformats.ftl
Normal 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>
|
Loading…
Add table
Reference in a new issue