1<#assign portlet_display = portletDisplay>
2<#assign portlet_title = htmlUtil.escape(portlet_display.getTitle())>
3<#assign portlet_setup = portlet_display.getPortletSetup()>
4<#assign portlet_show_title = portlet_setup.getValue("portletSetupUseCustomTitle","Boolean")>
5
6<#assign curAssetId = request.getParameter("curAsset")! />
7<#if !curAssetId?has_content>
8 <#assign curAssetId = "0" />
9</#if>
10
11
12<#assign layoutService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") />
13
14<#if portletPreferences.portletSetupLinkToLayoutUuid?has_content>
15 <#assign linkAppUrls = portletPreferences.portletSetupLinkToLayoutUuid[0] />
16 <#assign targetLayout = layoutService.fetchLayoutByUuidAndGroupId(linkAppUrls, themeDisplay.getScopeGroupId(), false) />
17 <#assign targetAssetPublisher = targetLayout.getTypeSettingsProperties().getProperty("default-asset-publisher-portlet-id") />
18 <#assign targetInstance = targetAssetPublisher?keep_after_last("_") />
19</#if>
20
21<div class="organization-information">
22 <#if portlet_show_title == 'true'>
23 <h5 class="portlet-title-text meta-title">${portlet_title}</h5>
24 </#if>
25
26 <#if entries?has_content>
27 <#list entries as entry>
28 <#if entry.assetRenderer??>
29 <#assign assetRenderer = entry.getAssetRenderer() />
30 <#assign contactInfoOrganization = assetRenderer.getEntry() />
31
32 <#if targetInstance?has_content>
33 <#assign viewUrl = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry)?keep_before("?") />
34 </#if>
35
36 <#if assetLinkBehavior != "showFullContent">
37 <#assign viewUrl = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry)?keep_before("?") />
38 </#if>
39
40 <div class="organization-wrapper">
41 <div class="organization-title section">
42 <div class="organization-name">
43
44 <#assign title = contactInfoOrganization.getName(locale)>
45
46 <#switch contactInfoOrganization.getType()>
47 <#case "UM">
48 <#if contactInfoOrganization.getReportName(locale, false)?has_content>
49 <#assign title = contactInfoOrganization.getReportName(locale, false)>
50 </#if>
51 <#break>
52 <#case "UE">
53 <#if contactInfoOrganization.getReportName(locale, false)?has_content>
54 <#assign title = contactInfoOrganization.getReportName(locale, false)>
55 </#if>
56 <#break>
57 <#case "ULKOMAINEN_DIPLOMAATTIKUNTA">
58 <#if contactInfoOrganization.getFullOfficialName(locale, false)?has_content>
59 <#assign title = contactInfoOrganization.getFullOfficialName(locale, false)>
60
61 <#elseif contactInfoOrganization.getReportName(locale, false)?has_content>
62 <#assign title = contactInfoOrganization.getReportName(locale, false)>
63
64 <#elseif contactInfoOrganization.getName(locale, false)?has_content>
65 <#assign title = contactInfoOrganization.getName(locale, false)>
66
67 <#elseif contactInfoOrganization.getName(contactInfoOrganization.getDefaultLanguage(), false)?has_content>
68 <#assign title = contactInfoOrganization.getName(contactInfoOrganization.getDefaultLanguage(), false)>
69 </#if>
70 <#break>
71 </#switch>
72
73 <h3>
74 <a href="${viewUrl}"><@liferay.language key="um-common.customer-service" />: ${title}</a>
75 </h3>
76
77 </div>
78 </div>
79
80 <div class="organization-customer-service section">
81
82 <p class="organization-customer-service">
83 <#if contactInfoOrganization.getCustomerServiceInfo(locale, false)?has_content>
84 ${ contactInfoOrganization.getCustomerServiceInfo(locale, false) }
85 </#if>
86 </p>
87
88 </div>
89
90 </div>
91 </#if>
92 </#list>
93
94 <div class="clear"></div>
95 </#if>
96</div>