View List - આરબીઆઈ - Reserve Bank of India
an-error-occurred-while-processing-the-template
The following has evaluated to null or missing: ==> DLFileEntryLocalService.fetchFileEntry(UUID,groupId?number) [in template "20099#20125#41595479" at line 115, column 65] ---- 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: DLFileEntry = DLFileEntryLocalService... [in template "20099#20125#41595479" at line 115, column 53] ----
1<#assign
2 AssetEntryLocalServiceUtil=serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")
3 AssetCategoryLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")
4 DLFileEntryLocalService=serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") />
5<#assign currDate=.now?date flag = "false"/>
6
7<input type="hidden" value="external-sector" id="banner_nav_highligher">
8
9<div class="Notification-content-wrap weekly-statistical-supplement full-width dynamic-resize" tabindex="0" gotCategory=false>
10 <div class="container">
11 <div class="row">
12 <!-- Start Caterogy section heading -->
13 <#list entries as curEntry>
14 <#assign UUID="" groupId="" URL="" docURL=""/>
15 <#assign assetEntry=AssetEntryLocalServiceUtil.fetchEntry(curEntry.getClassName(),
16 curEntry.getClassPK()) assetRenderer=assetEntry.getAssetRenderer() categories=assetEntry.getCategories()/>
17 <#if categories?has_content>
18 <#list categories as category>
19
20 <#if category.getVocabularyId() == 40017188>
21
22 <#if flag == "false">
23 <div class="col-12">
24 <h3 class="section-heading">${category.getName()}</h3>
25 </div>
26 <#assign flag = "true"/>
27 </#if>
28
29 </#if>
30
31 </#list>
32 </#if>
33 </#list>
34 <!-- End Caterogy section heading -->
35 <div class="col-12">
36 <div class="notifications-row-wrapper toogle-grid-row show-row-view">
37 <div class="row">
38 <#if entries?has_content>
39 <#list entries as curEntry>
40 <#assign UUID="" groupId="" URL="" docURL=""/>
41 <#assign assetEntry=AssetEntryLocalServiceUtil.fetchEntry(curEntry.getClassName(),
42 curEntry.getClassPK()) assetRenderer=assetEntry.getAssetRenderer() categories=assetEntry.getCategories()/>
43 <#assign viewURL=curEntry.getViewURL()?split('?')[0] />
44
45 <#if assetEntry.getClassName()=="com.liferay.journal.model.JournalArticle">
46 <#assign article=assetRenderer.getArticle() id=article.getId()
47 groupId=article.getGroupId()
48 URL=article.getExpandoBridge().getAttribute("pdf-url") />
49 <#assign content=saxReaderUtil.read(article.getContentByLocale(locale))
50 title=content.valueOf("//dynamic-element[@name='Text10061860']/dynamic-content")
51 description=content.valueOf("//dynamic-element[@name='RichText62668007'
52 ]/dynamic-content") publishDate=assetEntry.publishDate />
53 </#if>
54 <div class="col-12 grid-view-col">
55 <div class="notification-row-each">
56 <div class="notification-row-each-inner">
57 <div class="notification-date">
58 <#if publishDate?has_content && publishDate??>
59 ${dateUtil.getDate(publishDate, "MMM dd, yyyy", locale)}
60 </#if>
61 </div>
62 <a href="${viewURL}" class="mtm_list_item_heading">
63 <div class="notifications-heading c-tooltips position-relative">
64 <span
65 class="mtm_list_item_heading truncatedContent">
66 <#if title?has_content>
67 ${title} <!--${dateUtil.getDate(publishDate, "MMM dd, yyyy", locale)} -->
68 <#else>
69 ${assetEntry.getTitle(locale)} <!--${dateUtil.getDate(publishDate, "MMM dd, yyyy", locale)} -->
70 </#if>
71 </span>
72 </div>
73 <div class="notifications-heading-hidden" style="display:none">
74 <#if title?has_content>
75 ${title} ${dateUtil.getDate(publishDate, "MMM dd, yyyy", locale)}
76 <#else>
77 ${assetEntry.getTitle(locale)} ${dateUtil.getDate(publishDate, "MMM dd, yyyy", locale)}
78 </#if>
79 </div>
80 </a>
81
82 <div class="notifications-description">
83 <#if assetEntry.getSummary(locale)?has_content>
84 ${assetEntry.getSummary(locale)}
85 </#if>
86 </div>
87 <div class="notifications-description-hidden" style="display:none">
88 <#if assetEntry.getSummary(locale)?has_content>
89 ${assetEntry.getSummary(locale)}
90 </#if>
91 </div>
92 <!--buttons-->
93 <#if URL?has_content>
94 <#list URL?keys as key>
95
96 <#if key==locale>
97 <#assign docURL=URL?values[key_index] />
98 </#if>
99 </#list>
100 </#if>
101 <#if docURL?has_content>
102 <#list docURL?split("/") as sValue>
103 <#if sValue?is_last>
104 <#list sValue?split("?") as uuid>
105 <#if uuid?is_first>
106 <#assign UUID=uuid />
107 </#if>
108 </#list>
109 </#if>
110 </#list>
111 </#if>
112
113 <#if UUID?has_content>
114 <#assign
115 DLFileEntry=DLFileEntryLocalService.fetchFileEntry(UUID,groupId?number)
116 fileSize=DLFileEntry.getSize()
117 fileAssetEntry=AssetEntryLocalServiceUtil.getEntry("com.liferay.document.library.kernel.model.DLFileEntry",
118 DLFileEntry.getFileEntryId())
119 docURL=fileAssetEntry.getAssetRenderer().getURLDownload(themeDisplay) />
120 </#if>
121
122
123 <#if docURL?has_content>
124 <div class="btn-wrap" style="display: none;">
125 <a href="${docURL?split('?')[0]}" target="_blank"
126 class="matomo_download">
127 <img src="/documents/70233/0/fileDownload.svg" class="downloadFile"
128 alt="${languageUtil.get(locale,'download')}"
129 title="${languageUtil.get(locale,'download')}">
130
131 ${languageUtil.get(locale,'pdf')} (<span class="fileSize">${fileSize}</span> )
132 </a>
133 </div>
134 </#if>
135 </div>
136
137 </div>
138 </div>
139 </#list>
140 </#if>
141 </div>
142 </div>
143 </div>
144 </div>
145 </div>
146</div>
147<script>
148 $(document).ready(function () {
149 alert( ${dateUtil.getDate(publishDate, "MMM dd, yyyy", locale)})
150 $(".fileSize").each(function () {
151 var fileSize = $(this).html()
152 if (fileSize != "") {
153 $(this).html(formatFileSize(parseInt(fileSize), 2))
154 }
155 });
156
157 function formatFileSize(bytes, decimalPoint) {
158 if (bytes == 0)
159 return '0 Bytes';
160 var k = 1024,
161 dm = decimalPoint || 2,
162 sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],
163 i = Math.floor(Math.log(bytes) / Math.log(k));
164 return (parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i]);
165 }
166 });
167
168 //when list is available then removing this class
169 $("#apply-button").removeClass("disabled");
170</script>
પેજની છેલ્લી અપડેટની તારીખ: ઑગસ્ટ 21, 2024
શું આ પેજ ઉપયોગી હતું?