#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Macros related to the display of vivo ontology properties -->
<#import "lib-properties.ftl" as p>
<#assign core = "http://vivoweb.org/ontology/core#">
<#-- Display preferredTitle if it exists; otherwise display mostSpecificTypes -->
<#macro displayTitle individual>
<#if individual.preferredTitle?has_content>
${individual.preferredTitle}
<#else>
<@p.mostSpecificTypes individual />
#if>
#macro>
<#-- core:webpage
Note that this macro has a side-effect in the call to propertyGroups.pullProperty().
-->
<#macro webpages propertyGroups editable linkListClass="individual-urls">
<#local webpage = propertyGroups.pullProperty("${core}webpage")!>
<#if webpage?has_content> <#-- true when the property is in the list, even if not populated (when editing) -->
#if>
#macro>