Media Center

Une erreur s'est produite lors du traitement du gabarit.
The following has evaluated to null or missing:
==> xPathSelectorIH.selectSingleNode(rootElement)  [in template "37401#37443#81748" at line 69, column 32]

----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: image_header = xPathSelectorIH.select...  [in template "37401#37443#81748" at line 69, column 17]
----
1<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext() /> 
2<#assign themeDisplay = serviceContext.getThemeDisplay() /> 
3<#assign layout= themeDisplay.getLayout() /> 
4<#assign pageName= layout.getName("en_US") /> 
5  <#assign folderLocalService =serviceLocator.findService("com.liferay.document.library.kernel.service.DLFolderLocalService") /> 
6   
7<#if pageName?lower_case=="flyers"> 
8 
9<#assign folderId = folderLocalService.getFolder(groupId,0,"Library").getFolderId()/> 
10<#assign folderId1 = folderLocalService.getFolder(groupId,folderId,"KF Publications").getFolderId()/> 
11<#assign innerfolderId = folderLocalService.getFolder(groupId,folderId1,"Flayers pdf").getFolderId()/> 
12 
13<#elseif pageName?lower_case=="brochures"> 
14<#assign folderId = folderLocalService.getFolder(groupId,0,"Library").getFolderId()/> 
15<#assign folderId1 = folderLocalService.getFolder(groupId,folderId,"KF Publications").getFolderId()/> 
16<#assign innerfolderId = folderLocalService.getFolder(groupId,folderId1,"Brochures Pdf").getFolderId()/> 
17 
18<#elseif pageName?lower_case=="annual reports"> 
19<#assign folderId = folderLocalService.getFolder(groupId,0,"About Us").getFolderId()/> 
20 
21<#assign innerfolderId = folderLocalService.getFolder(groupId,folderId,"Annual Reports").getFolderId()/> 
22 
23<#else> 
24<#assign innerfolderId=0 /> 
25</#if> 
26 
27<style> 
28.card-deck .card { 
29    flex: 1 0 20% !important; 
30    margin: 10px 15px 10px 15px; 
31
32    .center-cropped { 
33  width: 253px; 
34  height: 200px; 
35  background-position: center center; 
36  background-repeat: no-repeat; 
37  border-radius: 0.75rem 0.75rem 0 0; 
38
39     
40</style> 
41<!--Magazines Cards--> 
42<section class="p-3 p-md-5" data-aos="zoom-in-down" style="padding-top:0px !important;"> 
43     
44  <div class="container "> 
45      <div class="row "> 
46      <div class="col-12 pt-3"> 
47        <h2> ${layout.getName(locale)}</h2> 
48        <#if locale=="ar_SA"> 
49        <p>يصدر الصندوق الكويتي تقارير سنوية تعكس نشاطه الإنمائي واستمراره وتعاونه مع الدول العربية والدول النامية الأخرى في كل سنة مالية من خلال تقديم القروض الميسرة والمنح والمعونات الفنية والدعم في موارد المؤسسات الإنمائية مع توضيح البيانات المالية الشاملة للصندوق.</p> 
50        <#elseif locale=="en_US"> 
51        <p>Each fiscal year, Kuwait Fund issues annual reports reflecting its development activity, continuity, and synergy with benefiting developing nations. Annual reports also present the Fund’s comprehensive financial statements of the year.</p> 
52        </#if> 
53    </div> 
54    </div> 
55		<div class="card-deck"> 
56 
57	    <#if entries?has_content> 
58	   
59	<#list entries as curEntry> 
60	<#assign entry = curEntry 
61		assetRenderer = curEntry.getAssetRenderer() 
62		entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) 
63	 
64		journalArticle = assetRenderer.getAssetObject()   
65		className = assetRenderer.getClassName() 
66		document = saxReaderUtil.read(journalArticle.getContent()) 
67		rootElement = document.getRootElement() 
68		xPathSelectorIH = saxReaderUtil.createXPath("dynamic-element[@name='image_link']/dynamic-content[@language-id='${locale}']") 
69		image_header = xPathSelectorIH.selectSingleNode(rootElement).getStringValue() 
70		/> 
71		 
72	<#assign newUrl= ''/> 
73<#assign i=0 /> 
74		<#list image_header?split("/") as sValue> 
75		 
76		<#if i==2> 
77		 	<#assign newUrl= newUrl+'/'+groupId /> 
78		<#elseif i==3> 
79		 	<#assign newUrl= newUrl+'/'+innerfolderId /> 
80		<#else> 
81			<#assign newUrl= newUrl+'/'+sValue /> 
82		</#if> 
83	<#assign i=i+1 /> 
84 
85</#list> 
86<#assign index= newUrl?last_index_of("/") /> 
87<#assign finalUrl=newUrl?substring(0,index) /> 
88 
89<#assign urlLength=finalUrl?length /> 
90<#if (urlLength>1) > 
91 <#assign finalUrl1=finalUrl?substring(1) /> 
92</#if> 
93<#assign article= assetRenderer.getArticle()/> 
94<#assign artId=article.getArticleId()/> 
95 
96 
97<#if pageName?lower_case=="annual reports"> 
98<#assign finalUrl1= image_header?replace("13831",innerfolderId)?replace("11433",groupId)?replace("54823",innerfolderId)?replace("117101",innerfolderId)?replace("163879", innerfolderId) /> 
99<#assign finalUrl1 = finalUrl1?substring(0,finalUrl1?last_index_of("/")+1)/> 
100<#assign finalUrl1 = finalUrl1?replace("+","%20")/> 
101<#else> 
102<#assign finalUrl1 = finalUrl1?replace("+","%20")/> 
103</#if> 
104<#assign finalUrl1 = finalUrl1?replace("+","%20")/> 
105 
106	     
107		    <div class="card"> 
108    <#if assetRenderer.getThumbnailPath(renderRequest)??> 
109 
110    <a id="docLink${curEntry?index}" href="${finalUrl1}" target="_blank"> 
111      <img class="card-img-top" src="${assetRenderer.getThumbnailPath(renderRequest)}" alt="${entryTitle}"> 
112    </a> 
113<#else> 
114 
115  <a id="docLink${curEntry?index}" href="${finalUrl1}" target="_blank"> 
116  <div class="center-cropped"  
117     style="background-image: url('${finalUrl1}?documentThumbnail=1');"> 
118</div> 
119  </a> 
120  </#if> 
121 
122<!--<a id="docLink${curEntry?index}" href="magazine-details?doc=${finalUrl1}" target="_blank">--> 
123<a id="docLink${curEntry?index}" href="${finalUrl1}" target="_blank"> 
124        <div class="card-body"> 
125            <h4>${entryTitle}</h4> 
126            <!--<p>${journalArticle.getModifiedDate()?date}</p>--> 
127        </div> 
128</a>         
129      </div> 
130   
131      	</#list> 
132</#if> 
133	 
134	</div> 
135</section> 
136 
137<!--End Magazines Cards-->