Bugfixes for Freemarker functions
git-svn-id: https://svn.libreccm.org/ccm/trunk@6088 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
c53a4b6bde
commit
550f35eb3e
|
|
@ -13,6 +13,7 @@
|
|||
<ccm:directory name="pdl"/>
|
||||
<ccm:directory name="sql"/>
|
||||
<ccm:directory name="src"/>
|
||||
<ccm:directory name="web"/>
|
||||
</ccm:directories>
|
||||
<ccm:contacts>
|
||||
<ccm:contact uri="http://www.redhat.com/software/rhea" type="website"/>
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
<ccm:directory name="pdl"/>
|
||||
<ccm:directory name="sql"/>
|
||||
<ccm:directory name="src"/>
|
||||
<ccm:directory name="web"/>
|
||||
</ccm:directories>
|
||||
<ccm:contacts>
|
||||
<ccm:contact uri="http://www.redhat.com/software/rhea" type="website"/>
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
<ccm:directory name="pdl"/>
|
||||
<ccm:directory name="sql"/>
|
||||
<ccm:directory name="src"/>
|
||||
<ccm:directory name="web"/>
|
||||
</ccm:directories>
|
||||
<ccm:contacts>
|
||||
<ccm:contact uri="http://www.redhat.com/software/rhea" type="website"/>
|
||||
|
|
|
|||
|
|
@ -72,6 +72,10 @@
|
|||
<#return member["contacts/contact[@contactType = $contact-type]/contactentries"]>
|
||||
</#function>
|
||||
|
||||
<#function hasOrgaUnitContact data>
|
||||
<#return (data["./contacts/contact"]?size > 0)>
|
||||
</#function>
|
||||
|
||||
<#function getOrgaUnitContact data>
|
||||
<#return data["./contacts/contact[1]"]>
|
||||
</#function>
|
||||
|
|
|
|||
|
|
@ -10,11 +10,12 @@
|
|||
<ccm:requires name="ccm-core" version="6.6.3" relation="ge"/>
|
||||
<ccm:requires name="ccm-cms" version="6.6.4" relation="ge"/>
|
||||
</ccm:dependencies>
|
||||
<ccm:directories>
|
||||
<!--<ccm:directories>
|
||||
<ccm:directory name="pdl"/>
|
||||
<ccm:directory name="sql"/>
|
||||
<ccm:directory name="src"/>
|
||||
</ccm:directories>s
|
||||
<ccm:directory name="web"/>
|
||||
</ccm:directories>-->
|
||||
<ccm:contacts>
|
||||
<ccm:contact uri="http://www.scientificcms.org" type="website"/>
|
||||
<ccm:contact uri="mailto:info@scientificcms.org" type="support"/>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
<#elseif (item["./lifeSpan/begin"])>
|
||||
<#return item["./lifeSpan/begin"]>
|
||||
<#elseif (item["./nav:attribute[@name = 'projectBegin']"])>
|
||||
<#return ./nav:attribute[@name = 'projectBegin']"]>
|
||||
<#return item["./nav:attribute[@name = 'projectBegin']"]>
|
||||
</#if>
|
||||
</#function>
|
||||
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
<#elseif (item["./lifeSpan/end"])>
|
||||
<#return item["./lifeSpan/end"]>
|
||||
<#elseif (item["./nav:attribute[@name = 'projectEnd']"])>
|
||||
<#return ./nav:attribute[@name = 'projectEnd']"]>
|
||||
<#return item["./nav:attribute[@name = 'projectEnd']"]>
|
||||
</#if>
|
||||
</#function>
|
||||
|
||||
|
|
@ -34,11 +34,11 @@
|
|||
</#function>
|
||||
|
||||
<#function getShortDescription item>
|
||||
<#if (item["./projectShortDesc"])>
|
||||
<#if (item["./projectShortDesc"]?size > 0)>
|
||||
<#return item["./projectShortDesc"]>
|
||||
<#elseif (item["./shortDesc"])>
|
||||
<#elseif (item["./shortDesc"]?size > 0)>
|
||||
<#return item["./shortDesc"]>
|
||||
<#elseif (item["./"])>
|
||||
<#elseif (item["./"]?size > 0)>
|
||||
<#return item["./shortDescription"]>
|
||||
</#if>
|
||||
</#function>
|
||||
|
|
@ -51,6 +51,10 @@
|
|||
<#return sponsor["."]>
|
||||
</#function>
|
||||
|
||||
<#function hasSponsorFundingCode sponsor>
|
||||
<#return (sponsor["./@fundingCode"]?size > 0)>
|
||||
</#function>
|
||||
|
||||
<#function getSponsorFundingCode sponsor>
|
||||
<#return sponsor["./@fundingCode"]>
|
||||
</#function>
|
||||
|
|
@ -59,10 +63,18 @@
|
|||
<#return sponsor["./@href"]>
|
||||
</#function>
|
||||
|
||||
<#function hasFunding item>
|
||||
<#return (item["./funding"]?size > 0)>
|
||||
</#function>
|
||||
|
||||
<#function getFunding item>
|
||||
<#return item["./funding"]>
|
||||
</#function>
|
||||
|
||||
<#function hasFundingVolume item>
|
||||
<#return (item["./fundingVolume"]?size > 0)>
|
||||
</#function>
|
||||
|
||||
<#function getFundingVolume item>
|
||||
<#return item["./fundingVolume"]>
|
||||
</#function>
|
||||
|
|
@ -112,6 +124,6 @@
|
|||
</#function>
|
||||
|
||||
<#function getInvolvedOrganizationLink orga>
|
||||
<#return orga["./links[1]/targetURI]>
|
||||
<#return orga["./links[1]/targetURI"]>
|
||||
</#function>
|
||||
|
||||
Loading…
Reference in New Issue