You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by rw...@apache.org on 2013/03/27 10:56:59 UTC

svn commit: r1461490 - /stanbol/trunk/enhancer/jersey/src/main/resources/templates/imports/entities.ftl

Author: rwesten
Date: Wed Mar 27 09:56:58 2013
New Revision: 1461490

URL: http://svn.apache.org/r1461490
Log:
minor: entities freemarker template does no longer fail on fise:TextAnnotations with no selected text.

Modified:
    stanbol/trunk/enhancer/jersey/src/main/resources/templates/imports/entities.ftl

Modified: stanbol/trunk/enhancer/jersey/src/main/resources/templates/imports/entities.ftl
URL: http://svn.apache.org/viewvc/stanbol/trunk/enhancer/jersey/src/main/resources/templates/imports/entities.ftl?rev=1461490&r1=1461489&r2=1461490&view=diff
==============================================================================
--- stanbol/trunk/enhancer/jersey/src/main/resources/templates/imports/entities.ftl (original)
+++ stanbol/trunk/enhancer/jersey/src/main/resources/templates/imports/entities.ftl Wed Mar 27 09:56:58 2013
@@ -32,7 +32,7 @@
     ${entity.name}
     </#if>
     <br><span class="metadata">
-    <#if entity.name != entity.selected>for:'${entity.selected}',</#if>
+    <#if entity.selected?exists && entity.name != entity.selected>for:'${entity.selected}',</#if>
     <#if entity.mentions?size &gt; 1>${entity.mentions?size} mentions
     <#else>
       <#if entity.hasOccurrence()>pos:[${entity.start},${entity.end}]</#if></#if>