Press Releases - ربی - Reserve Bank of India
All You wanted to know from RBI about Withdrawal of Legal Tender Status of ₹ 500 and ₹ 1000 Notes
an-error-occurred-while-processing-the-template
Java method "com.sun.proxy.$Proxy236.getEntry(String, long)" threw an exception when invoked on com.sun.proxy.$Proxy236 object "com.liferay.asset.internal.service.AssetEntryAssetCategoryRelAssetEntryLocalServiceWrapper@2822c440"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: fileAssetEntry = AssetEntryLocalServi... [in template "20099#20125#21744308" at line 143, column 53] ----
1<#assign
2 AssetEntryLocalServiceUtil=serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")
3 DLFileEntryLocalService=serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") />
4<#assign currDate=.now?date />
5<div class="Notification-content-wrap full-width press-release-content-wrap all-you-know-notifications dynamic-resize" tabindex="0">
6 <div class="container">
7 <div class="row no-gutters">
8 <div class="notifications-page-header full-width">
9 <div class="row no-gutters">
10 <div class="col-10">
11 <h3 class="section-heading">${layout.getName(locale)}</h3>
12 </div>
13 <div class="col-2">
14 <div class="row-grid-view">
15 <div class="grid-view-icon-wrapper">
16 <ul>
17 <li class="row-view-icon">
18 <span class="common-icon-base-blue base-active">
19 <img src="/o/rbi-main-theme/images/rbi-main/icon-row-view.svg"
20 class="rowView" alt="Row View"
21 title="${languageUtil.get(locale,'list-view')}" />
22 </span>
23 </li>
24
25
26 <li class="grid-view-icon">
27 <span class="common-icon-base-blue">
28 <img src="/o/rbi-main-theme/images/rbi-main/icon-grid-view.svg"
29 class="gridView" alt="Grid View"
30 title="${languageUtil.get(locale,'grid-view')}" />
31 </span>
32 </li>
33
34 </ul>
35
36 </div>
37 </div>
38
39 </div>
40 </div>
41 </div>
42
43
44 <div class="col-12">
45 <div class="notifications-row-wrapper toogle-grid-row show-row-view">
46 <div class="row">
47
48 <#if entries?has_content>
49 <#list entries as curEntry>
50 <#assign UUID="" groupId="" URL="" docURL=""/>
51 <#assign assetEntry=AssetEntryLocalServiceUtil.fetchEntry(curEntry.getClassName(),
52 curEntry.getClassPK()) assetRenderer=assetEntry.getAssetRenderer() />
53 <#assign viewURL=curEntry.getViewURL()?split('?')[0] />
54
55 <#if assetEntry.getClassName()=="com.liferay.journal.model.JournalArticle">
56 <#assign article=assetRenderer.getArticle() id=article.getId()
57 groupId=article.getGroupId()
58 URL=article.getExpandoBridge().getAttribute("pdf-url") />
59 <#assign content=saxReaderUtil.read(article.getContentByLocale(locale))
60 title=content.valueOf("//dynamic-element[@name='Text10489560']/dynamic-content")
61 description=content.valueOf("//dynamic-element[@name='RichText21646948'
62 ]/dynamic-content") publishDate=article.displayDate />
63 </#if>
64 <div class="col-12 grid-view-col">
65 <div class="notification-row-each">
66 <div class="notification-row-each-inner">
67 <div class="notification-date">
68
69 <#if publishDate?has_content && publishDate??>
70 ${dateUtil.getDate(publishDate, "MMM dd, yyyy", locale)}
71 <#if currDate?string==publishDate?date?string>
72 <div class="tag-new">
73 <span>New</span>
74 </div>
75 </#if>
76 </#if>
77
78 </div>
79 <a href="${viewURL}" class="mtm_list_item_heading">
80 <div class="notifications-heading c-tooltips position-relative">
81 <span
82 class="mtm_list_item_heading truncatedContent">
83 <#if title?has_content>
84 ${title}
85 <#else>
86 ${assetEntry.getTitle(locale)}
87 </#if>
88 </span>
89 <div class="custom-tooltip">
90 <div class="tooltip-arrow-up"></div>
91 <div class="tooltip-content">${assetEntry.getSummary(locale)}
92 </div>
93 <div class="tooltip-content-hidden" style="display:none">
94 ${assetEntry.getSummary(locale)}</div>
95 </div>
96 </div>
97 <div class="notifications-heading-hidden" style="display:none">
98 <#if title?has_content>
99 ${title}
100 <#else>
101 ${assetEntry.getTitle(locale)}
102 </#if>
103 </div>
104 </a>
105
106 <div class="notifications-description">
107 <#if assetEntry.getSummary(locale)?has_content>
108 ${assetEntry.getSummary(locale)}
109 </#if>
110 </div>
111 <div class="notifications-description-hidden" style="display:none">
112 <#if assetEntry.getSummary(locale)?has_content>
113 ${assetEntry.getSummary(locale)}
114 </#if>
115 </div>
116 <!--buttons-->
117 <#if URL?has_content>
118 <#list URL?keys as key>
119 <#if key==locale>
120 <#assign docURL=URL?values[key_index] />
121 </#if>
122 <#if !docURL?has_content && key == "en_US">
123 <#assign docURL=URL?values[key_index] />
124 </#if>
125 </#list>
126 </#if>
127 <#if docURL?has_content>
128 <#list docURL?split("/") as sValue>
129 <#if sValue?is_last>
130 <#list sValue?split("?") as uuid>
131 <#if uuid?is_first>
132 <#assign UUID=uuid />
133 </#if>
134 </#list>
135 </#if>
136 </#list>
137 </#if>
138
139 <#if UUID?has_content>
140 <#assign
141 DLFileEntry=DLFileEntryLocalService.fetchFileEntry(UUID,groupId?number)
142 fileSize=DLFileEntry.getSize()
143 fileAssetEntry=AssetEntryLocalServiceUtil.getEntry("com.liferay.document.library.kernel.model.DLFileEntry",
144 DLFileEntry.getFileEntryId())
145 docURL=fileAssetEntry.getAssetRenderer().getURLDownload(themeDisplay) />
146 </#if>
147
148
149 <#if docURL?has_content>
150 <div class="btn-wrap">
151 <a href="${docURL?split('?')[0]}" target="_blank"
152 class="matomo_download">
153 <img src="/documents/70233/0/fileDownload.svg" class="downloadFile"
154 alt="${languageUtil.get(locale,'download')}"
155 title="${languageUtil.get(locale,'download')}">
156
157 PDF (<span class="fileSize">${fileSize}</span> )
158 </a>
159 </div>
160 </#if>
161 </div>
162
163 </div>
164 </div>
165 </#list>
166 </#if>
167 </div>
168 </div>
169 </div>
170 </div>
171 </div>
172</div>
173<script>
174
175 $(document).ready(function () {
176
177 $(".fileSize").each(function () {
178 var fileSize = $(this).html()
179 if (fileSize != "") {
180 $(this).html(formatFileSize(parseInt(fileSize), 2))
181 }
182 });
183
184 function formatFileSize(bytes, decimalPoint) {
185 if (bytes == 0)
186 return '0 Bytes';
187 var k = 1024,
188 dm = decimalPoint || 2,
189 sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],
190 i = Math.floor(Math.log(bytes) / Math.log(k));
191 return (parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i]);
192 }
193 });
194</script>
صفحے پر آخری اپ ڈیٹ: