<#-- $This file is distributed under the terms of the license in LICENSE$ -->

<#-- Custom object property statement view for http://vivoweb.org/ontology/core#hasAssociatedConcept.

     This template must be self-contained and not rely on other variables set for the individual page, because it
     is also used to generate the property statement during a deletion.
 -->
<@showConcept statement />

<#-- Use a macro to keep variable assignments local; otherwise the values carry over to the
     next statement -->
<#macro showConcept statement>
      <#if statement.vocabularySourceName??>
          <a href="${profileUrl(statement.uri("concept"))}" title="${i18n().concept_name}">${statement.conceptLabel!statement.conceptName}</a> (${statement.vocabularySourceName})
      <#else>
          <a href="${profileUrl(statement.uri("concept"))}" title="${i18n().concept_name}">${statement.conceptLabel!statement.conceptName}</a>
      </#if>
</#macro>
