إحصاءاتنا
خدماتنا
تمكن هذه الخدمة المتعاملين من طلب بيانات ومؤشرات إحصائية دقيقة وموثوقة في المجالات التالية:
- الاقتصاد
- الصناعة والأعمال
- السكان والديموغرافيا
- الإحصاءات الاجتماعية
- القوى العاملة
- الزراعة والبيئة
- أي مجال آخر ضمن نطاق عمل المركز
تتيح هذه الخدمة للمتعاملين طلب الحصول على دورات تدريبية وتخصصية في مجالات الإحصاء والتحليلات والبيانات، والتي تساعد على بناء القدرات والكفاءات الإحصائية.
تتيح هذه الخدمة للمتعاملين طلب تنفيذ مسح إحصائي ويشمل ذلك تنفيذ العمل الميداني وما يسبقه من مراحل إعداد وتحضير المنهجيات والعينات والاستمارات اللازمة لذلك.
تتيح هذه الخدمة للمتعاملين من الجهات الحكومية والشركات شبه الحكومية والخاصة طلب خدمات استشارية إحصائية لاستطلاعات الرأي والمسوح والدراسات الإحصائية في المجالات الاقتصادية والبيئية والزراعية والاجتماعية والديموغرافية ويشمل ذلك إعداد ومراجعة المنهجيات والتقارير.
تتيح هذه الخدمة للمتعاملين طلب تنفيذ استطلاع رأي إحصائي ويشمل ذلك تنفيذ العمل الميداني وما يسبقه من مراحل إعداد وتحضير المنهجيات والعينات والاستمارات اللازمة لذلك.
يمكن للمتعاملين الحصول على الدعم من قبل فريق إسعاد المتعاملين في استفساراتهم عن جميع المعلومات الخاصة بمركز الإحصاء – أبوظبي ونطاق أعماله من مشاريع ومنهجيات و توفير البيانات المنشورة / القابلة للنشر في المجالات التالية:
- الاقتصاد
- الصناعة والأعمال
- السكان والديموغرافيا
- الإحصاءات الاجتماعية
- القوى العاملة
- الزراعة والبيئة
المسح البيئي
المسح البيئي
مسح البحث و التطوير
مسح البحث و التطوير
مسح التجارة الخارجية في الخدمات
مسح التجارة الخارجية في الخدمات
استطلاع رأي مؤشر الشفافية في سياسات الاستثمار الأجنبي المباشر
استطلاع رأي مؤشر الشفافية في سياسات الاستثمار الأجنبي المباشر
مسح الطاقة
مسح الطاقة
المسح الاقتصادي السنوي
المسح الاقتصادي السنوي
مسح الاستثمار الأجنبي الربعي
مسح الاستثمار الأجنبي الربعي
المسح الاقتصادي الربعي
المسح الاقتصادي الربعي
مسح الاستثمار الأجنبي
مسح الاستثمار الأجنبي
مسح تحديث الإطار الاقتصادي
مسح تحديث الإطار الاقتصادي
استطلاع الرأي لمؤشر الثقة في مناخ الأعمال الربعي
استطلاع الرأي لمؤشر الثقة في مناخ الأعمال الربعي
استطلاع مؤشر الأداء الصناعي
استطلاع مؤشر الأداء الصناعي
The following has evaluated to null or missing:
==> publicationNote [in template "20098#20124#2901816" at line 66, column 39]
----
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: #assign publicationNotes = publicatio... [in template "20098#20124#2901816" at line 66, column 13]
----
1<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
2
3 <#assign catLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")
4 JournalArticleService=serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")
5 resourcePrimKey=JournalArticleService.getArticleResourcePrimKey(groupId, .vars['reserved-article-id'].data)
6 articleCatNames=catLocalService.getCategories("com.liferay.journal.model.JournalArticle", resourcePrimKey) />
7 <#assign publicationArticle = JournalArticleLocalService.getArticle(groupId, .vars["reserved-article-id"].data) />
8 <#assign IsFeatured =
9 publicationArticle.getExpandoBridge().getAttribute("IsFeatured")!false />
10 <#if IsFeatured>
11 <#list articleCatNames as category>
12 <#if category.parentCategoryId==0>
13 <#if category.getVocabularyId()==476702>
14 <#assign catId = category.categoryId />
15 <#if catId == 201>
16 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/agriculture-category-poster" />
17 <#assign badgeColor = "a2ac72" />
18 <#elseif catId == 202>
19 <#list articleCatNames as subCategory>
20 <#if subCategory.parentCategoryId == 202>
21 <#assign subCatId = subCategory.categoryId />
22 <#if subCatId == 217>
23 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
24 <#elseif subCatId == 219>
25 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/foreign-investment-pub-poster" />
26 <#elseif subCatId == 225>
27 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/GDP-poster" />
28 <#else>
29 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/economic-category-poster" />
30 </#if>
31 <#break>
32 </#if>
33 </#list>
34
35 <#assign badgeColor = "a69b87" />
36 <#elseif catId == 217>
37 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
38 <#assign badgeColor = "a69b87" />
39 <#elseif catId == 204>
40 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/hotel-establishments-pub-poster" />
41 <#assign badgeColor = "116169" />
42 <#elseif catId == 205>
43 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/labour-category-poster" />
44 <#assign badgeColor = "aacdcb" />
45 <#elseif catId == 206>
46 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/population-category-poster" />
47 <#assign badgeColor = "475865" />
48 <#elseif catId == 207>
49 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/social-category-poster" />
50 <#assign badgeColor = "6e92a8" />
51 <#else>
52 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
53 <#assign badgeColor = "116169" />
54 </#if>
55 </#if>
56 </#if>
57
58 </#list>
59
60<div class="item">
61 <div class="dl-card latest-publications-card dl-rounded d-flex flex-column align-items-start justify-content-between text-white p-3"
62 style="background: linear-gradient(transparent,#000000d4 ),url('${ImgSrc}') no-repeat center/cover;">
63 <div class="d-flex justify-content-between align-items-start w-100 row">
64 <#assign publicationNotes=publicationNote.getData()>
65 <#if publicationNotes?has_content>
66
67 <div class="button-wrapper col-2 d-inline-block p-1"><button
68 class="hover-button btn dl-share-btn mb-0" style="margin:13px"><img src="/documents/d/guest/share"
69 height="20"></button>
70 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
71 <li><a target="_blank"
72 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
73 class="icon-facebook"></i></a></li>
74 <li><a target="_blank"
75 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
76 class="icon-twitter"></i></a></li>
77 </ul>
78 </div>
79 <#assign PublicationNoteEn =
80 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteEn")!"" />
81
82<#assign PublicationNoteAr =
83 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteAr")!"" />
84
85<#assign languageId = themeDisplay.getLanguageId() />
86
87<#-- Show box ONLY if at least one note has content -->
88<#if (PublicationNoteEn?has_content) || (PublicationNoteAr?has_content)>
89
90 <div class="info-box col-10">
91 <img
92 src="https://scad.gov.ae/documents/d/guest/information-circle-svgrepo-com"
93 height="20"
94 style="margin-right: 10px;"
95 />
96
97 <span class="info-message" style="color: #002D62; font-size: 12px;">
98
99 <#if languageId?starts_with("ar") && PublicationNoteAr?has_content>
100 ${PublicationNoteAr}
101 <#elseif PublicationNoteEn?has_content>
102 ${PublicationNoteEn}
103 <#else>
104 ${PublicationNoteAr}
105 </#if>
106
107 </span>
108 </div>
109
110</#if>
111
112 <#else>
113 <div class="button-wrapper d-inline-block p-1"><button
114 class="hover-button btn dl-share-btn mb-0"><img src="/documents/d/guest/share"
115 height="20"></button>
116 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
117 <li><a target="_blank"
118 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
119 class="icon-facebook"></i></a></li>
120 <li><a target="_blank"
121 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
122 class="icon-twitter"></i></a></li>
123 </ul>
124 </div>
125 </#if>
126
127 </div>
128 <div class="w-100">
129 <h5>
130 <#if file_upload.getSiblings()?has_content>
131 <#list file_upload.getSiblings() as cur_file_upload>
132 <a class="text-white" href="${friendlyURL}">${.vars["reserved-article-title"].data}
133 </a>
134 </#list>
135 </#if>
136 </h5> <#list articleCatNames as category>
137 <#if category.parentCategoryId==0>
138 <#if category.getVocabularyId()==476702>
139 <span class="theme-category p-2 badge" style="background: #${badgeColor}">${category.name}</span></#if></#if></#list>
140 <ul class="d-flex justify-content-between align-items-end attachments-list px-0 mb-0 mt-3 w-100 list-unstyled">
141 <li class="home_date_wrapper">
142 <div class="date_container">
143 <#assign releaseDate=.vars["reserved-article-display-date"].data?date("EEE, dd MMM yyyy HH:mm:ssZ") />
144 <img height="20" src="https://scad.gov.ae/documents/d/guest/release_icon" class="pe-2 mb-1"
145 style="filter: brightness(14.5); padding-inline-end: 6px;">
146 <span class="labels"> Release Date :</span>${releaseDate?string("yyyy-MM-dd")}
147 </div>
148
149
150 <div class="date_container">
151
152<#assign revisionDate = publicationArticle.getExpandoBridge().getAttribute("revisionDate")/>
153 <#assign formattedRevDate = revisionDate?string("yyyy-MM-dd")>
154
155 <#if formattedRevDate != "1888-01-01">
156
157<img height="20" src="https://scad.gov.ae/documents/d/guest/revision_icon" class="pe-2 mb-1" style="filter: brightness(14.5); padding-inline-end: 6px;">
158 <span class="labels">Revision Date:</span>
159 ${revisionDate?string("yyyy-MM-dd")}
160
161
162 </#if>
163 </li>
164
165 <#if file_upload.getSiblings()?has_content>
166 <#list file_upload.getSiblings() as cur_file_upload>
167 <a href="${cur_file_upload.getData()}" class="dl-attachment-circle mr-2">
168 <li class="list-item list-inline-item d-flex"><img height="20"
169 src="https://scad.gov.ae/o/scad-theme/images/publications/excel-svgrepo-com.svg"
170 class="d-flex mx-auto align-self-center"></li></a>
171 </#list>
172</#if>
173
174 </ul>
175 </div>
176 </div>
177</div>
178</#if>
The following has evaluated to null or missing:
==> publicationNote [in template "20098#20124#2901816" at line 66, column 39]
----
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: #assign publicationNotes = publicatio... [in template "20098#20124#2901816" at line 66, column 13]
----
1<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
2
3 <#assign catLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")
4 JournalArticleService=serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")
5 resourcePrimKey=JournalArticleService.getArticleResourcePrimKey(groupId, .vars['reserved-article-id'].data)
6 articleCatNames=catLocalService.getCategories("com.liferay.journal.model.JournalArticle", resourcePrimKey) />
7 <#assign publicationArticle = JournalArticleLocalService.getArticle(groupId, .vars["reserved-article-id"].data) />
8 <#assign IsFeatured =
9 publicationArticle.getExpandoBridge().getAttribute("IsFeatured")!false />
10 <#if IsFeatured>
11 <#list articleCatNames as category>
12 <#if category.parentCategoryId==0>
13 <#if category.getVocabularyId()==476702>
14 <#assign catId = category.categoryId />
15 <#if catId == 201>
16 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/agriculture-category-poster" />
17 <#assign badgeColor = "a2ac72" />
18 <#elseif catId == 202>
19 <#list articleCatNames as subCategory>
20 <#if subCategory.parentCategoryId == 202>
21 <#assign subCatId = subCategory.categoryId />
22 <#if subCatId == 217>
23 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
24 <#elseif subCatId == 219>
25 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/foreign-investment-pub-poster" />
26 <#elseif subCatId == 225>
27 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/GDP-poster" />
28 <#else>
29 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/economic-category-poster" />
30 </#if>
31 <#break>
32 </#if>
33 </#list>
34
35 <#assign badgeColor = "a69b87" />
36 <#elseif catId == 217>
37 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
38 <#assign badgeColor = "a69b87" />
39 <#elseif catId == 204>
40 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/hotel-establishments-pub-poster" />
41 <#assign badgeColor = "116169" />
42 <#elseif catId == 205>
43 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/labour-category-poster" />
44 <#assign badgeColor = "aacdcb" />
45 <#elseif catId == 206>
46 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/population-category-poster" />
47 <#assign badgeColor = "475865" />
48 <#elseif catId == 207>
49 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/social-category-poster" />
50 <#assign badgeColor = "6e92a8" />
51 <#else>
52 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
53 <#assign badgeColor = "116169" />
54 </#if>
55 </#if>
56 </#if>
57
58 </#list>
59
60<div class="item">
61 <div class="dl-card latest-publications-card dl-rounded d-flex flex-column align-items-start justify-content-between text-white p-3"
62 style="background: linear-gradient(transparent,#000000d4 ),url('${ImgSrc}') no-repeat center/cover;">
63 <div class="d-flex justify-content-between align-items-start w-100 row">
64 <#assign publicationNotes=publicationNote.getData()>
65 <#if publicationNotes?has_content>
66
67 <div class="button-wrapper col-2 d-inline-block p-1"><button
68 class="hover-button btn dl-share-btn mb-0" style="margin:13px"><img src="/documents/d/guest/share"
69 height="20"></button>
70 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
71 <li><a target="_blank"
72 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
73 class="icon-facebook"></i></a></li>
74 <li><a target="_blank"
75 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
76 class="icon-twitter"></i></a></li>
77 </ul>
78 </div>
79 <#assign PublicationNoteEn =
80 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteEn")!"" />
81
82<#assign PublicationNoteAr =
83 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteAr")!"" />
84
85<#assign languageId = themeDisplay.getLanguageId() />
86
87<#-- Show box ONLY if at least one note has content -->
88<#if (PublicationNoteEn?has_content) || (PublicationNoteAr?has_content)>
89
90 <div class="info-box col-10">
91 <img
92 src="https://scad.gov.ae/documents/d/guest/information-circle-svgrepo-com"
93 height="20"
94 style="margin-right: 10px;"
95 />
96
97 <span class="info-message" style="color: #002D62; font-size: 12px;">
98
99 <#if languageId?starts_with("ar") && PublicationNoteAr?has_content>
100 ${PublicationNoteAr}
101 <#elseif PublicationNoteEn?has_content>
102 ${PublicationNoteEn}
103 <#else>
104 ${PublicationNoteAr}
105 </#if>
106
107 </span>
108 </div>
109
110</#if>
111
112 <#else>
113 <div class="button-wrapper d-inline-block p-1"><button
114 class="hover-button btn dl-share-btn mb-0"><img src="/documents/d/guest/share"
115 height="20"></button>
116 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
117 <li><a target="_blank"
118 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
119 class="icon-facebook"></i></a></li>
120 <li><a target="_blank"
121 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
122 class="icon-twitter"></i></a></li>
123 </ul>
124 </div>
125 </#if>
126
127 </div>
128 <div class="w-100">
129 <h5>
130 <#if file_upload.getSiblings()?has_content>
131 <#list file_upload.getSiblings() as cur_file_upload>
132 <a class="text-white" href="${friendlyURL}">${.vars["reserved-article-title"].data}
133 </a>
134 </#list>
135 </#if>
136 </h5> <#list articleCatNames as category>
137 <#if category.parentCategoryId==0>
138 <#if category.getVocabularyId()==476702>
139 <span class="theme-category p-2 badge" style="background: #${badgeColor}">${category.name}</span></#if></#if></#list>
140 <ul class="d-flex justify-content-between align-items-end attachments-list px-0 mb-0 mt-3 w-100 list-unstyled">
141 <li class="home_date_wrapper">
142 <div class="date_container">
143 <#assign releaseDate=.vars["reserved-article-display-date"].data?date("EEE, dd MMM yyyy HH:mm:ssZ") />
144 <img height="20" src="https://scad.gov.ae/documents/d/guest/release_icon" class="pe-2 mb-1"
145 style="filter: brightness(14.5); padding-inline-end: 6px;">
146 <span class="labels"> Release Date :</span>${releaseDate?string("yyyy-MM-dd")}
147 </div>
148
149
150 <div class="date_container">
151
152<#assign revisionDate = publicationArticle.getExpandoBridge().getAttribute("revisionDate")/>
153 <#assign formattedRevDate = revisionDate?string("yyyy-MM-dd")>
154
155 <#if formattedRevDate != "1888-01-01">
156
157<img height="20" src="https://scad.gov.ae/documents/d/guest/revision_icon" class="pe-2 mb-1" style="filter: brightness(14.5); padding-inline-end: 6px;">
158 <span class="labels">Revision Date:</span>
159 ${revisionDate?string("yyyy-MM-dd")}
160
161
162 </#if>
163 </li>
164
165 <#if file_upload.getSiblings()?has_content>
166 <#list file_upload.getSiblings() as cur_file_upload>
167 <a href="${cur_file_upload.getData()}" class="dl-attachment-circle mr-2">
168 <li class="list-item list-inline-item d-flex"><img height="20"
169 src="https://scad.gov.ae/o/scad-theme/images/publications/excel-svgrepo-com.svg"
170 class="d-flex mx-auto align-self-center"></li></a>
171 </#list>
172</#if>
173
174 </ul>
175 </div>
176 </div>
177</div>
178</#if>
The following has evaluated to null or missing:
==> publicationNote [in template "20098#20124#2901816" at line 66, column 39]
----
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: #assign publicationNotes = publicatio... [in template "20098#20124#2901816" at line 66, column 13]
----
1<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
2
3 <#assign catLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")
4 JournalArticleService=serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")
5 resourcePrimKey=JournalArticleService.getArticleResourcePrimKey(groupId, .vars['reserved-article-id'].data)
6 articleCatNames=catLocalService.getCategories("com.liferay.journal.model.JournalArticle", resourcePrimKey) />
7 <#assign publicationArticle = JournalArticleLocalService.getArticle(groupId, .vars["reserved-article-id"].data) />
8 <#assign IsFeatured =
9 publicationArticle.getExpandoBridge().getAttribute("IsFeatured")!false />
10 <#if IsFeatured>
11 <#list articleCatNames as category>
12 <#if category.parentCategoryId==0>
13 <#if category.getVocabularyId()==476702>
14 <#assign catId = category.categoryId />
15 <#if catId == 201>
16 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/agriculture-category-poster" />
17 <#assign badgeColor = "a2ac72" />
18 <#elseif catId == 202>
19 <#list articleCatNames as subCategory>
20 <#if subCategory.parentCategoryId == 202>
21 <#assign subCatId = subCategory.categoryId />
22 <#if subCatId == 217>
23 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
24 <#elseif subCatId == 219>
25 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/foreign-investment-pub-poster" />
26 <#elseif subCatId == 225>
27 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/GDP-poster" />
28 <#else>
29 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/economic-category-poster" />
30 </#if>
31 <#break>
32 </#if>
33 </#list>
34
35 <#assign badgeColor = "a69b87" />
36 <#elseif catId == 217>
37 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
38 <#assign badgeColor = "a69b87" />
39 <#elseif catId == 204>
40 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/hotel-establishments-pub-poster" />
41 <#assign badgeColor = "116169" />
42 <#elseif catId == 205>
43 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/labour-category-poster" />
44 <#assign badgeColor = "aacdcb" />
45 <#elseif catId == 206>
46 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/population-category-poster" />
47 <#assign badgeColor = "475865" />
48 <#elseif catId == 207>
49 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/social-category-poster" />
50 <#assign badgeColor = "6e92a8" />
51 <#else>
52 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
53 <#assign badgeColor = "116169" />
54 </#if>
55 </#if>
56 </#if>
57
58 </#list>
59
60<div class="item">
61 <div class="dl-card latest-publications-card dl-rounded d-flex flex-column align-items-start justify-content-between text-white p-3"
62 style="background: linear-gradient(transparent,#000000d4 ),url('${ImgSrc}') no-repeat center/cover;">
63 <div class="d-flex justify-content-between align-items-start w-100 row">
64 <#assign publicationNotes=publicationNote.getData()>
65 <#if publicationNotes?has_content>
66
67 <div class="button-wrapper col-2 d-inline-block p-1"><button
68 class="hover-button btn dl-share-btn mb-0" style="margin:13px"><img src="/documents/d/guest/share"
69 height="20"></button>
70 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
71 <li><a target="_blank"
72 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
73 class="icon-facebook"></i></a></li>
74 <li><a target="_blank"
75 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
76 class="icon-twitter"></i></a></li>
77 </ul>
78 </div>
79 <#assign PublicationNoteEn =
80 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteEn")!"" />
81
82<#assign PublicationNoteAr =
83 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteAr")!"" />
84
85<#assign languageId = themeDisplay.getLanguageId() />
86
87<#-- Show box ONLY if at least one note has content -->
88<#if (PublicationNoteEn?has_content) || (PublicationNoteAr?has_content)>
89
90 <div class="info-box col-10">
91 <img
92 src="https://scad.gov.ae/documents/d/guest/information-circle-svgrepo-com"
93 height="20"
94 style="margin-right: 10px;"
95 />
96
97 <span class="info-message" style="color: #002D62; font-size: 12px;">
98
99 <#if languageId?starts_with("ar") && PublicationNoteAr?has_content>
100 ${PublicationNoteAr}
101 <#elseif PublicationNoteEn?has_content>
102 ${PublicationNoteEn}
103 <#else>
104 ${PublicationNoteAr}
105 </#if>
106
107 </span>
108 </div>
109
110</#if>
111
112 <#else>
113 <div class="button-wrapper d-inline-block p-1"><button
114 class="hover-button btn dl-share-btn mb-0"><img src="/documents/d/guest/share"
115 height="20"></button>
116 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
117 <li><a target="_blank"
118 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
119 class="icon-facebook"></i></a></li>
120 <li><a target="_blank"
121 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
122 class="icon-twitter"></i></a></li>
123 </ul>
124 </div>
125 </#if>
126
127 </div>
128 <div class="w-100">
129 <h5>
130 <#if file_upload.getSiblings()?has_content>
131 <#list file_upload.getSiblings() as cur_file_upload>
132 <a class="text-white" href="${friendlyURL}">${.vars["reserved-article-title"].data}
133 </a>
134 </#list>
135 </#if>
136 </h5> <#list articleCatNames as category>
137 <#if category.parentCategoryId==0>
138 <#if category.getVocabularyId()==476702>
139 <span class="theme-category p-2 badge" style="background: #${badgeColor}">${category.name}</span></#if></#if></#list>
140 <ul class="d-flex justify-content-between align-items-end attachments-list px-0 mb-0 mt-3 w-100 list-unstyled">
141 <li class="home_date_wrapper">
142 <div class="date_container">
143 <#assign releaseDate=.vars["reserved-article-display-date"].data?date("EEE, dd MMM yyyy HH:mm:ssZ") />
144 <img height="20" src="https://scad.gov.ae/documents/d/guest/release_icon" class="pe-2 mb-1"
145 style="filter: brightness(14.5); padding-inline-end: 6px;">
146 <span class="labels"> Release Date :</span>${releaseDate?string("yyyy-MM-dd")}
147 </div>
148
149
150 <div class="date_container">
151
152<#assign revisionDate = publicationArticle.getExpandoBridge().getAttribute("revisionDate")/>
153 <#assign formattedRevDate = revisionDate?string("yyyy-MM-dd")>
154
155 <#if formattedRevDate != "1888-01-01">
156
157<img height="20" src="https://scad.gov.ae/documents/d/guest/revision_icon" class="pe-2 mb-1" style="filter: brightness(14.5); padding-inline-end: 6px;">
158 <span class="labels">Revision Date:</span>
159 ${revisionDate?string("yyyy-MM-dd")}
160
161
162 </#if>
163 </li>
164
165 <#if file_upload.getSiblings()?has_content>
166 <#list file_upload.getSiblings() as cur_file_upload>
167 <a href="${cur_file_upload.getData()}" class="dl-attachment-circle mr-2">
168 <li class="list-item list-inline-item d-flex"><img height="20"
169 src="https://scad.gov.ae/o/scad-theme/images/publications/excel-svgrepo-com.svg"
170 class="d-flex mx-auto align-self-center"></li></a>
171 </#list>
172</#if>
173
174 </ul>
175 </div>
176 </div>
177</div>
178</#if>
The following has evaluated to null or missing:
==> publicationNote [in template "20098#20124#2901816" at line 66, column 39]
----
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: #assign publicationNotes = publicatio... [in template "20098#20124#2901816" at line 66, column 13]
----
1<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
2
3 <#assign catLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")
4 JournalArticleService=serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")
5 resourcePrimKey=JournalArticleService.getArticleResourcePrimKey(groupId, .vars['reserved-article-id'].data)
6 articleCatNames=catLocalService.getCategories("com.liferay.journal.model.JournalArticle", resourcePrimKey) />
7 <#assign publicationArticle = JournalArticleLocalService.getArticle(groupId, .vars["reserved-article-id"].data) />
8 <#assign IsFeatured =
9 publicationArticle.getExpandoBridge().getAttribute("IsFeatured")!false />
10 <#if IsFeatured>
11 <#list articleCatNames as category>
12 <#if category.parentCategoryId==0>
13 <#if category.getVocabularyId()==476702>
14 <#assign catId = category.categoryId />
15 <#if catId == 201>
16 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/agriculture-category-poster" />
17 <#assign badgeColor = "a2ac72" />
18 <#elseif catId == 202>
19 <#list articleCatNames as subCategory>
20 <#if subCategory.parentCategoryId == 202>
21 <#assign subCatId = subCategory.categoryId />
22 <#if subCatId == 217>
23 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
24 <#elseif subCatId == 219>
25 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/foreign-investment-pub-poster" />
26 <#elseif subCatId == 225>
27 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/GDP-poster" />
28 <#else>
29 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/economic-category-poster" />
30 </#if>
31 <#break>
32 </#if>
33 </#list>
34
35 <#assign badgeColor = "a69b87" />
36 <#elseif catId == 217>
37 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
38 <#assign badgeColor = "a69b87" />
39 <#elseif catId == 204>
40 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/hotel-establishments-pub-poster" />
41 <#assign badgeColor = "116169" />
42 <#elseif catId == 205>
43 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/labour-category-poster" />
44 <#assign badgeColor = "aacdcb" />
45 <#elseif catId == 206>
46 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/population-category-poster" />
47 <#assign badgeColor = "475865" />
48 <#elseif catId == 207>
49 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/social-category-poster" />
50 <#assign badgeColor = "6e92a8" />
51 <#else>
52 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
53 <#assign badgeColor = "116169" />
54 </#if>
55 </#if>
56 </#if>
57
58 </#list>
59
60<div class="item">
61 <div class="dl-card latest-publications-card dl-rounded d-flex flex-column align-items-start justify-content-between text-white p-3"
62 style="background: linear-gradient(transparent,#000000d4 ),url('${ImgSrc}') no-repeat center/cover;">
63 <div class="d-flex justify-content-between align-items-start w-100 row">
64 <#assign publicationNotes=publicationNote.getData()>
65 <#if publicationNotes?has_content>
66
67 <div class="button-wrapper col-2 d-inline-block p-1"><button
68 class="hover-button btn dl-share-btn mb-0" style="margin:13px"><img src="/documents/d/guest/share"
69 height="20"></button>
70 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
71 <li><a target="_blank"
72 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
73 class="icon-facebook"></i></a></li>
74 <li><a target="_blank"
75 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
76 class="icon-twitter"></i></a></li>
77 </ul>
78 </div>
79 <#assign PublicationNoteEn =
80 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteEn")!"" />
81
82<#assign PublicationNoteAr =
83 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteAr")!"" />
84
85<#assign languageId = themeDisplay.getLanguageId() />
86
87<#-- Show box ONLY if at least one note has content -->
88<#if (PublicationNoteEn?has_content) || (PublicationNoteAr?has_content)>
89
90 <div class="info-box col-10">
91 <img
92 src="https://scad.gov.ae/documents/d/guest/information-circle-svgrepo-com"
93 height="20"
94 style="margin-right: 10px;"
95 />
96
97 <span class="info-message" style="color: #002D62; font-size: 12px;">
98
99 <#if languageId?starts_with("ar") && PublicationNoteAr?has_content>
100 ${PublicationNoteAr}
101 <#elseif PublicationNoteEn?has_content>
102 ${PublicationNoteEn}
103 <#else>
104 ${PublicationNoteAr}
105 </#if>
106
107 </span>
108 </div>
109
110</#if>
111
112 <#else>
113 <div class="button-wrapper d-inline-block p-1"><button
114 class="hover-button btn dl-share-btn mb-0"><img src="/documents/d/guest/share"
115 height="20"></button>
116 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
117 <li><a target="_blank"
118 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
119 class="icon-facebook"></i></a></li>
120 <li><a target="_blank"
121 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
122 class="icon-twitter"></i></a></li>
123 </ul>
124 </div>
125 </#if>
126
127 </div>
128 <div class="w-100">
129 <h5>
130 <#if file_upload.getSiblings()?has_content>
131 <#list file_upload.getSiblings() as cur_file_upload>
132 <a class="text-white" href="${friendlyURL}">${.vars["reserved-article-title"].data}
133 </a>
134 </#list>
135 </#if>
136 </h5> <#list articleCatNames as category>
137 <#if category.parentCategoryId==0>
138 <#if category.getVocabularyId()==476702>
139 <span class="theme-category p-2 badge" style="background: #${badgeColor}">${category.name}</span></#if></#if></#list>
140 <ul class="d-flex justify-content-between align-items-end attachments-list px-0 mb-0 mt-3 w-100 list-unstyled">
141 <li class="home_date_wrapper">
142 <div class="date_container">
143 <#assign releaseDate=.vars["reserved-article-display-date"].data?date("EEE, dd MMM yyyy HH:mm:ssZ") />
144 <img height="20" src="https://scad.gov.ae/documents/d/guest/release_icon" class="pe-2 mb-1"
145 style="filter: brightness(14.5); padding-inline-end: 6px;">
146 <span class="labels"> Release Date :</span>${releaseDate?string("yyyy-MM-dd")}
147 </div>
148
149
150 <div class="date_container">
151
152<#assign revisionDate = publicationArticle.getExpandoBridge().getAttribute("revisionDate")/>
153 <#assign formattedRevDate = revisionDate?string("yyyy-MM-dd")>
154
155 <#if formattedRevDate != "1888-01-01">
156
157<img height="20" src="https://scad.gov.ae/documents/d/guest/revision_icon" class="pe-2 mb-1" style="filter: brightness(14.5); padding-inline-end: 6px;">
158 <span class="labels">Revision Date:</span>
159 ${revisionDate?string("yyyy-MM-dd")}
160
161
162 </#if>
163 </li>
164
165 <#if file_upload.getSiblings()?has_content>
166 <#list file_upload.getSiblings() as cur_file_upload>
167 <a href="${cur_file_upload.getData()}" class="dl-attachment-circle mr-2">
168 <li class="list-item list-inline-item d-flex"><img height="20"
169 src="https://scad.gov.ae/o/scad-theme/images/publications/excel-svgrepo-com.svg"
170 class="d-flex mx-auto align-self-center"></li></a>
171 </#list>
172</#if>
173
174 </ul>
175 </div>
176 </div>
177</div>
178</#if>
The following has evaluated to null or missing:
==> publicationNote [in template "20098#20124#2901816" at line 66, column 39]
----
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: #assign publicationNotes = publicatio... [in template "20098#20124#2901816" at line 66, column 13]
----
1<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
2
3 <#assign catLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")
4 JournalArticleService=serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")
5 resourcePrimKey=JournalArticleService.getArticleResourcePrimKey(groupId, .vars['reserved-article-id'].data)
6 articleCatNames=catLocalService.getCategories("com.liferay.journal.model.JournalArticle", resourcePrimKey) />
7 <#assign publicationArticle = JournalArticleLocalService.getArticle(groupId, .vars["reserved-article-id"].data) />
8 <#assign IsFeatured =
9 publicationArticle.getExpandoBridge().getAttribute("IsFeatured")!false />
10 <#if IsFeatured>
11 <#list articleCatNames as category>
12 <#if category.parentCategoryId==0>
13 <#if category.getVocabularyId()==476702>
14 <#assign catId = category.categoryId />
15 <#if catId == 201>
16 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/agriculture-category-poster" />
17 <#assign badgeColor = "a2ac72" />
18 <#elseif catId == 202>
19 <#list articleCatNames as subCategory>
20 <#if subCategory.parentCategoryId == 202>
21 <#assign subCatId = subCategory.categoryId />
22 <#if subCatId == 217>
23 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
24 <#elseif subCatId == 219>
25 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/foreign-investment-pub-poster" />
26 <#elseif subCatId == 225>
27 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/GDP-poster" />
28 <#else>
29 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/economic-category-poster" />
30 </#if>
31 <#break>
32 </#if>
33 </#list>
34
35 <#assign badgeColor = "a69b87" />
36 <#elseif catId == 217>
37 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
38 <#assign badgeColor = "a69b87" />
39 <#elseif catId == 204>
40 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/hotel-establishments-pub-poster" />
41 <#assign badgeColor = "116169" />
42 <#elseif catId == 205>
43 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/labour-category-poster" />
44 <#assign badgeColor = "aacdcb" />
45 <#elseif catId == 206>
46 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/population-category-poster" />
47 <#assign badgeColor = "475865" />
48 <#elseif catId == 207>
49 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/social-category-poster" />
50 <#assign badgeColor = "6e92a8" />
51 <#else>
52 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
53 <#assign badgeColor = "116169" />
54 </#if>
55 </#if>
56 </#if>
57
58 </#list>
59
60<div class="item">
61 <div class="dl-card latest-publications-card dl-rounded d-flex flex-column align-items-start justify-content-between text-white p-3"
62 style="background: linear-gradient(transparent,#000000d4 ),url('${ImgSrc}') no-repeat center/cover;">
63 <div class="d-flex justify-content-between align-items-start w-100 row">
64 <#assign publicationNotes=publicationNote.getData()>
65 <#if publicationNotes?has_content>
66
67 <div class="button-wrapper col-2 d-inline-block p-1"><button
68 class="hover-button btn dl-share-btn mb-0" style="margin:13px"><img src="/documents/d/guest/share"
69 height="20"></button>
70 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
71 <li><a target="_blank"
72 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
73 class="icon-facebook"></i></a></li>
74 <li><a target="_blank"
75 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
76 class="icon-twitter"></i></a></li>
77 </ul>
78 </div>
79 <#assign PublicationNoteEn =
80 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteEn")!"" />
81
82<#assign PublicationNoteAr =
83 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteAr")!"" />
84
85<#assign languageId = themeDisplay.getLanguageId() />
86
87<#-- Show box ONLY if at least one note has content -->
88<#if (PublicationNoteEn?has_content) || (PublicationNoteAr?has_content)>
89
90 <div class="info-box col-10">
91 <img
92 src="https://scad.gov.ae/documents/d/guest/information-circle-svgrepo-com"
93 height="20"
94 style="margin-right: 10px;"
95 />
96
97 <span class="info-message" style="color: #002D62; font-size: 12px;">
98
99 <#if languageId?starts_with("ar") && PublicationNoteAr?has_content>
100 ${PublicationNoteAr}
101 <#elseif PublicationNoteEn?has_content>
102 ${PublicationNoteEn}
103 <#else>
104 ${PublicationNoteAr}
105 </#if>
106
107 </span>
108 </div>
109
110</#if>
111
112 <#else>
113 <div class="button-wrapper d-inline-block p-1"><button
114 class="hover-button btn dl-share-btn mb-0"><img src="/documents/d/guest/share"
115 height="20"></button>
116 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
117 <li><a target="_blank"
118 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
119 class="icon-facebook"></i></a></li>
120 <li><a target="_blank"
121 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
122 class="icon-twitter"></i></a></li>
123 </ul>
124 </div>
125 </#if>
126
127 </div>
128 <div class="w-100">
129 <h5>
130 <#if file_upload.getSiblings()?has_content>
131 <#list file_upload.getSiblings() as cur_file_upload>
132 <a class="text-white" href="${friendlyURL}">${.vars["reserved-article-title"].data}
133 </a>
134 </#list>
135 </#if>
136 </h5> <#list articleCatNames as category>
137 <#if category.parentCategoryId==0>
138 <#if category.getVocabularyId()==476702>
139 <span class="theme-category p-2 badge" style="background: #${badgeColor}">${category.name}</span></#if></#if></#list>
140 <ul class="d-flex justify-content-between align-items-end attachments-list px-0 mb-0 mt-3 w-100 list-unstyled">
141 <li class="home_date_wrapper">
142 <div class="date_container">
143 <#assign releaseDate=.vars["reserved-article-display-date"].data?date("EEE, dd MMM yyyy HH:mm:ssZ") />
144 <img height="20" src="https://scad.gov.ae/documents/d/guest/release_icon" class="pe-2 mb-1"
145 style="filter: brightness(14.5); padding-inline-end: 6px;">
146 <span class="labels"> Release Date :</span>${releaseDate?string("yyyy-MM-dd")}
147 </div>
148
149
150 <div class="date_container">
151
152<#assign revisionDate = publicationArticle.getExpandoBridge().getAttribute("revisionDate")/>
153 <#assign formattedRevDate = revisionDate?string("yyyy-MM-dd")>
154
155 <#if formattedRevDate != "1888-01-01">
156
157<img height="20" src="https://scad.gov.ae/documents/d/guest/revision_icon" class="pe-2 mb-1" style="filter: brightness(14.5); padding-inline-end: 6px;">
158 <span class="labels">Revision Date:</span>
159 ${revisionDate?string("yyyy-MM-dd")}
160
161
162 </#if>
163 </li>
164
165 <#if file_upload.getSiblings()?has_content>
166 <#list file_upload.getSiblings() as cur_file_upload>
167 <a href="${cur_file_upload.getData()}" class="dl-attachment-circle mr-2">
168 <li class="list-item list-inline-item d-flex"><img height="20"
169 src="https://scad.gov.ae/o/scad-theme/images/publications/excel-svgrepo-com.svg"
170 class="d-flex mx-auto align-self-center"></li></a>
171 </#list>
172</#if>
173
174 </ul>
175 </div>
176 </div>
177</div>
178</#if>
The following has evaluated to null or missing:
==> publicationNote [in template "20098#20124#2901816" at line 66, column 39]
----
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: #assign publicationNotes = publicatio... [in template "20098#20124#2901816" at line 66, column 13]
----
1<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
2
3 <#assign catLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")
4 JournalArticleService=serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")
5 resourcePrimKey=JournalArticleService.getArticleResourcePrimKey(groupId, .vars['reserved-article-id'].data)
6 articleCatNames=catLocalService.getCategories("com.liferay.journal.model.JournalArticle", resourcePrimKey) />
7 <#assign publicationArticle = JournalArticleLocalService.getArticle(groupId, .vars["reserved-article-id"].data) />
8 <#assign IsFeatured =
9 publicationArticle.getExpandoBridge().getAttribute("IsFeatured")!false />
10 <#if IsFeatured>
11 <#list articleCatNames as category>
12 <#if category.parentCategoryId==0>
13 <#if category.getVocabularyId()==476702>
14 <#assign catId = category.categoryId />
15 <#if catId == 201>
16 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/agriculture-category-poster" />
17 <#assign badgeColor = "a2ac72" />
18 <#elseif catId == 202>
19 <#list articleCatNames as subCategory>
20 <#if subCategory.parentCategoryId == 202>
21 <#assign subCatId = subCategory.categoryId />
22 <#if subCatId == 217>
23 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
24 <#elseif subCatId == 219>
25 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/foreign-investment-pub-poster" />
26 <#elseif subCatId == 225>
27 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/GDP-poster" />
28 <#else>
29 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/economic-category-poster" />
30 </#if>
31 <#break>
32 </#if>
33 </#list>
34
35 <#assign badgeColor = "a69b87" />
36 <#elseif catId == 217>
37 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
38 <#assign badgeColor = "a69b87" />
39 <#elseif catId == 204>
40 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/hotel-establishments-pub-poster" />
41 <#assign badgeColor = "116169" />
42 <#elseif catId == 205>
43 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/labour-category-poster" />
44 <#assign badgeColor = "aacdcb" />
45 <#elseif catId == 206>
46 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/population-category-poster" />
47 <#assign badgeColor = "475865" />
48 <#elseif catId == 207>
49 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/social-category-poster" />
50 <#assign badgeColor = "6e92a8" />
51 <#else>
52 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
53 <#assign badgeColor = "116169" />
54 </#if>
55 </#if>
56 </#if>
57
58 </#list>
59
60<div class="item">
61 <div class="dl-card latest-publications-card dl-rounded d-flex flex-column align-items-start justify-content-between text-white p-3"
62 style="background: linear-gradient(transparent,#000000d4 ),url('${ImgSrc}') no-repeat center/cover;">
63 <div class="d-flex justify-content-between align-items-start w-100 row">
64 <#assign publicationNotes=publicationNote.getData()>
65 <#if publicationNotes?has_content>
66
67 <div class="button-wrapper col-2 d-inline-block p-1"><button
68 class="hover-button btn dl-share-btn mb-0" style="margin:13px"><img src="/documents/d/guest/share"
69 height="20"></button>
70 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
71 <li><a target="_blank"
72 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
73 class="icon-facebook"></i></a></li>
74 <li><a target="_blank"
75 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
76 class="icon-twitter"></i></a></li>
77 </ul>
78 </div>
79 <#assign PublicationNoteEn =
80 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteEn")!"" />
81
82<#assign PublicationNoteAr =
83 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteAr")!"" />
84
85<#assign languageId = themeDisplay.getLanguageId() />
86
87<#-- Show box ONLY if at least one note has content -->
88<#if (PublicationNoteEn?has_content) || (PublicationNoteAr?has_content)>
89
90 <div class="info-box col-10">
91 <img
92 src="https://scad.gov.ae/documents/d/guest/information-circle-svgrepo-com"
93 height="20"
94 style="margin-right: 10px;"
95 />
96
97 <span class="info-message" style="color: #002D62; font-size: 12px;">
98
99 <#if languageId?starts_with("ar") && PublicationNoteAr?has_content>
100 ${PublicationNoteAr}
101 <#elseif PublicationNoteEn?has_content>
102 ${PublicationNoteEn}
103 <#else>
104 ${PublicationNoteAr}
105 </#if>
106
107 </span>
108 </div>
109
110</#if>
111
112 <#else>
113 <div class="button-wrapper d-inline-block p-1"><button
114 class="hover-button btn dl-share-btn mb-0"><img src="/documents/d/guest/share"
115 height="20"></button>
116 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
117 <li><a target="_blank"
118 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
119 class="icon-facebook"></i></a></li>
120 <li><a target="_blank"
121 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
122 class="icon-twitter"></i></a></li>
123 </ul>
124 </div>
125 </#if>
126
127 </div>
128 <div class="w-100">
129 <h5>
130 <#if file_upload.getSiblings()?has_content>
131 <#list file_upload.getSiblings() as cur_file_upload>
132 <a class="text-white" href="${friendlyURL}">${.vars["reserved-article-title"].data}
133 </a>
134 </#list>
135 </#if>
136 </h5> <#list articleCatNames as category>
137 <#if category.parentCategoryId==0>
138 <#if category.getVocabularyId()==476702>
139 <span class="theme-category p-2 badge" style="background: #${badgeColor}">${category.name}</span></#if></#if></#list>
140 <ul class="d-flex justify-content-between align-items-end attachments-list px-0 mb-0 mt-3 w-100 list-unstyled">
141 <li class="home_date_wrapper">
142 <div class="date_container">
143 <#assign releaseDate=.vars["reserved-article-display-date"].data?date("EEE, dd MMM yyyy HH:mm:ssZ") />
144 <img height="20" src="https://scad.gov.ae/documents/d/guest/release_icon" class="pe-2 mb-1"
145 style="filter: brightness(14.5); padding-inline-end: 6px;">
146 <span class="labels"> Release Date :</span>${releaseDate?string("yyyy-MM-dd")}
147 </div>
148
149
150 <div class="date_container">
151
152<#assign revisionDate = publicationArticle.getExpandoBridge().getAttribute("revisionDate")/>
153 <#assign formattedRevDate = revisionDate?string("yyyy-MM-dd")>
154
155 <#if formattedRevDate != "1888-01-01">
156
157<img height="20" src="https://scad.gov.ae/documents/d/guest/revision_icon" class="pe-2 mb-1" style="filter: brightness(14.5); padding-inline-end: 6px;">
158 <span class="labels">Revision Date:</span>
159 ${revisionDate?string("yyyy-MM-dd")}
160
161
162 </#if>
163 </li>
164
165 <#if file_upload.getSiblings()?has_content>
166 <#list file_upload.getSiblings() as cur_file_upload>
167 <a href="${cur_file_upload.getData()}" class="dl-attachment-circle mr-2">
168 <li class="list-item list-inline-item d-flex"><img height="20"
169 src="https://scad.gov.ae/o/scad-theme/images/publications/excel-svgrepo-com.svg"
170 class="d-flex mx-auto align-self-center"></li></a>
171 </#list>
172</#if>
173
174 </ul>
175 </div>
176 </div>
177</div>
178</#if>
The following has evaluated to null or missing:
==> publicationNote [in template "20098#20124#2901816" at line 66, column 39]
----
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: #assign publicationNotes = publicatio... [in template "20098#20124#2901816" at line 66, column 13]
----
1<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
2
3 <#assign catLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")
4 JournalArticleService=serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")
5 resourcePrimKey=JournalArticleService.getArticleResourcePrimKey(groupId, .vars['reserved-article-id'].data)
6 articleCatNames=catLocalService.getCategories("com.liferay.journal.model.JournalArticle", resourcePrimKey) />
7 <#assign publicationArticle = JournalArticleLocalService.getArticle(groupId, .vars["reserved-article-id"].data) />
8 <#assign IsFeatured =
9 publicationArticle.getExpandoBridge().getAttribute("IsFeatured")!false />
10 <#if IsFeatured>
11 <#list articleCatNames as category>
12 <#if category.parentCategoryId==0>
13 <#if category.getVocabularyId()==476702>
14 <#assign catId = category.categoryId />
15 <#if catId == 201>
16 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/agriculture-category-poster" />
17 <#assign badgeColor = "a2ac72" />
18 <#elseif catId == 202>
19 <#list articleCatNames as subCategory>
20 <#if subCategory.parentCategoryId == 202>
21 <#assign subCatId = subCategory.categoryId />
22 <#if subCatId == 217>
23 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
24 <#elseif subCatId == 219>
25 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/foreign-investment-pub-poster" />
26 <#elseif subCatId == 225>
27 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/GDP-poster" />
28 <#else>
29 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/economic-category-poster" />
30 </#if>
31 <#break>
32 </#if>
33 </#list>
34
35 <#assign badgeColor = "a69b87" />
36 <#elseif catId == 217>
37 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
38 <#assign badgeColor = "a69b87" />
39 <#elseif catId == 204>
40 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/hotel-establishments-pub-poster" />
41 <#assign badgeColor = "116169" />
42 <#elseif catId == 205>
43 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/labour-category-poster" />
44 <#assign badgeColor = "aacdcb" />
45 <#elseif catId == 206>
46 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/population-category-poster" />
47 <#assign badgeColor = "475865" />
48 <#elseif catId == 207>
49 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/social-category-poster" />
50 <#assign badgeColor = "6e92a8" />
51 <#else>
52 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
53 <#assign badgeColor = "116169" />
54 </#if>
55 </#if>
56 </#if>
57
58 </#list>
59
60<div class="item">
61 <div class="dl-card latest-publications-card dl-rounded d-flex flex-column align-items-start justify-content-between text-white p-3"
62 style="background: linear-gradient(transparent,#000000d4 ),url('${ImgSrc}') no-repeat center/cover;">
63 <div class="d-flex justify-content-between align-items-start w-100 row">
64 <#assign publicationNotes=publicationNote.getData()>
65 <#if publicationNotes?has_content>
66
67 <div class="button-wrapper col-2 d-inline-block p-1"><button
68 class="hover-button btn dl-share-btn mb-0" style="margin:13px"><img src="/documents/d/guest/share"
69 height="20"></button>
70 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
71 <li><a target="_blank"
72 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
73 class="icon-facebook"></i></a></li>
74 <li><a target="_blank"
75 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
76 class="icon-twitter"></i></a></li>
77 </ul>
78 </div>
79 <#assign PublicationNoteEn =
80 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteEn")!"" />
81
82<#assign PublicationNoteAr =
83 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteAr")!"" />
84
85<#assign languageId = themeDisplay.getLanguageId() />
86
87<#-- Show box ONLY if at least one note has content -->
88<#if (PublicationNoteEn?has_content) || (PublicationNoteAr?has_content)>
89
90 <div class="info-box col-10">
91 <img
92 src="https://scad.gov.ae/documents/d/guest/information-circle-svgrepo-com"
93 height="20"
94 style="margin-right: 10px;"
95 />
96
97 <span class="info-message" style="color: #002D62; font-size: 12px;">
98
99 <#if languageId?starts_with("ar") && PublicationNoteAr?has_content>
100 ${PublicationNoteAr}
101 <#elseif PublicationNoteEn?has_content>
102 ${PublicationNoteEn}
103 <#else>
104 ${PublicationNoteAr}
105 </#if>
106
107 </span>
108 </div>
109
110</#if>
111
112 <#else>
113 <div class="button-wrapper d-inline-block p-1"><button
114 class="hover-button btn dl-share-btn mb-0"><img src="/documents/d/guest/share"
115 height="20"></button>
116 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
117 <li><a target="_blank"
118 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
119 class="icon-facebook"></i></a></li>
120 <li><a target="_blank"
121 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
122 class="icon-twitter"></i></a></li>
123 </ul>
124 </div>
125 </#if>
126
127 </div>
128 <div class="w-100">
129 <h5>
130 <#if file_upload.getSiblings()?has_content>
131 <#list file_upload.getSiblings() as cur_file_upload>
132 <a class="text-white" href="${friendlyURL}">${.vars["reserved-article-title"].data}
133 </a>
134 </#list>
135 </#if>
136 </h5> <#list articleCatNames as category>
137 <#if category.parentCategoryId==0>
138 <#if category.getVocabularyId()==476702>
139 <span class="theme-category p-2 badge" style="background: #${badgeColor}">${category.name}</span></#if></#if></#list>
140 <ul class="d-flex justify-content-between align-items-end attachments-list px-0 mb-0 mt-3 w-100 list-unstyled">
141 <li class="home_date_wrapper">
142 <div class="date_container">
143 <#assign releaseDate=.vars["reserved-article-display-date"].data?date("EEE, dd MMM yyyy HH:mm:ssZ") />
144 <img height="20" src="https://scad.gov.ae/documents/d/guest/release_icon" class="pe-2 mb-1"
145 style="filter: brightness(14.5); padding-inline-end: 6px;">
146 <span class="labels"> Release Date :</span>${releaseDate?string("yyyy-MM-dd")}
147 </div>
148
149
150 <div class="date_container">
151
152<#assign revisionDate = publicationArticle.getExpandoBridge().getAttribute("revisionDate")/>
153 <#assign formattedRevDate = revisionDate?string("yyyy-MM-dd")>
154
155 <#if formattedRevDate != "1888-01-01">
156
157<img height="20" src="https://scad.gov.ae/documents/d/guest/revision_icon" class="pe-2 mb-1" style="filter: brightness(14.5); padding-inline-end: 6px;">
158 <span class="labels">Revision Date:</span>
159 ${revisionDate?string("yyyy-MM-dd")}
160
161
162 </#if>
163 </li>
164
165 <#if file_upload.getSiblings()?has_content>
166 <#list file_upload.getSiblings() as cur_file_upload>
167 <a href="${cur_file_upload.getData()}" class="dl-attachment-circle mr-2">
168 <li class="list-item list-inline-item d-flex"><img height="20"
169 src="https://scad.gov.ae/o/scad-theme/images/publications/excel-svgrepo-com.svg"
170 class="d-flex mx-auto align-self-center"></li></a>
171 </#list>
172</#if>
173
174 </ul>
175 </div>
176 </div>
177</div>
178</#if>
The following has evaluated to null or missing:
==> publicationNote [in template "20098#20124#2901816" at line 66, column 39]
----
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: #assign publicationNotes = publicatio... [in template "20098#20124#2901816" at line 66, column 13]
----
1<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
2
3 <#assign catLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")
4 JournalArticleService=serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")
5 resourcePrimKey=JournalArticleService.getArticleResourcePrimKey(groupId, .vars['reserved-article-id'].data)
6 articleCatNames=catLocalService.getCategories("com.liferay.journal.model.JournalArticle", resourcePrimKey) />
7 <#assign publicationArticle = JournalArticleLocalService.getArticle(groupId, .vars["reserved-article-id"].data) />
8 <#assign IsFeatured =
9 publicationArticle.getExpandoBridge().getAttribute("IsFeatured")!false />
10 <#if IsFeatured>
11 <#list articleCatNames as category>
12 <#if category.parentCategoryId==0>
13 <#if category.getVocabularyId()==476702>
14 <#assign catId = category.categoryId />
15 <#if catId == 201>
16 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/agriculture-category-poster" />
17 <#assign badgeColor = "a2ac72" />
18 <#elseif catId == 202>
19 <#list articleCatNames as subCategory>
20 <#if subCategory.parentCategoryId == 202>
21 <#assign subCatId = subCategory.categoryId />
22 <#if subCatId == 217>
23 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
24 <#elseif subCatId == 219>
25 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/foreign-investment-pub-poster" />
26 <#elseif subCatId == 225>
27 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/GDP-poster" />
28 <#else>
29 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/economic-category-poster" />
30 </#if>
31 <#break>
32 </#if>
33 </#list>
34
35 <#assign badgeColor = "a69b87" />
36 <#elseif catId == 217>
37 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
38 <#assign badgeColor = "a69b87" />
39 <#elseif catId == 204>
40 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/hotel-establishments-pub-poster" />
41 <#assign badgeColor = "116169" />
42 <#elseif catId == 205>
43 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/labour-category-poster" />
44 <#assign badgeColor = "aacdcb" />
45 <#elseif catId == 206>
46 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/population-category-poster" />
47 <#assign badgeColor = "475865" />
48 <#elseif catId == 207>
49 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/social-category-poster" />
50 <#assign badgeColor = "6e92a8" />
51 <#else>
52 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
53 <#assign badgeColor = "116169" />
54 </#if>
55 </#if>
56 </#if>
57
58 </#list>
59
60<div class="item">
61 <div class="dl-card latest-publications-card dl-rounded d-flex flex-column align-items-start justify-content-between text-white p-3"
62 style="background: linear-gradient(transparent,#000000d4 ),url('${ImgSrc}') no-repeat center/cover;">
63 <div class="d-flex justify-content-between align-items-start w-100 row">
64 <#assign publicationNotes=publicationNote.getData()>
65 <#if publicationNotes?has_content>
66
67 <div class="button-wrapper col-2 d-inline-block p-1"><button
68 class="hover-button btn dl-share-btn mb-0" style="margin:13px"><img src="/documents/d/guest/share"
69 height="20"></button>
70 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
71 <li><a target="_blank"
72 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
73 class="icon-facebook"></i></a></li>
74 <li><a target="_blank"
75 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
76 class="icon-twitter"></i></a></li>
77 </ul>
78 </div>
79 <#assign PublicationNoteEn =
80 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteEn")!"" />
81
82<#assign PublicationNoteAr =
83 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteAr")!"" />
84
85<#assign languageId = themeDisplay.getLanguageId() />
86
87<#-- Show box ONLY if at least one note has content -->
88<#if (PublicationNoteEn?has_content) || (PublicationNoteAr?has_content)>
89
90 <div class="info-box col-10">
91 <img
92 src="https://scad.gov.ae/documents/d/guest/information-circle-svgrepo-com"
93 height="20"
94 style="margin-right: 10px;"
95 />
96
97 <span class="info-message" style="color: #002D62; font-size: 12px;">
98
99 <#if languageId?starts_with("ar") && PublicationNoteAr?has_content>
100 ${PublicationNoteAr}
101 <#elseif PublicationNoteEn?has_content>
102 ${PublicationNoteEn}
103 <#else>
104 ${PublicationNoteAr}
105 </#if>
106
107 </span>
108 </div>
109
110</#if>
111
112 <#else>
113 <div class="button-wrapper d-inline-block p-1"><button
114 class="hover-button btn dl-share-btn mb-0"><img src="/documents/d/guest/share"
115 height="20"></button>
116 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
117 <li><a target="_blank"
118 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
119 class="icon-facebook"></i></a></li>
120 <li><a target="_blank"
121 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
122 class="icon-twitter"></i></a></li>
123 </ul>
124 </div>
125 </#if>
126
127 </div>
128 <div class="w-100">
129 <h5>
130 <#if file_upload.getSiblings()?has_content>
131 <#list file_upload.getSiblings() as cur_file_upload>
132 <a class="text-white" href="${friendlyURL}">${.vars["reserved-article-title"].data}
133 </a>
134 </#list>
135 </#if>
136 </h5> <#list articleCatNames as category>
137 <#if category.parentCategoryId==0>
138 <#if category.getVocabularyId()==476702>
139 <span class="theme-category p-2 badge" style="background: #${badgeColor}">${category.name}</span></#if></#if></#list>
140 <ul class="d-flex justify-content-between align-items-end attachments-list px-0 mb-0 mt-3 w-100 list-unstyled">
141 <li class="home_date_wrapper">
142 <div class="date_container">
143 <#assign releaseDate=.vars["reserved-article-display-date"].data?date("EEE, dd MMM yyyy HH:mm:ssZ") />
144 <img height="20" src="https://scad.gov.ae/documents/d/guest/release_icon" class="pe-2 mb-1"
145 style="filter: brightness(14.5); padding-inline-end: 6px;">
146 <span class="labels"> Release Date :</span>${releaseDate?string("yyyy-MM-dd")}
147 </div>
148
149
150 <div class="date_container">
151
152<#assign revisionDate = publicationArticle.getExpandoBridge().getAttribute("revisionDate")/>
153 <#assign formattedRevDate = revisionDate?string("yyyy-MM-dd")>
154
155 <#if formattedRevDate != "1888-01-01">
156
157<img height="20" src="https://scad.gov.ae/documents/d/guest/revision_icon" class="pe-2 mb-1" style="filter: brightness(14.5); padding-inline-end: 6px;">
158 <span class="labels">Revision Date:</span>
159 ${revisionDate?string("yyyy-MM-dd")}
160
161
162 </#if>
163 </li>
164
165 <#if file_upload.getSiblings()?has_content>
166 <#list file_upload.getSiblings() as cur_file_upload>
167 <a href="${cur_file_upload.getData()}" class="dl-attachment-circle mr-2">
168 <li class="list-item list-inline-item d-flex"><img height="20"
169 src="https://scad.gov.ae/o/scad-theme/images/publications/excel-svgrepo-com.svg"
170 class="d-flex mx-auto align-self-center"></li></a>
171 </#list>
172</#if>
173
174 </ul>
175 </div>
176 </div>
177</div>
178</#if>
The following has evaluated to null or missing:
==> publicationNote [in template "20098#20124#2901816" at line 66, column 39]
----
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: #assign publicationNotes = publicatio... [in template "20098#20124#2901816" at line 66, column 13]
----
1<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
2
3 <#assign catLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")
4 JournalArticleService=serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")
5 resourcePrimKey=JournalArticleService.getArticleResourcePrimKey(groupId, .vars['reserved-article-id'].data)
6 articleCatNames=catLocalService.getCategories("com.liferay.journal.model.JournalArticle", resourcePrimKey) />
7 <#assign publicationArticle = JournalArticleLocalService.getArticle(groupId, .vars["reserved-article-id"].data) />
8 <#assign IsFeatured =
9 publicationArticle.getExpandoBridge().getAttribute("IsFeatured")!false />
10 <#if IsFeatured>
11 <#list articleCatNames as category>
12 <#if category.parentCategoryId==0>
13 <#if category.getVocabularyId()==476702>
14 <#assign catId = category.categoryId />
15 <#if catId == 201>
16 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/agriculture-category-poster" />
17 <#assign badgeColor = "a2ac72" />
18 <#elseif catId == 202>
19 <#list articleCatNames as subCategory>
20 <#if subCategory.parentCategoryId == 202>
21 <#assign subCatId = subCategory.categoryId />
22 <#if subCatId == 217>
23 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
24 <#elseif subCatId == 219>
25 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/foreign-investment-pub-poster" />
26 <#elseif subCatId == 225>
27 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/GDP-poster" />
28 <#else>
29 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/economic-category-poster" />
30 </#if>
31 <#break>
32 </#if>
33 </#list>
34
35 <#assign badgeColor = "a69b87" />
36 <#elseif catId == 217>
37 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
38 <#assign badgeColor = "a69b87" />
39 <#elseif catId == 204>
40 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/hotel-establishments-pub-poster" />
41 <#assign badgeColor = "116169" />
42 <#elseif catId == 205>
43 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/labour-category-poster" />
44 <#assign badgeColor = "aacdcb" />
45 <#elseif catId == 206>
46 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/population-category-poster" />
47 <#assign badgeColor = "475865" />
48 <#elseif catId == 207>
49 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/social-category-poster" />
50 <#assign badgeColor = "6e92a8" />
51 <#else>
52 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
53 <#assign badgeColor = "116169" />
54 </#if>
55 </#if>
56 </#if>
57
58 </#list>
59
60<div class="item">
61 <div class="dl-card latest-publications-card dl-rounded d-flex flex-column align-items-start justify-content-between text-white p-3"
62 style="background: linear-gradient(transparent,#000000d4 ),url('${ImgSrc}') no-repeat center/cover;">
63 <div class="d-flex justify-content-between align-items-start w-100 row">
64 <#assign publicationNotes=publicationNote.getData()>
65 <#if publicationNotes?has_content>
66
67 <div class="button-wrapper col-2 d-inline-block p-1"><button
68 class="hover-button btn dl-share-btn mb-0" style="margin:13px"><img src="/documents/d/guest/share"
69 height="20"></button>
70 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
71 <li><a target="_blank"
72 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
73 class="icon-facebook"></i></a></li>
74 <li><a target="_blank"
75 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
76 class="icon-twitter"></i></a></li>
77 </ul>
78 </div>
79 <#assign PublicationNoteEn =
80 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteEn")!"" />
81
82<#assign PublicationNoteAr =
83 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteAr")!"" />
84
85<#assign languageId = themeDisplay.getLanguageId() />
86
87<#-- Show box ONLY if at least one note has content -->
88<#if (PublicationNoteEn?has_content) || (PublicationNoteAr?has_content)>
89
90 <div class="info-box col-10">
91 <img
92 src="https://scad.gov.ae/documents/d/guest/information-circle-svgrepo-com"
93 height="20"
94 style="margin-right: 10px;"
95 />
96
97 <span class="info-message" style="color: #002D62; font-size: 12px;">
98
99 <#if languageId?starts_with("ar") && PublicationNoteAr?has_content>
100 ${PublicationNoteAr}
101 <#elseif PublicationNoteEn?has_content>
102 ${PublicationNoteEn}
103 <#else>
104 ${PublicationNoteAr}
105 </#if>
106
107 </span>
108 </div>
109
110</#if>
111
112 <#else>
113 <div class="button-wrapper d-inline-block p-1"><button
114 class="hover-button btn dl-share-btn mb-0"><img src="/documents/d/guest/share"
115 height="20"></button>
116 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
117 <li><a target="_blank"
118 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
119 class="icon-facebook"></i></a></li>
120 <li><a target="_blank"
121 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
122 class="icon-twitter"></i></a></li>
123 </ul>
124 </div>
125 </#if>
126
127 </div>
128 <div class="w-100">
129 <h5>
130 <#if file_upload.getSiblings()?has_content>
131 <#list file_upload.getSiblings() as cur_file_upload>
132 <a class="text-white" href="${friendlyURL}">${.vars["reserved-article-title"].data}
133 </a>
134 </#list>
135 </#if>
136 </h5> <#list articleCatNames as category>
137 <#if category.parentCategoryId==0>
138 <#if category.getVocabularyId()==476702>
139 <span class="theme-category p-2 badge" style="background: #${badgeColor}">${category.name}</span></#if></#if></#list>
140 <ul class="d-flex justify-content-between align-items-end attachments-list px-0 mb-0 mt-3 w-100 list-unstyled">
141 <li class="home_date_wrapper">
142 <div class="date_container">
143 <#assign releaseDate=.vars["reserved-article-display-date"].data?date("EEE, dd MMM yyyy HH:mm:ssZ") />
144 <img height="20" src="https://scad.gov.ae/documents/d/guest/release_icon" class="pe-2 mb-1"
145 style="filter: brightness(14.5); padding-inline-end: 6px;">
146 <span class="labels"> Release Date :</span>${releaseDate?string("yyyy-MM-dd")}
147 </div>
148
149
150 <div class="date_container">
151
152<#assign revisionDate = publicationArticle.getExpandoBridge().getAttribute("revisionDate")/>
153 <#assign formattedRevDate = revisionDate?string("yyyy-MM-dd")>
154
155 <#if formattedRevDate != "1888-01-01">
156
157<img height="20" src="https://scad.gov.ae/documents/d/guest/revision_icon" class="pe-2 mb-1" style="filter: brightness(14.5); padding-inline-end: 6px;">
158 <span class="labels">Revision Date:</span>
159 ${revisionDate?string("yyyy-MM-dd")}
160
161
162 </#if>
163 </li>
164
165 <#if file_upload.getSiblings()?has_content>
166 <#list file_upload.getSiblings() as cur_file_upload>
167 <a href="${cur_file_upload.getData()}" class="dl-attachment-circle mr-2">
168 <li class="list-item list-inline-item d-flex"><img height="20"
169 src="https://scad.gov.ae/o/scad-theme/images/publications/excel-svgrepo-com.svg"
170 class="d-flex mx-auto align-self-center"></li></a>
171 </#list>
172</#if>
173
174 </ul>
175 </div>
176 </div>
177</div>
178</#if>
The following has evaluated to null or missing:
==> publicationNote [in template "20098#20124#2901816" at line 66, column 39]
----
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: #assign publicationNotes = publicatio... [in template "20098#20124#2901816" at line 66, column 13]
----
1<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
2
3 <#assign catLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")
4 JournalArticleService=serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")
5 resourcePrimKey=JournalArticleService.getArticleResourcePrimKey(groupId, .vars['reserved-article-id'].data)
6 articleCatNames=catLocalService.getCategories("com.liferay.journal.model.JournalArticle", resourcePrimKey) />
7 <#assign publicationArticle = JournalArticleLocalService.getArticle(groupId, .vars["reserved-article-id"].data) />
8 <#assign IsFeatured =
9 publicationArticle.getExpandoBridge().getAttribute("IsFeatured")!false />
10 <#if IsFeatured>
11 <#list articleCatNames as category>
12 <#if category.parentCategoryId==0>
13 <#if category.getVocabularyId()==476702>
14 <#assign catId = category.categoryId />
15 <#if catId == 201>
16 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/agriculture-category-poster" />
17 <#assign badgeColor = "a2ac72" />
18 <#elseif catId == 202>
19 <#list articleCatNames as subCategory>
20 <#if subCategory.parentCategoryId == 202>
21 <#assign subCatId = subCategory.categoryId />
22 <#if subCatId == 217>
23 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
24 <#elseif subCatId == 219>
25 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/foreign-investment-pub-poster" />
26 <#elseif subCatId == 225>
27 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/GDP-poster" />
28 <#else>
29 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/economic-category-poster" />
30 </#if>
31 <#break>
32 </#if>
33 </#list>
34
35 <#assign badgeColor = "a69b87" />
36 <#elseif catId == 217>
37 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
38 <#assign badgeColor = "a69b87" />
39 <#elseif catId == 204>
40 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/hotel-establishments-pub-poster" />
41 <#assign badgeColor = "116169" />
42 <#elseif catId == 205>
43 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/labour-category-poster" />
44 <#assign badgeColor = "aacdcb" />
45 <#elseif catId == 206>
46 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/population-category-poster" />
47 <#assign badgeColor = "475865" />
48 <#elseif catId == 207>
49 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/social-category-poster" />
50 <#assign badgeColor = "6e92a8" />
51 <#else>
52 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
53 <#assign badgeColor = "116169" />
54 </#if>
55 </#if>
56 </#if>
57
58 </#list>
59
60<div class="item">
61 <div class="dl-card latest-publications-card dl-rounded d-flex flex-column align-items-start justify-content-between text-white p-3"
62 style="background: linear-gradient(transparent,#000000d4 ),url('${ImgSrc}') no-repeat center/cover;">
63 <div class="d-flex justify-content-between align-items-start w-100 row">
64 <#assign publicationNotes=publicationNote.getData()>
65 <#if publicationNotes?has_content>
66
67 <div class="button-wrapper col-2 d-inline-block p-1"><button
68 class="hover-button btn dl-share-btn mb-0" style="margin:13px"><img src="/documents/d/guest/share"
69 height="20"></button>
70 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
71 <li><a target="_blank"
72 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
73 class="icon-facebook"></i></a></li>
74 <li><a target="_blank"
75 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
76 class="icon-twitter"></i></a></li>
77 </ul>
78 </div>
79 <#assign PublicationNoteEn =
80 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteEn")!"" />
81
82<#assign PublicationNoteAr =
83 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteAr")!"" />
84
85<#assign languageId = themeDisplay.getLanguageId() />
86
87<#-- Show box ONLY if at least one note has content -->
88<#if (PublicationNoteEn?has_content) || (PublicationNoteAr?has_content)>
89
90 <div class="info-box col-10">
91 <img
92 src="https://scad.gov.ae/documents/d/guest/information-circle-svgrepo-com"
93 height="20"
94 style="margin-right: 10px;"
95 />
96
97 <span class="info-message" style="color: #002D62; font-size: 12px;">
98
99 <#if languageId?starts_with("ar") && PublicationNoteAr?has_content>
100 ${PublicationNoteAr}
101 <#elseif PublicationNoteEn?has_content>
102 ${PublicationNoteEn}
103 <#else>
104 ${PublicationNoteAr}
105 </#if>
106
107 </span>
108 </div>
109
110</#if>
111
112 <#else>
113 <div class="button-wrapper d-inline-block p-1"><button
114 class="hover-button btn dl-share-btn mb-0"><img src="/documents/d/guest/share"
115 height="20"></button>
116 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
117 <li><a target="_blank"
118 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
119 class="icon-facebook"></i></a></li>
120 <li><a target="_blank"
121 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
122 class="icon-twitter"></i></a></li>
123 </ul>
124 </div>
125 </#if>
126
127 </div>
128 <div class="w-100">
129 <h5>
130 <#if file_upload.getSiblings()?has_content>
131 <#list file_upload.getSiblings() as cur_file_upload>
132 <a class="text-white" href="${friendlyURL}">${.vars["reserved-article-title"].data}
133 </a>
134 </#list>
135 </#if>
136 </h5> <#list articleCatNames as category>
137 <#if category.parentCategoryId==0>
138 <#if category.getVocabularyId()==476702>
139 <span class="theme-category p-2 badge" style="background: #${badgeColor}">${category.name}</span></#if></#if></#list>
140 <ul class="d-flex justify-content-between align-items-end attachments-list px-0 mb-0 mt-3 w-100 list-unstyled">
141 <li class="home_date_wrapper">
142 <div class="date_container">
143 <#assign releaseDate=.vars["reserved-article-display-date"].data?date("EEE, dd MMM yyyy HH:mm:ssZ") />
144 <img height="20" src="https://scad.gov.ae/documents/d/guest/release_icon" class="pe-2 mb-1"
145 style="filter: brightness(14.5); padding-inline-end: 6px;">
146 <span class="labels"> Release Date :</span>${releaseDate?string("yyyy-MM-dd")}
147 </div>
148
149
150 <div class="date_container">
151
152<#assign revisionDate = publicationArticle.getExpandoBridge().getAttribute("revisionDate")/>
153 <#assign formattedRevDate = revisionDate?string("yyyy-MM-dd")>
154
155 <#if formattedRevDate != "1888-01-01">
156
157<img height="20" src="https://scad.gov.ae/documents/d/guest/revision_icon" class="pe-2 mb-1" style="filter: brightness(14.5); padding-inline-end: 6px;">
158 <span class="labels">Revision Date:</span>
159 ${revisionDate?string("yyyy-MM-dd")}
160
161
162 </#if>
163 </li>
164
165 <#if file_upload.getSiblings()?has_content>
166 <#list file_upload.getSiblings() as cur_file_upload>
167 <a href="${cur_file_upload.getData()}" class="dl-attachment-circle mr-2">
168 <li class="list-item list-inline-item d-flex"><img height="20"
169 src="https://scad.gov.ae/o/scad-theme/images/publications/excel-svgrepo-com.svg"
170 class="d-flex mx-auto align-self-center"></li></a>
171 </#list>
172</#if>
173
174 </ul>
175 </div>
176 </div>
177</div>
178</#if>
The following has evaluated to null or missing:
==> publicationNote [in template "20098#20124#2901816" at line 66, column 39]
----
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: #assign publicationNotes = publicatio... [in template "20098#20124#2901816" at line 66, column 13]
----
1<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
2
3 <#assign catLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")
4 JournalArticleService=serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")
5 resourcePrimKey=JournalArticleService.getArticleResourcePrimKey(groupId, .vars['reserved-article-id'].data)
6 articleCatNames=catLocalService.getCategories("com.liferay.journal.model.JournalArticle", resourcePrimKey) />
7 <#assign publicationArticle = JournalArticleLocalService.getArticle(groupId, .vars["reserved-article-id"].data) />
8 <#assign IsFeatured =
9 publicationArticle.getExpandoBridge().getAttribute("IsFeatured")!false />
10 <#if IsFeatured>
11 <#list articleCatNames as category>
12 <#if category.parentCategoryId==0>
13 <#if category.getVocabularyId()==476702>
14 <#assign catId = category.categoryId />
15 <#if catId == 201>
16 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/agriculture-category-poster" />
17 <#assign badgeColor = "a2ac72" />
18 <#elseif catId == 202>
19 <#list articleCatNames as subCategory>
20 <#if subCategory.parentCategoryId == 202>
21 <#assign subCatId = subCategory.categoryId />
22 <#if subCatId == 217>
23 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
24 <#elseif subCatId == 219>
25 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/foreign-investment-pub-poster" />
26 <#elseif subCatId == 225>
27 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/GDP-poster" />
28 <#else>
29 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/economic-category-poster" />
30 </#if>
31 <#break>
32 </#if>
33 </#list>
34
35 <#assign badgeColor = "a69b87" />
36 <#elseif catId == 217>
37 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
38 <#assign badgeColor = "a69b87" />
39 <#elseif catId == 204>
40 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/hotel-establishments-pub-poster" />
41 <#assign badgeColor = "116169" />
42 <#elseif catId == 205>
43 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/labour-category-poster" />
44 <#assign badgeColor = "aacdcb" />
45 <#elseif catId == 206>
46 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/population-category-poster" />
47 <#assign badgeColor = "475865" />
48 <#elseif catId == 207>
49 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/social-category-poster" />
50 <#assign badgeColor = "6e92a8" />
51 <#else>
52 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
53 <#assign badgeColor = "116169" />
54 </#if>
55 </#if>
56 </#if>
57
58 </#list>
59
60<div class="item">
61 <div class="dl-card latest-publications-card dl-rounded d-flex flex-column align-items-start justify-content-between text-white p-3"
62 style="background: linear-gradient(transparent,#000000d4 ),url('${ImgSrc}') no-repeat center/cover;">
63 <div class="d-flex justify-content-between align-items-start w-100 row">
64 <#assign publicationNotes=publicationNote.getData()>
65 <#if publicationNotes?has_content>
66
67 <div class="button-wrapper col-2 d-inline-block p-1"><button
68 class="hover-button btn dl-share-btn mb-0" style="margin:13px"><img src="/documents/d/guest/share"
69 height="20"></button>
70 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
71 <li><a target="_blank"
72 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
73 class="icon-facebook"></i></a></li>
74 <li><a target="_blank"
75 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
76 class="icon-twitter"></i></a></li>
77 </ul>
78 </div>
79 <#assign PublicationNoteEn =
80 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteEn")!"" />
81
82<#assign PublicationNoteAr =
83 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteAr")!"" />
84
85<#assign languageId = themeDisplay.getLanguageId() />
86
87<#-- Show box ONLY if at least one note has content -->
88<#if (PublicationNoteEn?has_content) || (PublicationNoteAr?has_content)>
89
90 <div class="info-box col-10">
91 <img
92 src="https://scad.gov.ae/documents/d/guest/information-circle-svgrepo-com"
93 height="20"
94 style="margin-right: 10px;"
95 />
96
97 <span class="info-message" style="color: #002D62; font-size: 12px;">
98
99 <#if languageId?starts_with("ar") && PublicationNoteAr?has_content>
100 ${PublicationNoteAr}
101 <#elseif PublicationNoteEn?has_content>
102 ${PublicationNoteEn}
103 <#else>
104 ${PublicationNoteAr}
105 </#if>
106
107 </span>
108 </div>
109
110</#if>
111
112 <#else>
113 <div class="button-wrapper d-inline-block p-1"><button
114 class="hover-button btn dl-share-btn mb-0"><img src="/documents/d/guest/share"
115 height="20"></button>
116 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
117 <li><a target="_blank"
118 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
119 class="icon-facebook"></i></a></li>
120 <li><a target="_blank"
121 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
122 class="icon-twitter"></i></a></li>
123 </ul>
124 </div>
125 </#if>
126
127 </div>
128 <div class="w-100">
129 <h5>
130 <#if file_upload.getSiblings()?has_content>
131 <#list file_upload.getSiblings() as cur_file_upload>
132 <a class="text-white" href="${friendlyURL}">${.vars["reserved-article-title"].data}
133 </a>
134 </#list>
135 </#if>
136 </h5> <#list articleCatNames as category>
137 <#if category.parentCategoryId==0>
138 <#if category.getVocabularyId()==476702>
139 <span class="theme-category p-2 badge" style="background: #${badgeColor}">${category.name}</span></#if></#if></#list>
140 <ul class="d-flex justify-content-between align-items-end attachments-list px-0 mb-0 mt-3 w-100 list-unstyled">
141 <li class="home_date_wrapper">
142 <div class="date_container">
143 <#assign releaseDate=.vars["reserved-article-display-date"].data?date("EEE, dd MMM yyyy HH:mm:ssZ") />
144 <img height="20" src="https://scad.gov.ae/documents/d/guest/release_icon" class="pe-2 mb-1"
145 style="filter: brightness(14.5); padding-inline-end: 6px;">
146 <span class="labels"> Release Date :</span>${releaseDate?string("yyyy-MM-dd")}
147 </div>
148
149
150 <div class="date_container">
151
152<#assign revisionDate = publicationArticle.getExpandoBridge().getAttribute("revisionDate")/>
153 <#assign formattedRevDate = revisionDate?string("yyyy-MM-dd")>
154
155 <#if formattedRevDate != "1888-01-01">
156
157<img height="20" src="https://scad.gov.ae/documents/d/guest/revision_icon" class="pe-2 mb-1" style="filter: brightness(14.5); padding-inline-end: 6px;">
158 <span class="labels">Revision Date:</span>
159 ${revisionDate?string("yyyy-MM-dd")}
160
161
162 </#if>
163 </li>
164
165 <#if file_upload.getSiblings()?has_content>
166 <#list file_upload.getSiblings() as cur_file_upload>
167 <a href="${cur_file_upload.getData()}" class="dl-attachment-circle mr-2">
168 <li class="list-item list-inline-item d-flex"><img height="20"
169 src="https://scad.gov.ae/o/scad-theme/images/publications/excel-svgrepo-com.svg"
170 class="d-flex mx-auto align-self-center"></li></a>
171 </#list>
172</#if>
173
174 </ul>
175 </div>
176 </div>
177</div>
178</#if>
The following has evaluated to null or missing:
==> publicationNote [in template "20098#20124#2901816" at line 66, column 39]
----
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: #assign publicationNotes = publicatio... [in template "20098#20124#2901816" at line 66, column 13]
----
1<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
2
3 <#assign catLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")
4 JournalArticleService=serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")
5 resourcePrimKey=JournalArticleService.getArticleResourcePrimKey(groupId, .vars['reserved-article-id'].data)
6 articleCatNames=catLocalService.getCategories("com.liferay.journal.model.JournalArticle", resourcePrimKey) />
7 <#assign publicationArticle = JournalArticleLocalService.getArticle(groupId, .vars["reserved-article-id"].data) />
8 <#assign IsFeatured =
9 publicationArticle.getExpandoBridge().getAttribute("IsFeatured")!false />
10 <#if IsFeatured>
11 <#list articleCatNames as category>
12 <#if category.parentCategoryId==0>
13 <#if category.getVocabularyId()==476702>
14 <#assign catId = category.categoryId />
15 <#if catId == 201>
16 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/agriculture-category-poster" />
17 <#assign badgeColor = "a2ac72" />
18 <#elseif catId == 202>
19 <#list articleCatNames as subCategory>
20 <#if subCategory.parentCategoryId == 202>
21 <#assign subCatId = subCategory.categoryId />
22 <#if subCatId == 217>
23 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
24 <#elseif subCatId == 219>
25 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/foreign-investment-pub-poster" />
26 <#elseif subCatId == 225>
27 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/GDP-poster" />
28 <#else>
29 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/economic-category-poster" />
30 </#if>
31 <#break>
32 </#if>
33 </#list>
34
35 <#assign badgeColor = "a69b87" />
36 <#elseif catId == 217>
37 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
38 <#assign badgeColor = "a69b87" />
39 <#elseif catId == 204>
40 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/hotel-establishments-pub-poster" />
41 <#assign badgeColor = "116169" />
42 <#elseif catId == 205>
43 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/labour-category-poster" />
44 <#assign badgeColor = "aacdcb" />
45 <#elseif catId == 206>
46 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/population-category-poster" />
47 <#assign badgeColor = "475865" />
48 <#elseif catId == 207>
49 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/social-category-poster" />
50 <#assign badgeColor = "6e92a8" />
51 <#else>
52 <#assign ImgSrc = "https://scad.gov.ae/documents/d/guest/financial-statistics-pub-poster" />
53 <#assign badgeColor = "116169" />
54 </#if>
55 </#if>
56 </#if>
57
58 </#list>
59
60<div class="item">
61 <div class="dl-card latest-publications-card dl-rounded d-flex flex-column align-items-start justify-content-between text-white p-3"
62 style="background: linear-gradient(transparent,#000000d4 ),url('${ImgSrc}') no-repeat center/cover;">
63 <div class="d-flex justify-content-between align-items-start w-100 row">
64 <#assign publicationNotes=publicationNote.getData()>
65 <#if publicationNotes?has_content>
66
67 <div class="button-wrapper col-2 d-inline-block p-1"><button
68 class="hover-button btn dl-share-btn mb-0" style="margin:13px"><img src="/documents/d/guest/share"
69 height="20"></button>
70 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
71 <li><a target="_blank"
72 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
73 class="icon-facebook"></i></a></li>
74 <li><a target="_blank"
75 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
76 class="icon-twitter"></i></a></li>
77 </ul>
78 </div>
79 <#assign PublicationNoteEn =
80 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteEn")!"" />
81
82<#assign PublicationNoteAr =
83 publicationArticle.getExpandoBridge().getAttribute("PublicationNoteAr")!"" />
84
85<#assign languageId = themeDisplay.getLanguageId() />
86
87<#-- Show box ONLY if at least one note has content -->
88<#if (PublicationNoteEn?has_content) || (PublicationNoteAr?has_content)>
89
90 <div class="info-box col-10">
91 <img
92 src="https://scad.gov.ae/documents/d/guest/information-circle-svgrepo-com"
93 height="20"
94 style="margin-right: 10px;"
95 />
96
97 <span class="info-message" style="color: #002D62; font-size: 12px;">
98
99 <#if languageId?starts_with("ar") && PublicationNoteAr?has_content>
100 ${PublicationNoteAr}
101 <#elseif PublicationNoteEn?has_content>
102 ${PublicationNoteEn}
103 <#else>
104 ${PublicationNoteAr}
105 </#if>
106
107 </span>
108 </div>
109
110</#if>
111
112 <#else>
113 <div class="button-wrapper d-inline-block p-1"><button
114 class="hover-button btn dl-share-btn mb-0"><img src="/documents/d/guest/share"
115 height="20"></button>
116 <ul class="hidden-buttons hidden-sharebtns list-unstyled">
117 <li><a target="_blank"
118 href="https://www.facebook.com/sharer.php?u=${friendlyURL}"><i
119 class="icon-facebook"></i></a></li>
120 <li><a target="_blank"
121 href="https://twitter.com/intent/tweet?url=${friendlyURL}"><i
122 class="icon-twitter"></i></a></li>
123 </ul>
124 </div>
125 </#if>
126
127 </div>
128 <div class="w-100">
129 <h5>
130 <#if file_upload.getSiblings()?has_content>
131 <#list file_upload.getSiblings() as cur_file_upload>
132 <a class="text-white" href="${friendlyURL}">${.vars["reserved-article-title"].data}
133 </a>
134 </#list>
135 </#if>
136 </h5> <#list articleCatNames as category>
137 <#if category.parentCategoryId==0>
138 <#if category.getVocabularyId()==476702>
139 <span class="theme-category p-2 badge" style="background: #${badgeColor}">${category.name}</span></#if></#if></#list>
140 <ul class="d-flex justify-content-between align-items-end attachments-list px-0 mb-0 mt-3 w-100 list-unstyled">
141 <li class="home_date_wrapper">
142 <div class="date_container">
143 <#assign releaseDate=.vars["reserved-article-display-date"].data?date("EEE, dd MMM yyyy HH:mm:ssZ") />
144 <img height="20" src="https://scad.gov.ae/documents/d/guest/release_icon" class="pe-2 mb-1"
145 style="filter: brightness(14.5); padding-inline-end: 6px;">
146 <span class="labels"> Release Date :</span>${releaseDate?string("yyyy-MM-dd")}
147 </div>
148
149
150 <div class="date_container">
151
152<#assign revisionDate = publicationArticle.getExpandoBridge().getAttribute("revisionDate")/>
153 <#assign formattedRevDate = revisionDate?string("yyyy-MM-dd")>
154
155 <#if formattedRevDate != "1888-01-01">
156
157<img height="20" src="https://scad.gov.ae/documents/d/guest/revision_icon" class="pe-2 mb-1" style="filter: brightness(14.5); padding-inline-end: 6px;">
158 <span class="labels">Revision Date:</span>
159 ${revisionDate?string("yyyy-MM-dd")}
160
161
162 </#if>
163 </li>
164
165 <#if file_upload.getSiblings()?has_content>
166 <#list file_upload.getSiblings() as cur_file_upload>
167 <a href="${cur_file_upload.getData()}" class="dl-attachment-circle mr-2">
168 <li class="list-item list-inline-item d-flex"><img height="20"
169 src="https://scad.gov.ae/o/scad-theme/images/publications/excel-svgrepo-com.svg"
170 class="d-flex mx-auto align-self-center"></li></a>
171 </#list>
172</#if>
173
174 </ul>
175 </div>
176 </div>
177</div>
178</#if>
معهد التدريب الاحصائي
يوفر المعهد الدعم اللازم لنظام العمل الإحصائي في إمارة أبوظبي من خلال تطوير مهارات ومعارف العاملين في مختلف مجالات الإحصاء في المنطقة.
المركز الاعلامي
-
-
-
عرض