Weekly Statistical Supplement - RBI - Reserve Bank of India
An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy1110.getLatestArticle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy1110 object "com.rbi.journal.article.local.service.wrapper.RbiJournalArticleLocalServiceWrapper@1a4938e8"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign journalArticle = journalArtic... [in template "20099#20125#23212961" at line 23, column 9] ----
1<#assign
2 AssetEntryLocalServiceUtil=serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")
3 assetEntryLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")
4 journalArticleLocalService=serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
5 DLFileEntryLocalService=serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") />
6<#assign currDate=.now?date />
7<#assign groupId="" articleId =""/>
8<#assign currentUrl=themeDisplay.getCDNBaseURL() + themeDisplay.getURLCurrent() />
9
10<#-- Start breadcrumbs -->
11<#assign urlCurrent = themeDisplay.getURLCurrent() />
12<#assign params = urlCurrent?split("&") />
13<#if params?has_content>
14 <#list params as param>
15 <#if param?contains("viewOneArticleId")>
16 <#assign viewattr = param?split("=") />
17 <#assign articleId = viewattr[1] />
18 </#if>
19 </#list>
20</#if>
21<#assign groupId = themeDisplay.getScopeGroupId()/>
22<#if articleId?has_content && groupId?has_content && articleId != "undefined" && articleId != "null">
23 <#assign journalArticle = journalArticleLocalService.getLatestArticle(groupId, articleId)/>
24 <input type="hidden" id="activeTitle" value="${journalArticle.getTitle(locale)}">
25<#else>
26 <#if entries?has_content && currentUrl?contains("category")>
27 <#list entries as curEntry>
28 <#assign UUID=""
29 assetEntry=AssetEntryLocalServiceUtil.fetchEntry(curEntry.getClassName(),
30 curEntry.getClassPK())
31 assetTitle=assetEntry.getTitle(locale)
32 contentPublishDate=assetEntry.publishDate
33 categories=assetEntry.getCategories()
34 />
35 <#if categories?has_content>
36 <#list categories as category>
37 <#if category.getVocabularyId()==9018905>
38 <input type="hidden" id="activeTitle" value="${category.getName()}">
39 </#if>
40 </#list>
41 </#if>
42 </#list>
43 </#if>
44</#if>
45<#-- End breadcrumbs -->
46
47
48<div class="Notification-content-wrap weekly-statistical-supplement full-width dynamic-resize" tabindex="0">
49 <div class="container">
50 <div class="row">
51 <div class="col-12">
52 <div class="notifications-row-wrapper">
53 <div class="row">
54 <#if entries?has_content && currentUrl?contains("category")>
55 <#list entries as curEntry>
56 <#assign UUID=""
57 UUIDs = ""
58 fileSize=""
59 docURL=""
60 excelURL=""
61 excelFileSize=""
62 assetEntry=AssetEntryLocalServiceUtil.fetchEntry(curEntry.getClassName(), curEntry.getClassPK()) />
63 <#assign viewURL=curEntry.getViewURL()?split('?')[0] />
64 <#if assetEntry.getClassName()=="com.liferay.journal.model.JournalArticle">
65 <#assign article=assetEntry.getAssetRenderer().getArticle() id=article.getId()
66 groupId=article.getGroupId()
67 URL=article.getExpandoBridge().getAttribute("pdf-url")
68 ExcelURL=article.getExpandoBridge().getAttribute("doc-url")/>
69 <#assign content=saxReaderUtil.read(article.getContentByLocale(locale))
70 notificationId=content.valueOf("//dynamic-element[@name='Numeric68058098']/dynamic-content")
71 description=content.valueOf("//dynamic-element[@name='RichText92604564']/dynamic-content") publishDate=assetEntry.publishDate />
72 </#if>
73 <div class="col-12 ">
74 <div class="notification-row-each">
75 <div class="notification-row-each-inner">
76 <#assign pDate=dateUtil.getDate(publishDate, "yyyy-MM-dd", locale) />
77 <div class="notification-date">
78 ${dateUtil.getDate(publishDate, "dd MMM yyyy", locale)}
79 </div>
80 <#assign redirectURL="${viewURL}?&publishDateFrom="+pDate+"&publishDateTo="+pDate/>
81 <a href="${redirectURL}" class="mtm_list_item_heading">
82 <div class="notifications-heading c-tooltips position-relative">
83 <span>${assetEntry.getTitle(locale)}</span>
84 <div class="custom-tooltip">
85 <div class="tooltip-arrow-up"></div>
86 <div class="tooltip-content">
87 ${assetEntry.getSummary(locale)}
88 </div>
89 <div class="tooltip-content-hidden" style="display:none">
90 ${assetEntry.getSummary(locale)}
91 </div>
92 </div>
93 </div>
94 <div class="notifications-heading-hidden" style="display:none">
95 ${assetEntry.getTitle(locale)}
96 </div>
97 </a>
98 <div class="notifications-description-hidden" style="display:none">
99 <#if assetEntry.getSummary(locale)?has_content>
100 ${assetEntry.getSummary(locale)}
101 </#if>
102 </div>
103
104 <!--buttons-->
105 <#if URL?has_content>
106 <#list URL?keys as key>
107 <#if key==locale>
108 <#assign docURL=URL?values[key_index] />
109 </#if>
110 </#list>
111 </#if>
112 <#if ExcelURL?has_content>
113 <#list ExcelURL?keys as key>
114 <#if key==locale>
115 <#assign excelURL=ExcelURL?values[key_index] />
116 </#if>
117 </#list>
118 </#if>
119 <#if warningMessageLocale?has_content>
120 <#list warningMessageLocale?keys as key>
121 <#if key==locale>
122 <#assign warningMessage=warningMessageLocale?values[key_index] />
123 </#if>
124 </#list>
125 </#if>
126 <#if docURL?has_content>
127 <#list docURL?split("/") as sValue>
128 <#if sValue?is_last>
129 <#list sValue?split("?") as uuid>
130 <#if uuid?is_first>
131 <#assign UUID=uuid />
132 </#if>
133 </#list>
134 </#if>
135 </#list>
136 </#if>
137 <#if excelURL?has_content>
138 <#list excelURL?split("/") as sValue>
139 <#if sValue?is_last>
140 <#list sValue?split("?") as uuid>
141 <#if uuid?is_first>
142 <#assign UUIDs=uuid />
143 </#if>
144 </#list>
145 </#if>
146 </#list>
147 </#if>
148 <#if UUID?has_content>
149 <#if groupId?has_content>
150 <#attempt>
151 <#assign
152 DLFileEntry=DLFileEntryLocalService.fetchFileEntry(UUID,groupId?number)
153 fileSize=DLFileEntry.getSize()
154 fileAssetEntry=AssetEntryLocalServiceUtil.getEntry("com.liferay.document.library.kernel.model.DLFileEntry",DLFileEntry.getFileEntryId())
155 docURL=fileAssetEntry.getAssetRenderer().getURLDownload(themeDisplay) />
156 <#recover>
157 </#attempt>
158 </#if>
159 </#if>
160 <#if UUIDs?has_content>
161 <#if groupId?has_content>
162 <#attempt>
163 <#assign
164 DLFileEntry=DLFileEntryLocalService.fetchFileEntry(UUIDs,groupId?number)
165 excelFileSize=DLFileEntry.getSize()
166 fileAssetEntry=AssetEntryLocalServiceUtil.getEntry("com.liferay.document.library.kernel.model.DLFileEntry",DLFileEntry.getFileEntryId())
167 excelURL=fileAssetEntry.getAssetRenderer().getURLDownload(themeDisplay) />
168 <#recover>
169 </#attempt>
170 </#if>
171 </#if>
172 <div class="download-pdf-wrapper">
173 <div class="btn-wrap">
174 <#if docURL?? && docURL?has_content>
175 <div class="inner-wrap">
176 <a href="${docURL?split('?')[0]}" target="_blank"
177 class="matomo_download ">
178 <img src="/documents/70233/0/fileDownload.svg"
179 class="downloadFile"
180 alt="${languageUtil.get(locale,'download')}"
181 title="${languageUtil.get(locale,'download')}">
182 ${languageUtil.get(locale,'pdf')} (<span class="fileSize">${fileSize}</span> )
183 </a>
184 </div>
185 </#if>
186 <#if excelURL?? && excelURL?has_content>
187 <div class="inner-wrap">
188 <a href="${excelURL?split('?')[0]}" target="_blank"
189 class="matomo_download ">
190 <img src="/documents/70233/0/fileDownload.svg"
191 class="downloadFile"
192 alt="${languageUtil.get(locale,'download')}"
193 title="${languageUtil.get(locale,'download')}">
194 ${languageUtil.get(locale,'excel')} (<span class="fileSize">${excelFileSize}</span> )
195 </a>
196 </div>
197 </#if>
198 </div>
199 </div>
200 </div>
201 </div>
202 </div>
203 </#list>
204 </#if>
205 </div>
206 </div>
207 </div>
208 </div>
209 </div>
210</div>
211<script>
212
213 window.addEventListener("load", function () {
214 var url = window.location.href;
215 if (url.indexOf('category') == -1) {
216 $(".pagination-bar").removeClass("d-flex");
217 $(".pagination-bar").addClass("d-none");
218 $(".download-pdf").addClass("d-none");
219 }
220 });
221 function changeActiveBreadcrumb(){
222 let data = $('input#activeTitle').val();
223 $('div.rbi-breadcrumbs-wrap ol li:last-child').text(data);
224 }
225
226 $(document).ready(function () {
227 $(".fileSize").each(function () {
228 var fileSize = $(this).html()
229 if (fileSize != "") {
230 $(this).html(formatFileSize(parseInt(fileSize), 2))
231 }
232 });
233
234 function formatFileSize(bytes, decimalPoint) {
235 if (bytes == 0)
236 return '0 Bytes';
237 var k = 1024,
238 dm = decimalPoint || 2,
239 sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],
240 i = Math.floor(Math.log(bytes) / Math.log(k));
241 return (parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i]);
242 }
243
244 });
245 //when list is available then removing this class
246 $("#apply-button").removeClass("disabled");
247
248 //Please dont change these method
249 changeActiveBreadcrumb();
250</script>
Page Last Updated on: July 04, 2025