2011-07-06 19:02:49 +00:00
|
|
|
<#-- $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>
|
|
|
|
|
2011-07-07 20:34:15 +00:00
|
|
|
<#assign core = "http://vivoweb.org/ontology/core#">
|
|
|
|
|
2011-07-06 19:02:49 +00:00
|
|
|
<#-- Display preferredTitle if it exists; otherwise display mostSpecificTypes -->
|
|
|
|
<#macro displayTitle individual>
|
|
|
|
<#if individual.preferredTitle?has_content>
|
|
|
|
<span class="display-title">${individual.preferredTitle}</span>
|
|
|
|
<#else>
|
|
|
|
<@p.mostSpecificTypes individual />
|
|
|
|
</#if>
|
2011-07-07 20:34:15 +00:00
|
|
|
</#macro>
|
|
|
|
|
|
|
|
<#-- core:webpage
|
|
|
|
|
|
|
|
Note that this macro has a side-effect in the call to propertyGroups.pullProperty().
|
|
|
|
-->
|
2011-10-21 18:00:40 +00:00
|
|
|
|
2011-07-07 20:34:15 +00:00
|
|
|
<#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) -->
|
|
|
|
<nav role="navigation">
|
2013-11-11 10:34:14 -05:00
|
|
|
<#local label = "${i18n().websites}">
|
2011-07-07 20:34:15 +00:00
|
|
|
<@p.addLinkWithLabel webpage editable label />
|
|
|
|
<#if webpage.statements?has_content> <#-- if there are any statements -->
|
2013-01-31 11:15:48 -05:00
|
|
|
<#include "individual-webpage.ftl" >
|
2011-07-07 20:34:15 +00:00
|
|
|
</#if>
|
|
|
|
</nav>
|
|
|
|
</#if>
|
2011-10-21 18:00:40 +00:00
|
|
|
</#macro>
|