diff --git a/ccm-sci-types-institute/web/themes/freemarker/ccm-sci-types-institute.ftl b/ccm-sci-types-institute/web/themes/freemarker/ccm-sci-types-institute.ftl index 585251729..fa9dfba19 100644 --- a/ccm-sci-types-institute/web/themes/freemarker/ccm-sci-types-institute.ftl +++ b/ccm-sci-types-institute/web/themes/freemarker/ccm-sci-types-institute.ftl @@ -7,6 +7,17 @@ <#import ../ccm-cms/content-item.ftl as ContentItem> +<#--filedoc + Functions for processing SciInstitute items. +--> + +<#--doc + Gets the description of the institute. + + @param data The SciInstitute to use. + + @return The description of the institute. +--> <#function getDescription data> <#if (data["./instituteDesc"]?size > 0)> <#return data["./instituteDesc"]> @@ -15,6 +26,13 @@ +<#--doc + Gets the short description of the institute. + + @param data The SciInstitute to use. + + @return The short description of the institute. +--> <#function getShortDescription data> <#if (data["./instituteShortDescription"])> <#return data["./instituteShortDescription"])> @@ -23,18 +41,46 @@ +<#--doc + Gets the departments of an institute. + + @param data The SciInstitute to use. + + @return A sequence of SciDepartments. +--> <#function getDepartments data> <#return data["./departments"]> +<#--doc + Gets the OID of a department. + + @param department The SciDepartment to use. + + @return The OID of the department. +--> <#function getDepartmentOid department> <#return department["./@oid"]> +<#--doc + Gets the title of a department. + + @param department The SciDepartment to use. + + @return The title of the department. +--> <#function getDepartmentTitle department> <#return department["./title"]> +<#--doc + Gets the link the to department. + + @param department The SciDepartment to use. + + @return The link to the department. +--> <#function getDepartmentLink department> <#return ContentItem.generateContentItemLink(department)>