From 83b6458fe3d62614bcf386f1d000ae91f205ed9a Mon Sep 17 00:00:00 2001 From: Tim Worrall Date: Tue, 10 Feb 2015 16:34:32 -0500 Subject: [PATCH] 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 --- .../freemarker/body/individual/individual-vitro.ftl | 6 ++++-- webapp/web/templates/freemarker/lib/lib-microformats.ftl | 5 +++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 webapp/web/templates/freemarker/lib/lib-microformats.ftl diff --git a/webapp/web/templates/freemarker/body/individual/individual-vitro.ftl b/webapp/web/templates/freemarker/body/individual/individual-vitro.ftl index 45042708d..f37214ebc 100644 --- a/webapp/web/templates/freemarker/body/individual/individual-vitro.ftl +++ b/webapp/web/templates/freemarker/body/individual/individual-vitro.ftl @@ -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 /--> -
+
>
<#-- Image --> <#assign individualImage> @@ -39,7 +41,7 @@

${relatedSubject.relatingPredicateDomainPublic} for ${relatedSubject.name}

← ${i18n().return_to(relatedSubject.name)}

<#else> -

+

<#-- Label --> <@p.label individual editable labelCount localesCount languageCount/> diff --git a/webapp/web/templates/freemarker/lib/lib-microformats.ftl b/webapp/web/templates/freemarker/lib/lib-microformats.ftl new file mode 100644 index 000000000..14242d21a --- /dev/null +++ b/webapp/web/templates/freemarker/lib/lib-microformats.ftl @@ -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. --> + \ No newline at end of file