NIHVIVO-3303 - showing the defining source for a concept

This commit is contained in:
stellamit 2011-11-10 17:19:32 +00:00
parent bb4b5af2b3
commit 337249e90c
2 changed files with 43 additions and 4 deletions

View file

@ -6,11 +6,14 @@
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>
<a href="${statement.concept}">${statement.conceptLabel!statement.conceptName}</a>
<#if statement.vocabularySourceName??>
<a href="${statement.concept}">${statement.conceptLabel!statement.conceptName}</a> (<a href="${statement.vocabularySource}">${statement.vocabularySourceName}</a>)
<#else>
<a href="${statement.concept}">${statement.conceptLabel!statement.conceptName}</a>
</#if>
</#macro>