fixed required 'name' itemprop for Person and made position organizations more descriptive; JIRA VIVO-882
This commit is contained in:
parent
acef06450d
commit
4dec645dd8
2 changed files with 8 additions and 4 deletions
|
@ -20,17 +20,21 @@
|
|||
</#local>
|
||||
<#local linkedIndividual>
|
||||
<#if statement.org??>
|
||||
<a itemprop="worksFor" itemscope itemtype="http://schema.org/Organization" href="${profileUrl(statement.uri("org"))}" title="${i18n().organization_name}">${statement.orgName}</a>
|
||||
<span itemprop="worksFor" itemscope itemtype="http://schema.org/Organization">
|
||||
<a itemprop="name" href="${profileUrl(statement.uri("org"))}" title="${i18n().organization_name}">${statement.orgName}</a>
|
||||
</span>
|
||||
<#else>
|
||||
<#-- This shouldn't happen, but we must provide for it -->
|
||||
<a itemprop="worksFor" itemscope itemtype="http://schema.org/Organization" href="${profileUrl(statement.uri("position"))}" title="${i18n().missing_organization}">${i18n().missing_organization}</a>
|
||||
<a href="${profileUrl(statement.uri("position"))}" title="${i18n().missing_organization}">${i18n().missing_organization}</a>
|
||||
</#if>
|
||||
</#local>
|
||||
<#-- 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??>
|
||||
<a itemprop="worksFor" itemscope itemtype="http://schema.org/Organization" href="${profileUrl(statement.uri("middleOrg"))}" title="${i18n().middle_organization}">${statement.middleOrgName!}</a>
|
||||
<span itemprop="worksFor" itemscope itemtype="http://schema.org/Organization">
|
||||
<a itemprop="name" href="${profileUrl(statement.uri("middleOrg"))}" title="${i18n().middle_organization}">${statement.middleOrgName!}</a>
|
||||
</span>
|
||||
</#if>
|
||||
</#local>
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
<#else>
|
||||
<h1 class="vcard foaf-person">
|
||||
<#-- Label -->
|
||||
<span itemprop="alternateName" class="fn"><@p.label individual editable labelCount localesCount/></span>
|
||||
<span itemprop="name" class="fn"><@p.label individual editable labelCount localesCount/></span>
|
||||
|
||||
<#-- 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")!>
|
||||
|
|
Loading…
Add table
Reference in a new issue