Documentation for ccm-sci-types-department.ftl
git-svn-id: https://svn.libreccm.org/ccm/trunk@6309 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
659ceaa9a4
commit
5edd620506
|
|
@ -7,6 +7,17 @@
|
|||
|
||||
<#import "/ccm-cms/content-item.ftl" as ContentItem>
|
||||
|
||||
<#--filedoc
|
||||
Functions for processing SciDepartment items.
|
||||
-->
|
||||
|
||||
<#--doc
|
||||
Gets the description of a SciDepartment.
|
||||
|
||||
@param data The SciDepartment to use.
|
||||
|
||||
@return The description of the department.
|
||||
-->
|
||||
<#function getDescription data>
|
||||
<#if (data["./departmentDesc"]?size > 0)>
|
||||
<#return data["./departmentDescription"]>
|
||||
|
|
@ -15,6 +26,13 @@
|
|||
</#if>
|
||||
</#function>
|
||||
|
||||
<#--doc
|
||||
Gets the short description of a SciDepartment.
|
||||
|
||||
@param data The SciDepartment to use.
|
||||
|
||||
@return The short description of the department.
|
||||
-->
|
||||
<#function getShortDescription data>
|
||||
<#if (data["./departmentShortDescription"]?size > 0)>
|
||||
<#return data["./departmentShortDescription"]>
|
||||
|
|
@ -27,54 +45,145 @@
|
|||
</#if>
|
||||
</#function>
|
||||
|
||||
<#--doc
|
||||
Gets the heads of the department.
|
||||
|
||||
@param data The SciDepartment to use.
|
||||
|
||||
@return A sequence of person items.
|
||||
-->
|
||||
<#function getDepartmentHeads data>
|
||||
<#return data["./heads/head"]>
|
||||
</#function>
|
||||
|
||||
<#--doc
|
||||
Gets the ID of a department head.
|
||||
|
||||
@param head The department head to use.
|
||||
|
||||
@return The ID of the department head.
|
||||
-->
|
||||
<#function getDepartmentHeadId head>
|
||||
<#return data["./masterVersion/id"] + "_" + data["./@name"]>
|
||||
</#function>
|
||||
|
||||
<#--doc
|
||||
Gets the link to a department head.
|
||||
|
||||
@param head The department head to use.
|
||||
|
||||
@return A link to the department head.
|
||||
-->
|
||||
<#function getDepartmentHeadLink head>
|
||||
<#return ContentItem.generateContentItemLink(head)>
|
||||
</#function>
|
||||
|
||||
<#--doc
|
||||
Gets the vice heads of the department.
|
||||
|
||||
@param data The SciDepartment to use.
|
||||
|
||||
@return A sequence of person items.
|
||||
-->
|
||||
<#function getDepartmentViceHeads data>
|
||||
<#return data["./viceheads/vicehead"]>
|
||||
</#function>
|
||||
|
||||
<#--doc
|
||||
Gets the ID of a department vice head.
|
||||
|
||||
@param head The department vice head to use.
|
||||
|
||||
@return The ID of the department vice head.
|
||||
-->
|
||||
<#function getDepartmentViceHeadId head>
|
||||
<#return head["./masterVersion/id"] + "_" + data["./@name"]>
|
||||
</#function>
|
||||
|
||||
<#--doc
|
||||
Gets the link to a department vice head.
|
||||
|
||||
@param head The department vice head to use.
|
||||
|
||||
@return A link to the department vice head.
|
||||
-->
|
||||
<#function getDepartmentViceHeadLink head>
|
||||
<#return CMS.generateContentItemLink(head)>
|
||||
</#function>
|
||||
|
||||
<#--doc
|
||||
Gets the secretariats of the department.
|
||||
|
||||
@param data The SciDepartment to use.
|
||||
|
||||
@return A sequence of person items.
|
||||
-->
|
||||
<#function getSecretariats data>
|
||||
<#return data["./secretariats/secretariat"]>
|
||||
</#function>
|
||||
|
||||
<#--doc
|
||||
Gets the ID of a secretariat.
|
||||
|
||||
@param head The secretariat to use.
|
||||
|
||||
@return The ID of the secretariat.
|
||||
-->
|
||||
<#function getSecretariatsId sec>
|
||||
<#return sec["./masterVersion/id"] + "_" + data["./@name"]>
|
||||
</#function>
|
||||
|
||||
<#--doc
|
||||
Gets the link to a secretariat.
|
||||
|
||||
@param head The secretariat to use.
|
||||
|
||||
@return A link to the secretariat.
|
||||
-->
|
||||
<#function getSecretariatsLink sec>
|
||||
<#return ContentItem.generateContentItemLink(sec)>
|
||||
</#function>
|
||||
|
||||
<#--doc
|
||||
Gets the members of the department.
|
||||
|
||||
@param data The SciDepartment to use.
|
||||
|
||||
@return A sequence of persons.
|
||||
-->
|
||||
<#function getMembers data>
|
||||
<#return data["./member"]>
|
||||
</#function>
|
||||
|
||||
<#--doc
|
||||
Gets the projects of the department.
|
||||
|
||||
@param data The SciDepartment to use.
|
||||
|
||||
@return A sequence of SciProjects.
|
||||
-->
|
||||
<#function getProjects data>
|
||||
<#return data["./project"]>
|
||||
</#function>
|
||||
|
||||
<#--doc
|
||||
Gets the ID of a project.
|
||||
|
||||
@param project The project to use.
|
||||
|
||||
@return The ID of the project.
|
||||
-->
|
||||
<#function getProjectId project>
|
||||
<#return project["./masterVersion/id"] + "_" + data["./@name"]>
|
||||
</#function>
|
||||
|
||||
<#--doc
|
||||
Gets the link to a project.
|
||||
|
||||
@param project The project to use.
|
||||
|
||||
@return A link to the project.
|
||||
-->
|
||||
<#function getProject project>
|
||||
<#return ContentItem.generateContentItemLink(project)>
|
||||
</#function>
|
||||
|
|
|
|||
Loading…
Reference in New Issue