Bugfixes for Freemarker functions
git-svn-id: https://svn.libreccm.org/ccm/trunk@6076 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
41da8d03bf
commit
41699a4488
|
|
@ -18,7 +18,7 @@
|
|||
</#function>
|
||||
|
||||
<#function isTabSelected tab>
|
||||
<#return tab["./@selected]>
|
||||
<#return tab["./@selected"]>
|
||||
</#function>
|
||||
|
||||
<#function getTabLink tab>
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
<#return item["./tab[@name='${selectedTab}']"]> -->
|
||||
|
||||
<#return item["./orgaUnitTabs/selectedTab/*"]
|
||||
<#return item["./orgaUnitTabs/selectedTab/*"]>
|
||||
</#function>
|
||||
|
||||
<#function getTypeOfSelectedTab item>
|
||||
|
|
@ -45,7 +45,7 @@
|
|||
</#function>
|
||||
|
||||
<#function getPropertyFromTab tab name>
|
||||
<#return tab["./*[name()='${name}']">
|
||||
<#return tab["./*[name()='${name}']"]>
|
||||
</#function>
|
||||
|
||||
<#function getTabContent tab>
|
||||
|
|
@ -54,7 +54,7 @@
|
|||
|
||||
<#function getAddendum data>
|
||||
<#return data["./addendum"]>
|
||||
<#function>
|
||||
</#function>
|
||||
|
||||
<#function getMembers data>
|
||||
<#return data["./members"]>
|
||||
|
|
@ -65,11 +65,11 @@
|
|||
</#function>
|
||||
|
||||
<#function getMemberStatus member>
|
||||
<#return member["./@status]>
|
||||
<#return member["./@status"]>
|
||||
</#function>
|
||||
|
||||
<#function getContactEntries member>
|
||||
<#return member["contacts/contact[@contactType = $contact-type]/contactentries]">
|
||||
<#return member["contacts/contact[@contactType = $contact-type]/contactentries"]>
|
||||
</#function>
|
||||
|
||||
<#function getOrgaUnitContact data>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<#-- <pre>Found complex object list ${listId}</pre> -->
|
||||
<#return model["/bebop:page/nav:complexObjectList[@id='${listId}']/nav:objectList/nav:item"]>
|
||||
<#-- <#assign items=model["/bebop:page/nav:simpleObjectList[@id='${listId}']/nav:objectList/nav:item"]> -->
|
||||
<#elseif (model["/bebo p:page/nav:customizableObjectList[@id='${listId}']/nav:objectList"]?size > 0)>
|
||||
<#elseif (model["/bebop:page/nav:customizableObjectList[@id='${listId}']/nav:objectList"]?size > 0)>
|
||||
<#-- <pre>Found customizable object list ${listId}</pre> -->
|
||||
<#return model["/bebop:page/nav:simpleObjectList[@id='${listId}']/nav:objectList/nav:item"]>
|
||||
<#-- <#assign items=model["/bebop:page/nav:simpleObjectList[@id='${listId}']/nav:objectList/nav:item"]> -->
|
||||
|
|
@ -26,11 +26,11 @@
|
|||
</#function>
|
||||
|
||||
<#function getObjectCount listId>
|
||||
<#return model["/bebop:page/*[id='${listId}']/nav:objectList/nav:paginator/@objectCount"].@@text>
|
||||
<#return model["/bebop:page/*[@id='${listId}']/nav:objectList/nav:paginator/@objectCount"].@@text?number>
|
||||
</#function>
|
||||
|
||||
<#function getPaginatorBaseUrl listId>
|
||||
<#assign baseUrl = model["/bebop:page/*[id='${listId}']/nav:objectList/nav:paginator/@baseURL"]>
|
||||
<#assign baseUrl = model["/bebop:page/*[@id='${listId}']/nav:objectList/nav:paginator/@baseURL"]>
|
||||
<#if (baseUrl?contains("?"))>
|
||||
<#return baseUrl + "&">
|
||||
<#else>
|
||||
|
|
@ -39,27 +39,32 @@
|
|||
</#function>
|
||||
|
||||
<#function getPaginatorBegin listId>
|
||||
<#return model["/bebop:page/*[id='${listId}']/nav:objectList/nav:paginator/@objectBegin"]>
|
||||
<#return model["/bebop:page/*[@id='${listId}']/nav:objectList/nav:paginator/@objectBegin"].@@text?number>
|
||||
</#function>
|
||||
|
||||
<#function getPaginatorEnd listId>
|
||||
<#return model["/bebop:page/*[id='${listId}']/nav:objectList/nav:paginator/@objectEnd"]>
|
||||
<#return model["/bebop:page/*[@id='${listId}']/nav:objectList/nav:paginator/@objectEnd"].@@text?number>
|
||||
</#function>
|
||||
|
||||
<#function getPageCount listId>
|
||||
<#return model["/bebop:page/*[id='${listId}']/nav:objectList/nav:paginator/@pageCount"]>
|
||||
<#if (model["/bebop:page/*[@id='${listId}']/nav:objectList/nav:paginator/@pageCount"]?size == 1)>
|
||||
<#return model["/bebop:page/*[@id='${listId}']/nav:objectList/nav:paginator/@pageCount"]?number>
|
||||
<#else>
|
||||
<#return 0>
|
||||
</#if>
|
||||
|
||||
</#function>
|
||||
|
||||
<#function getPageNumber listId>
|
||||
<#return model["/bebop:page/*[id='${listId}']/nav:objectList/nav:paginator/@pageNumber"]>
|
||||
<#return model["/bebop:page/*[@id='${listId}']/nav:objectList/nav:paginator/@pageNumber"].@@text?number>
|
||||
</#function>
|
||||
|
||||
<#function getPageParam listId>
|
||||
<#return model["/bebop:page/*[id='${listId}']/nav:objectList/nav:paginator/@pageParam"]>
|
||||
<#return model["/bebop:page/*[@id='${listId}']/nav:objectList/nav:paginator/@pageParam"]>
|
||||
</#function>
|
||||
|
||||
<#function getPageSize listId>
|
||||
<#return model["/bebop:page/*[id='${listId}']/nav:objectList/nav:paginator/@pageSize"]>
|
||||
<#return model["/bebop:page/*[@id='${listId}']/nav:objectList/nav:paginator/@pageSize"].@@text?number>
|
||||
</#function>
|
||||
|
||||
<#function getPrevPageLink listId>
|
||||
|
|
|
|||
Loading…
Reference in New Issue