Freemarker Lib for ccm-sci-types-department now also supports nav:attribute for short description

git-svn-id: https://svn.libreccm.org/ccm/trunk@6212 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2019-09-19 18:33:05 +00:00
parent 1af32913b0
commit 3f6f038649
1 changed files with 3 additions and 1 deletions

View File

@ -16,12 +16,14 @@
</#function>
<#function getShortDescription data>
<#if (data["./instituteShortDescription"]?size > 0)>
<#if (data["./departmentShortDescription"]?size > 0)>
<#return data["./departmentShortDescription"]>
<#elseif (data["./shortDescription"]?size > 0)>
<#return data["./shortDescription"]>
<#elseif (data["./shortDesc"]?size > 0)>
<#return data["./shortDesc"]>
<#elseif (data["./nav:attribute[@name='departmentShortDescription']"]?size > 0)>
<#return data["./nav:attribute[@name='departmentShortDescription']"]>
</#if>
</#function>