Several bugfixes for Freemarker function/macro libraries
git-svn-id: https://svn.libreccm.org/ccm/trunk@6251 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
e183cc9ef2
commit
234259f4a5
|
|
@ -12,14 +12,12 @@
|
|||
"imageId": image["./image/id"].@@text,
|
||||
"name": image["./image/name"].@@text,
|
||||
"caption": image["./caption"].@@text,
|
||||
"sortKey": image["./sortKey"]@number,
|
||||
"width": image["./width"]@number,
|
||||
"height": image["./width"]@number,
|
||||
"imageUrl: dispatcherPrefix + "/cms-service/stream/image/?image_id=" + image["./image/id"].@@text
|
||||
"sortKey": image["./sortKey"].@@text?number,
|
||||
"width": image["./image/width"].@@text,
|
||||
"height": image["./image/height"].@@text,
|
||||
"imageUrl": dispatcherPrefix + "/cms-service/stream/image/?image_id=" + image["./image/id"].@@text
|
||||
}
|
||||
)?sort_by("sortKey")>
|
||||
|
||||
<#-- <#return item["./imageAttachments"]> -->
|
||||
</#function>
|
||||
|
||||
<#-- <#function getImageId image>
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@
|
|||
<#if (_getLinkType(link) == "caption")>
|
||||
<#return "">
|
||||
<#elseif (_getLinkType(link) == "internalLink")>
|
||||
<#return "${contextPrefix}/redirect/?oid=${link['./targetItem/@oid']}${getInternalLinkParameters(link)}">
|
||||
<#return "${contextPrefix}/redirect/?oid=${link['./targetItem/@oid']}${_getInternalLinkParameters(link)}">
|
||||
<#else>
|
||||
<#return link["./targetURI"].@@text>
|
||||
</#if>
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@
|
|||
<#else>
|
||||
<#return model["/ppp:profile/personalPublications/publications/publicationGroup/nav:paginator/@baseURL"].@@text + "?">
|
||||
</#if>
|
||||
<#function>
|
||||
</#function>
|
||||
|
||||
<#function getPublicationsPaginatorPageCount profile>
|
||||
<#return model["/ppp:profile/personalPublications/publications/publicationGroup/nav:paginator/@pageCount"].@@text>
|
||||
|
|
@ -126,7 +126,7 @@
|
|||
</#function>
|
||||
|
||||
<#function getPublicationsPaginatonFirstPageLink profile>
|
||||
<#return getPublicationsPaginatorBaseUrl(profile) + getPublicationsPaginatorPageParam(profile) + "=1)>
|
||||
<#return getPublicationsPaginatorBaseUrl(profile) + getPublicationsPaginatorPageParam(profile) + "=1">
|
||||
</#function>
|
||||
|
||||
<#function getPublicationsPaginatorNextPageLink profile>
|
||||
|
|
@ -134,7 +134,7 @@
|
|||
</#function>
|
||||
|
||||
<#function getPublicationsPaginatorLastPageLink profile>
|
||||
<#return getPublicationsPaginatorBaseUrl(profile) + getPublicationsPaginatorPageParam(profile) + "=" + getPublicationsPaginatorPageCount(profile))>
|
||||
<#return getPublicationsPaginatorBaseUrl(profile) + getPublicationsPaginatorPageParam(profile) + "=" + getPublicationsPaginatorPageCount(profile)>
|
||||
</#function>
|
||||
|
||||
<#function getAvailableProjectGroups data>
|
||||
|
|
@ -143,7 +143,7 @@
|
|||
|
||||
<#function getProjectGroupId group>
|
||||
<#return group["./@name"]>
|
||||
<#function>
|
||||
</#function>
|
||||
|
||||
<#function getProjectGroupLink group>
|
||||
<#if (data["ppp:profile/personalPublications/publications/@all"] == "all")>
|
||||
|
|
@ -171,7 +171,7 @@
|
|||
<#else>
|
||||
<#return model["/ppp:profile/personalProjects/projects/projectGroup/nav:paginator/@baseURL"].@@text + "?">
|
||||
</#if>
|
||||
<#function>
|
||||
</#function>
|
||||
|
||||
<#function getProjectsPaginatorPageCount profile>
|
||||
<#return model["/ppp:profile/personalProjects/projects/projectGroup/nav:paginator/@pageCount"].@@text>
|
||||
|
|
@ -206,7 +206,7 @@
|
|||
</#function>
|
||||
|
||||
<#function getProjectsPaginatonFirstPageLink profile>
|
||||
<#return getProjectsPaginatorBaseUrl(profile) + getProjectsPaginatorPageParam(profile) + "=1)>
|
||||
<#return getProjectsPaginatorBaseUrl(profile) + getProjectsPaginatorPageParam(profile) + "=1">
|
||||
</#function>
|
||||
|
||||
<#function getProjectsPaginatorNextPageLink profile>
|
||||
|
|
@ -214,7 +214,7 @@
|
|||
</#function>
|
||||
|
||||
<#function getProjectsPaginatorLastPageLink profile>
|
||||
<#return getProjectsPaginatorBaseUrl(profile) + getProjectsPaginatorPageParam(profile) + "=" + getProjectsPaginatorPageCount(profile))>
|
||||
<#return getProjectsPaginatorBaseUrl(profile) + getProjectsPaginatorPageParam(profile) + "=" + getProjectsPaginatorPageCount(profile)>
|
||||
</#function>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue