Documentation for ccm-sci-member-navigation.ftl
git-svn-id: https://svn.libreccm.org/ccm/trunk@6304 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
4fecc3fbb5
commit
f1a93406e2
|
|
@ -5,54 +5,149 @@
|
||||||
"ui": "http://www.arsdigita.com/ui/1.0"}
|
"ui": "http://www.arsdigita.com/ui/1.0"}
|
||||||
>
|
>
|
||||||
|
|
||||||
|
<#--filedoc
|
||||||
|
Functions for processing member lists.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Retrieve a member list from the model
|
||||||
|
|
||||||
|
@param listId The ID of the list to retrieve.
|
||||||
|
|
||||||
|
@return The model of the member list.
|
||||||
|
-->
|
||||||
<#function getSciMemberList listId="itemList">
|
<#function getSciMemberList listId="itemList">
|
||||||
<#return model["/bebop:page/nav:sci-member-list[@id='${listId}']"]>
|
<#return model["/bebop:page/nav:sci-member-list[@id='${listId}']"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Get the members from a list
|
||||||
|
|
||||||
|
@param list The list model as returned by `getSciMemberList`.
|
||||||
|
|
||||||
|
@return A sequence with the member models.
|
||||||
|
-->
|
||||||
<#function getMembers list>
|
<#function getMembers list>
|
||||||
<#return list["./member"]>
|
<#return list["./member"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Get the current value of the surname filter.
|
||||||
|
|
||||||
|
@param list The list model as returned by `getSciMemberList`.
|
||||||
|
|
||||||
|
@return The value of the surname filter list.
|
||||||
|
-->
|
||||||
<#function getSurnameFilterValue list>
|
<#function getSurnameFilterValue list>
|
||||||
<#return list["./filters/surname"]>
|
<#return list["./filters/surname"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Get the number of members in the list.
|
||||||
|
|
||||||
|
@param list The list model as returned by `getSciMemberList`.
|
||||||
|
|
||||||
|
@return The number of members in the list.
|
||||||
|
-->
|
||||||
<#function getCount list>
|
<#function getCount list>
|
||||||
<#return list["./paginator/@count"]>
|
<#return list["./paginator/@count"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Get the current page of the list.
|
||||||
|
|
||||||
|
@param list The list model as returned by `getSciMemberList`.
|
||||||
|
|
||||||
|
@return The current page of the list.
|
||||||
|
-->
|
||||||
<#function getCurrentPage list>
|
<#function getCurrentPage list>
|
||||||
<#return list["./paginator/@currentPage"]>
|
<#return list["./paginator/@currentPage"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Gets the maximum number of items per page..
|
||||||
|
|
||||||
|
@param list The list model as returned by `getSciMemberList`.
|
||||||
|
|
||||||
|
@return The maximum member of items per page.
|
||||||
|
-->
|
||||||
<#function getLimit list>
|
<#function getLimit list>
|
||||||
<#return list["./paginator/@limit"]>
|
<#return list["./paginator/@limit"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Gets the number of pages of the list.
|
||||||
|
|
||||||
|
@param list The list model as returned by `getSciMemberList`.
|
||||||
|
|
||||||
|
@return The number of pages of the list.
|
||||||
|
-->
|
||||||
<#function getMaxPages list>
|
<#function getMaxPages list>
|
||||||
<#return list["./paginator/@maxPages"]>
|
<#return list["./paginator/@maxPages"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Gets the link to the next page of the list.
|
||||||
|
|
||||||
|
@param list The list model as returned by `getSciMemberList`.
|
||||||
|
|
||||||
|
@return The link to the next page of the list.
|
||||||
|
-->
|
||||||
<#function getNextPageLink list>
|
<#function getNextPageLink list>
|
||||||
<#return list["./paginator/@nextPageLink"]>
|
<#return list["./paginator/@nextPageLink"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Gets the link to the previous page of the list.
|
||||||
|
|
||||||
|
@param list The list model as returned by `getSciMemberList`.
|
||||||
|
|
||||||
|
@return The link to the previous page of the list.
|
||||||
|
-->
|
||||||
<#function getPrevPageLink list>
|
<#function getPrevPageLink list>
|
||||||
<#return list["./paginator/@prevPageLink"]>
|
<#return list["./paginator/@prevPageLink"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Gets the index to the first visible item.
|
||||||
|
|
||||||
|
@param list The list model as returned by `getSciMemberList`.
|
||||||
|
|
||||||
|
@return The index of the first visible item.
|
||||||
|
-->
|
||||||
<#function getOffset list>
|
<#function getOffset list>
|
||||||
<#return list["./paginator/@offset"]>
|
<#return list["./paginator/@offset"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Gets the ID of the member.
|
||||||
|
|
||||||
|
@param item The model of the member item to use (as returned by `getMembers`)
|
||||||
|
|
||||||
|
@return The ID of the provided member item.
|
||||||
|
-->
|
||||||
<#function getMemberItemId item>
|
<#function getMemberItemId item>
|
||||||
<#return item["./item-id"]>
|
<#return item["./item-id"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Gets the name of the member.
|
||||||
|
|
||||||
|
@param item The model of the member item to use (as returned by `getMembers`)
|
||||||
|
|
||||||
|
@return The name of the provided member item.
|
||||||
|
-->
|
||||||
<#function getMemberItemName item>
|
<#function getMemberItemName item>
|
||||||
<#return item["./name"]>
|
<#return item["./name"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Gets the title of the member.
|
||||||
|
|
||||||
|
@param item The model of the member item to use (as returned by `getMembers`)
|
||||||
|
|
||||||
|
@return The title of the provided member item.
|
||||||
|
-->
|
||||||
<#function getMemberItemTitle item>
|
<#function getMemberItemTitle item>
|
||||||
<#return item["./title"]>
|
<#return item["./title"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
@ -61,22 +156,59 @@
|
||||||
<#return item["./surname"]>
|
<#return item["./surname"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Gets the given name of the member.
|
||||||
|
|
||||||
|
@param item The model of the member item to use (as returned by `getMembers`)
|
||||||
|
|
||||||
|
@return The given name of the provided member item.
|
||||||
|
-->
|
||||||
<#function getMemberItemGivenName item>
|
<#function getMemberItemGivenName item>
|
||||||
<#return item["./givenname"]>
|
<#return item["./givenname"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Gets the name prefix of the member.
|
||||||
|
|
||||||
|
@param item The model of the member item to use (as returned by `getMembers`)
|
||||||
|
|
||||||
|
@return The name prefix of the provided member item.
|
||||||
|
-->
|
||||||
<#function getMemberItemTitlePre item>
|
<#function getMemberItemTitlePre item>
|
||||||
<#return item["./title-pre"]>
|
<#return item["./title-pre"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Gets the name suffix of the member.
|
||||||
|
|
||||||
|
@param item The model of the member item to use (as returned by `getMembers`)
|
||||||
|
|
||||||
|
@return The name suffix of the provided member item.
|
||||||
|
-->
|
||||||
<#function getMemberItemTitlePost item>
|
<#function getMemberItemTitlePost item>
|
||||||
<#return item["./title-post"]>
|
<#return item["./title-post"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Gets the contact entries of the member.
|
||||||
|
|
||||||
|
@param item The model of the member item to use (as returned by `getMembers`)
|
||||||
|
|
||||||
|
@return The contact entries of the provided member item.
|
||||||
|
-->
|
||||||
<#function getMemberItemContactEntries item>
|
<#function getMemberItemContactEntries item>
|
||||||
<#return item["./contact-entries"]>
|
<#return item["./contact-entries"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Get the contact entry with the specified key.
|
||||||
|
|
||||||
|
@param item The model of the member item to use (as returned by `getMembers`).
|
||||||
|
|
||||||
|
@param key The key of the contact entry.
|
||||||
|
|
||||||
|
@return The contact entry.
|
||||||
|
-->
|
||||||
<#function getMemberItemContactEntry item key>
|
<#function getMemberItemContactEntry item key>
|
||||||
<#return item["./contact-entries/contact-entry[./@key='${key}']"]>
|
<#return item["./contact-entries/contact-entry[./@key='${key}']"]>
|
||||||
</#function>
|
</#function>
|
||||||
Loading…
Reference in New Issue