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>
|
<#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>
|
<#function getDescription data>
|
||||||
<#if (data["./departmentDesc"]?size > 0)>
|
<#if (data["./departmentDesc"]?size > 0)>
|
||||||
<#return data["./departmentDescription"]>
|
<#return data["./departmentDescription"]>
|
||||||
|
|
@ -15,6 +26,13 @@
|
||||||
</#if>
|
</#if>
|
||||||
</#function>
|
</#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>
|
<#function getShortDescription data>
|
||||||
<#if (data["./departmentShortDescription"]?size > 0)>
|
<#if (data["./departmentShortDescription"]?size > 0)>
|
||||||
<#return data["./departmentShortDescription"]>
|
<#return data["./departmentShortDescription"]>
|
||||||
|
|
@ -27,54 +45,145 @@
|
||||||
</#if>
|
</#if>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Gets the heads of the department.
|
||||||
|
|
||||||
|
@param data The SciDepartment to use.
|
||||||
|
|
||||||
|
@return A sequence of person items.
|
||||||
|
-->
|
||||||
<#function getDepartmentHeads data>
|
<#function getDepartmentHeads data>
|
||||||
<#return data["./heads/head"]>
|
<#return data["./heads/head"]>
|
||||||
</#function>
|
</#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>
|
<#function getDepartmentHeadId head>
|
||||||
<#return data["./masterVersion/id"] + "_" + data["./@name"]>
|
<#return data["./masterVersion/id"] + "_" + data["./@name"]>
|
||||||
</#function>
|
</#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>
|
<#function getDepartmentHeadLink head>
|
||||||
<#return ContentItem.generateContentItemLink(head)>
|
<#return ContentItem.generateContentItemLink(head)>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Gets the vice heads of the department.
|
||||||
|
|
||||||
|
@param data The SciDepartment to use.
|
||||||
|
|
||||||
|
@return A sequence of person items.
|
||||||
|
-->
|
||||||
<#function getDepartmentViceHeads data>
|
<#function getDepartmentViceHeads data>
|
||||||
<#return data["./viceheads/vicehead"]>
|
<#return data["./viceheads/vicehead"]>
|
||||||
</#function>
|
</#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>
|
<#function getDepartmentViceHeadId head>
|
||||||
<#return head["./masterVersion/id"] + "_" + data["./@name"]>
|
<#return head["./masterVersion/id"] + "_" + data["./@name"]>
|
||||||
</#function>
|
</#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>
|
<#function getDepartmentViceHeadLink head>
|
||||||
<#return CMS.generateContentItemLink(head)>
|
<#return CMS.generateContentItemLink(head)>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Gets the secretariats of the department.
|
||||||
|
|
||||||
|
@param data The SciDepartment to use.
|
||||||
|
|
||||||
|
@return A sequence of person items.
|
||||||
|
-->
|
||||||
<#function getSecretariats data>
|
<#function getSecretariats data>
|
||||||
<#return data["./secretariats/secretariat"]>
|
<#return data["./secretariats/secretariat"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Gets the ID of a secretariat.
|
||||||
|
|
||||||
|
@param head The secretariat to use.
|
||||||
|
|
||||||
|
@return The ID of the secretariat.
|
||||||
|
-->
|
||||||
<#function getSecretariatsId sec>
|
<#function getSecretariatsId sec>
|
||||||
<#return sec["./masterVersion/id"] + "_" + data["./@name"]>
|
<#return sec["./masterVersion/id"] + "_" + data["./@name"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Gets the link to a secretariat.
|
||||||
|
|
||||||
|
@param head The secretariat to use.
|
||||||
|
|
||||||
|
@return A link to the secretariat.
|
||||||
|
-->
|
||||||
<#function getSecretariatsLink sec>
|
<#function getSecretariatsLink sec>
|
||||||
<#return ContentItem.generateContentItemLink(sec)>
|
<#return ContentItem.generateContentItemLink(sec)>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Gets the members of the department.
|
||||||
|
|
||||||
|
@param data The SciDepartment to use.
|
||||||
|
|
||||||
|
@return A sequence of persons.
|
||||||
|
-->
|
||||||
<#function getMembers data>
|
<#function getMembers data>
|
||||||
<#return data["./member"]>
|
<#return data["./member"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Gets the projects of the department.
|
||||||
|
|
||||||
|
@param data The SciDepartment to use.
|
||||||
|
|
||||||
|
@return A sequence of SciProjects.
|
||||||
|
-->
|
||||||
<#function getProjects data>
|
<#function getProjects data>
|
||||||
<#return data["./project"]>
|
<#return data["./project"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Gets the ID of a project.
|
||||||
|
|
||||||
|
@param project The project to use.
|
||||||
|
|
||||||
|
@return The ID of the project.
|
||||||
|
-->
|
||||||
<#function getProjectId project>
|
<#function getProjectId project>
|
||||||
<#return project["./masterVersion/id"] + "_" + data["./@name"]>
|
<#return project["./masterVersion/id"] + "_" + data["./@name"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#--doc
|
||||||
|
Gets the link to a project.
|
||||||
|
|
||||||
|
@param project The project to use.
|
||||||
|
|
||||||
|
@return A link to the project.
|
||||||
|
-->
|
||||||
<#function getProject project>
|
<#function getProject project>
|
||||||
<#return ContentItem.generateContentItemLink(project)>
|
<#return ContentItem.generateContentItemLink(project)>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue