From acef06450d0cc0ab9414537704fba99b7fc10bdf Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Tue, 14 Oct 2014 15:44:40 -0600 Subject: [PATCH] Microformat markup for Persons using schema.org; JIRA VIVO-882 --- .../individual/individual--foaf-person-2column.ftl | 2 +- .../individual--foaf-person-quickview.ftl | 2 +- .../individual/individual-contactInfo-2column.ftl | 6 +++--- .../partials/individual/individual-contactInfo.ftl | 4 ++-- .../individual/propStatement-personInPosition.ftl | 14 +++++++++----- themes/wilma/templates/individual--foaf-person.ftl | 6 +++--- 6 files changed, 19 insertions(+), 15 deletions(-) diff --git a/productMods/templates/freemarker/body/individual/individual--foaf-person-2column.ftl b/productMods/templates/freemarker/body/individual/individual--foaf-person-2column.ftl index 8767a3d5..38560fa2 100644 --- a/productMods/templates/freemarker/body/individual/individual--foaf-person-2column.ftl +++ b/productMods/templates/freemarker/body/individual/individual--foaf-person-2column.ftl @@ -23,7 +23,7 @@ <#assign visRequestingTemplate = "foaf-person-2column"> <#--add the VIVO-ORCID interface --> <#include "individual-orcidInterface.ftl"> -
+
<#-- Image --> <#assign individualImage> diff --git a/productMods/templates/freemarker/body/individual/individual--foaf-person-quickview.ftl b/productMods/templates/freemarker/body/individual/individual--foaf-person-quickview.ftl index 558d6aa8..b6ef6911 100644 --- a/productMods/templates/freemarker/body/individual/individual--foaf-person-quickview.ftl +++ b/productMods/templates/freemarker/body/individual/individual--foaf-person-quickview.ftl @@ -51,7 +51,7 @@ -
+
style="width:45%" >
<#if relatedSubject??> diff --git a/productMods/templates/freemarker/body/partials/individual/individual-contactInfo-2column.ftl b/productMods/templates/freemarker/body/partials/individual/individual-contactInfo-2column.ftl index 19540597..8745c0cc 100644 --- a/productMods/templates/freemarker/body/partials/individual/individual-contactInfo-2column.ftl +++ b/productMods/templates/freemarker/body/partials/individual/individual-contactInfo-2column.ftl @@ -39,7 +39,7 @@
    <#list phone.statements as statement>
  • style="padding-left:10px;"> - ${statement.number!} + ${statement.number!} <@p.editingLinks "${phone.localName}" "${phone.name}" statement editable phone.rangeUri />
  • @@ -65,11 +65,11 @@ <#list email.statements as statement>
  • style="padding-left:10px;"> - + <@p.editingLinks "${email.localName}" "${email.name}" statement editable email.rangeUri />
- \ No newline at end of file + diff --git a/productMods/templates/freemarker/body/partials/individual/individual-contactInfo.ftl b/productMods/templates/freemarker/body/partials/individual/individual-contactInfo.ftl index 0f990bb2..4399ea5c 100644 --- a/productMods/templates/freemarker/body/partials/individual/individual-contactInfo.ftl +++ b/productMods/templates/freemarker/body/partials/individual/individual-contactInfo.ftl @@ -24,7 +24,7 @@
    style="list-style:none;margin-left:0;"> <#list phone.statements as statement>
  • - ${statement.number!} + ${statement.number!} <@p.editingLinks "${phone.localName}" "${phone.name}" statement editable phone.rangeUri />
  • @@ -46,7 +46,7 @@
      style="list-style:none;margin-left:0;"> <#list email.statements as statement>
    • - + <@p.editingLinks "${email.localName}" "${email.name}" statement editable email.rangeUri />
    • diff --git a/productMods/templates/freemarker/body/partials/individual/propStatement-personInPosition.ftl b/productMods/templates/freemarker/body/partials/individual/propStatement-personInPosition.ftl index e6aebc47..e05a47e9 100644 --- a/productMods/templates/freemarker/body/partials/individual/propStatement-personInPosition.ftl +++ b/productMods/templates/freemarker/body/partials/individual/propStatement-personInPosition.ftl @@ -8,28 +8,32 @@ <#import "lib-sequence.ftl" as s> <#import "lib-datetime.ftl" as dt> + <@showPosition statement /> <#-- Use a macro to keep variable assignments local; otherwise the values carry over to the next statement --> <#macro showPosition statement> + <#local posTitle> + ${statement.positionTitle!statement.hrJobTitle!} + <#local linkedIndividual> <#if statement.org??> - ${statement.orgName} + ${statement.orgName} <#else> <#-- This shouldn't happen, but we must provide for it --> - ${i18n().missing_organization} + ${i18n().missing_organization} <#-- The sparql query returns both the org's parent (middleOrg) and grandparent (outerOrg). For now, we are only displaying the parent in the list view. --> <#local middleOrganization> <#if statement.middleOrg??> - ${statement.middleOrgName!} + ${statement.middleOrgName!} - <@s.join [ statement.positionTitle!statement.hrJobTitle!, linkedIndividual, middleOrganization! ]/> <@dt.yearIntervalSpan "${statement.dateTimeStart!}" "${statement.dateTimeEnd!}" /> + <@s.join [ posTitle, linkedIndividual, middleOrganization! ]/> <@dt.yearIntervalSpan "${statement.dateTimeStart!}" "${statement.dateTimeEnd!}" /> - \ No newline at end of file + diff --git a/themes/wilma/templates/individual--foaf-person.ftl b/themes/wilma/templates/individual--foaf-person.ftl index 0799d650..ebc894e7 100644 --- a/themes/wilma/templates/individual--foaf-person.ftl +++ b/themes/wilma/templates/individual--foaf-person.ftl @@ -24,7 +24,7 @@ <#--add the VIVO-ORCID interface --> <#include "individual-orcidInterface.ftl"> -
      +
      @@ -72,7 +72,7 @@ <#else>

      <#-- Label --> - <@p.label individual editable labelCount localesCount/> + <@p.label individual editable labelCount localesCount/> <#-- Display preferredTitle if it exists; otherwise mostSpecificTypes --> <#assign title = propertyGroups.pullProperty("http://purl.obolibrary.org/obo/ARG_2000028","http://www.w3.org/2006/vcard/ns#Title")!> @@ -84,7 +84,7 @@ <@p.verboseDisplay title /> <#list title.statements as statement> - ${statement.preferredTitle} + ${statement.preferredTitle} <@p.editingLinks "${title.localName}" "${title.name}" statement editable title.rangeUri />