गवर्नरों - आरबीआई - Reserve Bank of India
गवर्नर

श्री संजय मल्होत्रा
श्री संजय मल्होत्रा, 1990 बैच के राजस्थान कैडर के भारतीय प्रशासनिक सेवा अधिकारी, ने 11 दिसंबर 2024 से अगले तीन वर्ष की अवधि के लिए भारतीय रिज़र्व बैंक के 26वें गवर्नर के रूप में कार्यभार संभाला। इस नियुक्ति से ठीक पहले, श्री मल्होत्रा भारत सरकार के वित्त मंत्रालय में राजस्व विभाग (डीओआर) के सचिव थे, उससे पहले श्री मल्होत्रा भारत सरकार के वित्त मंत्रालय में वित्तीय सेवा विभाग में सचिव के पद पर थे।
श्री मल्होत्रा के पास विद्युत, वित्त एवं कराधान, सूचना प्रौद्योगिकी आदि सहित विभिन्न प्रमुख क्षेत्रों का व्यापक एवं विविध अनुभव है तथा संयुक्त राष्ट्र एजेंसी में कार्यकाल के अलावा उन्होंने राज्य एवं केन्द्र सरकार में भी प्रमुख पदों पर कार्य किया है। वह ग्रामीण विद्युतीकरण निगम लिमिटेड के अध्यक्ष और प्रबंध निदेशक भी थे। श्री मल्होत्रा ने 16 फरवरी 2022 से 14 नवंबर 2022 तक भारतीय रिज़र्व बैंक के केंद्रीय बोर्ड में सरकार द्वारा नामित निदेशक के रूप में कार्य किया।
श्री मल्होत्रा भारतीय प्रौद्योगिकी संस्थान, कानपुर से कंप्यूटर विज्ञान और इंजीनियरिंग में स्नातक हैं तथा उन्होंने प्रिंसटन विश्वविद्यालय, अमेरिका से सार्वजनिक नीति में स्नातकोत्तर की उपाधि प्राप्त की है।
संपर्क विवरण
-
भारतीय रिज़र्व बैंक
18वीं मंजिल, केंद्रीय कार्यालय भवन, शहीद भगत सिंह मार्ग
मुंबई-400 001 -
-
22661784
-
पिछले गवर्नरों की सूची

श्री शक्तिकान्त दास
श्री शक्तिकान्त दास, आईएएस सेवानिवृत्त, पूर्व सचिव, राजस्व विभाग और आर्थिक कार्य विभाग, वित्त मंत्रालय, भारत सरकार ने 12 दिसंबर, 2018 से भारतीय रिजर्व बैंक के 25 वें गवर्नर के रूप में पदभार ग्रहण किया। अपने वर्तमान कार्यभार से ठीक पहले वे 15 वें वित्त आयोग के सदस्य और G20 शेरपा ऑफ़ इंडिया के रूप में कार्य कर रहे थे। पिछले 38 वर्षों में श्री शक्तिकान्त दास ने अभिशासन के विभिन्न क्षेत्रों में व्यापक अनुभव प्राप्त किया है। श्री दास ने केंद्र और राज्य सरकारों में वित्त, कराधान (टैक्सेशन), उद्योग, आधार-संरचना, आदि क्षेत्रों में महत्वपूर्ण पदों पर कार्य किया है। भारत सरकार के वित्त मंत्रालय में अपने लंबे कार्यकाल के दौरान, वे सीधे तौर पर 8 यूनियन बजटों की तैयारी से जुड़े थे। श्री दास ने में भारत के वैकल्पिक गवर्नर के रूप में वर्ल्ड बैंक में, एशियन डेवलपमेंट बैंक (एडीबी), न्यू डेवलपमेंट बैंक (एनडीबी) और एशियन इन्फ्रास्ट्रक्चर इन्वेस्टमेंट बैंक (एईआईआईबी) में भी काम किया है। उन्होंने अंतर्राष्ट्रीय मंचों जैसे आईएमएफ, जी 20, ब्रिक्स, सार्क आदि में भारत का प्रतिनिधित्व किया है। श्री शक्तिकान्त दास सेंट स्टीफन कॉलेज, दिल्ली विश्वविद्यालय से स्नातकोत्तर हैं।
केंद्र सरकार ने श्री शक्तिकान्त दास को गवर्नर, भारतीय रिज़र्व बैंक के रूप में दिसंबर 2021 के 10वें दिन से आगे तीन वर्ष की अवधि के लिए या अगले आदेश तक, जो भी पहले हो, के लिए पुन: नियुक्त किया है।

डॉ. ऊर्जित पटेल
डॉ ऊर्जित आर पटेल ने जनवरी 2013 से उप – गवर्नर के रूप में कार्य करने के बाद 4 सितंबर, 2016 को भारतीय रिज़र्व बैंक के चौबीसवें गवर्नर के रूप में पदभार ग्रहण किया। प्रथम तीन वर्ष के कार्यकाल के बाद 11 जनवरी 2016 को उप गवर्नर के रूप में उन्हें पुनः नियुक्त किया गया। उप गवर्नर के रूप में डॉ पटेल ने मौद्रिक नीति ढाँचे को संशोधित और मजबूत करने के लिए विशेषज्ञ समिति की अध्यक्षता की। भारत का प्रतिनिधित्व करते हुए, उन्होंने ब्रिक्स राष्ट्रों के बीच अंतर-सरकारी संधि और अंतर-केंद्रीय बैंक समझौते (आईसीबीए) पर हस्ताक्षर करने में सक्रिय रूप से भाग लिया, जिसके कारण आकस्मिक रिजर्व व्यवस्था (सीआरएए), स्थापित हुई जो इन देशों के केंद्रीय बैंकों के बीच एक स्वैप लाइन का ढाँचा है।
डॉ पटेल ने अंतर्राष्ट्रीय मुद्रा कोष (आईएमएफ) में भी काम किया है। 1996-1997 के दौरान वे आईएमएफ से रिजर्व बैंक में प्रतिनियुक्ति पर थे, और उस क्षमता में उन्होंने ऋण बाजार के विकास, बैंकिंग क्षेत्र में सुधार, पेंशन फंड सुधार और विदेशी मुद्रा बाजार के विकास पर सुझाव दिए। वे 1998 से 2001 तक भारत सरकार के वित्त मंत्रालय (आर्थिक कार्य विभाग) के सलाहकार थे। उन्होंने सार्वजनिक और निजी क्षेत्रों में अन्य कार्य भी किए हैं।
डॉ पटेल ने कई केंद्रीय और राज्य सरकार के उच्च स्तरीय समितियों के साथ मिलकर काम किया है, जिसमें प्रत्यक्ष कर (केलकर समिति) पर कार्य बल, सिविल और रक्षा सेवा पेंशन प्रणाली की समीक्षा के लिए उच्च स्तरीय विशेषज्ञ समूह, बुनियादी ढाँचे पर प्रधान मंत्री कार्य दल, टेलीकॉम मामलों पर मंत्रियों के समूह, नागरिक उड्डयन सुधार समिति और राज्य बिजली बोर्डों पर विद्युत विशेषज्ञ समूह शामिल हैं।
डॉ पटेल के नाम भारतीय मैक्रोइकॉनॉमिक्स, मौद्रिक नीति, लोक वित्त, भारतीय वित्तीय क्षेत्र, अंतरराष्ट्रीय व्यापार और नियामक अर्थशास्त्र के क्षेत्रों में कई प्रकाशन हैं।।
डॉ पटेल ने येल विश्वविद्यालय से अर्थशास्त्र में पीएचडी, यूनिवर्सिटी ऑफ ऑक्सफोर्ड से एम फिल और लंदन विश्वविद्यालय से बी.एससी की है।

डॉ. रघुराम राजन
डॉ. रघुराम राजन ने 4 सितंबर, 2013 को भारतीय रिज़र्व बैंक के 23 वें गवर्नर के रूप में पदभार ग्रहण किया। इससे पहले, वे वित्त मंत्रालय, भारत सरकार के मुख्य आर्थिक सलाहकार और शिकागो विश्वविद्यालय के बूथ स्कूल में वित्त के एरिक जे ग्लेशियर डिस्टिंग्विश्ड सर्विस प्रोफेसर थे। 2003 और 2006 के बीच, डॉ. राजन अंतर्राष्ट्रीय मुद्रा कोष में मुख्य अर्थशास्त्री और अनुसंधान निदेशक थे।
डॉ. राजन की अनुसंधान रुचियां बैंकिंग, कॉर्पोरेट वित्त और आर्थिक विकास में हैं, विशेषत: इसमें वित्त की भूमिका में। उन्होंने 2003 में लुइगी ज़िंगेल्स के साथ सेविंग कैपिटलिज्म फ्रॉम कैपिटलिस्ट्स का सह-लेखन किया है। उन्होंने इसके बाद फॉल्ट लाइन्स: हाउ हिडन फ्रैक्चर्स स्टिल थ्रेटेन द वर्ल्ड इकोनॉमी लिखा, जिसके लिए उन्हें 2010 में सर्वोत्तम कारोबारी पुस्तक (बेस्ट बिजनेस बुक) के लिए फाइनेंशियल टाइम्स-गोल्डमैन जाक्स पुरस्कार से सम्मानित किया गया।
डॉ. राजन ग्रूप ऑफ़ थर्टी के सदस्य हैं। वह 2011 में अमेरिकन फाइनेंस एसोसिएशन के अध्यक्ष थे और अमेरिकन एकेडमी ऑफ आर्ट्स एंड साइंसेज के सदस्य हैं। जनवरी 2003 में, अमेरिकन फाइनेंस एसोसिएशन ने डॉ. राजन को 40 वर्ष से कम आयु के सर्वश्रेष्ठ वित्त शोधकर्ता के लिए उद्घाटन फिशर ब्लैक पुरस्कार से सम्मानित किया। उन्हें जो अन्य पुरस्कार मिले हैं, उनमें 2011 में नैसकॉम का वैश्विक भारतीय अवार्ड, 2012 में आर्थिक विज्ञान के लिए इन्फोसिस पुरस्कार, और 2013 में वित्तीय अर्थशास्त्र के लिए सेंटर फॉर फाइनैंशियल स्टडीज़-ड्यूश बैंक प्राइज़ शामिल है।
डॉ. राजन का जन्म 3 फरवरी, 1963 को हुआ, उनकी पत्नी का नाम राधिका है और उनके दो बच्चे हैं।

डॉ. डी. सुब्बाराव
डॉ डी सुब्बाराव ने 5 सितंबर, 2008 को भारतीय रिज़र्व बैंक के 22 वें गवर्नर के रूप में पदभार संभाला। डॉ सुब्बाराव को तीन साल के कार्यकाल के लिए नियुक्त किए गए। इस नियुक्ति से पहले, डॉ सुब्बाराव भारत सरकार के वित्त मंत्रालय में वित्त सचिव थे
डॉ सुब्बाराव इससे पहले प्रधान मंत्री आर्थिक सलाहकार परिषद के सचिव (2005-2007), विश्व बैंक में प्रमुख अर्थशास्त्री (1999-2004), आंध्र प्रदेश सरकार के वित्त सचिव (1993-98) और आर्थिक कार्य विभाग, वित्त मंत्रालय, भारत सरकार में संयुक्त सचिव रह चुके हैं(1988-1993)।
डॉ सुब्बाराव को लोक वित्त का काफ़ी अनुभव है। विश्व बैंक में, उन्होंने अफ्रीका और पूर्वी एशिया के देशों में लोक वित्त के मुद्दों पर काम किया। उन्होंने चीन, इंडोनेशिया, वियतनाम, फिलीपींस और कंबोडिया सहित पूर्वी एशिया के प्रमुख देशों में विकेंद्रीकरण पर एक प्रमुख अध्ययन किया। डॉ सुब्बाराव राज्य स्तर पर राजकोषीय सुधार की शुरुआत में भी शामिल थे। डॉ। सुब्बाराव ने लोक वित्त, विकेंद्रीकरण और सुधारों की राजनीतिक अर्थव्यवस्था से जुड़े मुद्दों पर विस्तार से लिखा है।
11 अगस्त 1949 को जन्मे डॉ सुब्बाराव ने भारतीय प्रौद्योगिकी संस्थान, खड़गपुर से भौतिक विज्ञान में बीएससी (ऑनर्स) और भारतीय प्रौद्योगिकी संस्थान, कानपुर से भौतिकी में एम.एससी की डिग्री हासिल की है। डॉ सुब्बाराव ओहियो स्टेट यूनिवर्सिटी से अर्थशास्त्र में एमएस की डिग्री भी रखते हैं। 1982-83 में एमआईटी में हम्फ्री फेलो थे। उन्होंने अर्थशास्त्र में पीएचडी की है और उनकी थीसिस उप-राष्ट्रीय स्तर पर राजकोषीय सुधार पर है। डॉ सुब्बाराव 1972 में भारतीय प्रशासनिक सेवा और भारतीय विदेश सेवाओं में प्रवेश के लिए अखिल भारतीय सिविल सेवा परीक्षा में टॉपर थे। वह सिविल सेवा में शामिल होने वाले पहले आईआईटीयन्स में से थे।

डॉ. वाइ.वी. रेड्डी
इक्कीसवें गवर्नर डॉ यागा वेणुगोपाल रेड्डी, भारतीय प्रशासनिक सेवा के सदस्य हैं। उन्होंने अपने कैरीयर का अधिकांश समय वित्त और योजना के क्षेत्रों में बिताया है। उन्होंने वित्त मंत्रालय में सचिव (बैंकिंग), अतिरिक्त सचिव, वाणिज्य मंत्रालय, भारत सरकार में वित्त मंत्रालय में संयुक्त सचिव, आंध्र प्रदेश सरकार के प्रधान सचिव, और रिज़र्व बैंक के उप-राज्यपाल के रूप में छः वर्ष का कार्यकाल पूरा किया। राज्यपाल के रूप में अपनी नियुक्ति से पहले, डॉ रेड्डी अंतर्राष्ट्रीय मुद्रा कोष के बोर्ड में भारत के कार्यकारी निदेशक थे। डॉ रेड्डी ने वित्तीय क्षेत्र के सुधारों; वित्त व्यापार; भुगतान संतुलन और विदेशी मुद्रा दर की निगरानी; बाहरी वाणिज्यिक उधार; केंद्र-राज्य वित्तीय संबंध; क्षेत्रीय योजना; और सार्वजनिक उद्यम सुधार के क्षेत्रों में महत्वपूर्ण नीतिगत योगदान दिया है और संस्थाओं के निर्माण में करीब से जुड़े रहे हैं। उनके नाम कई पुस्तकें हैं जो मुख्यत: वित्त, योजना और सार्वजनिक उद्यमों से संबंधित हैं। |
The following has evaluated to null or missing: ==> speakerCategoryId [in template "20099#20125#104631168" at line 43, column 226] ---- 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: #if category.getCategoryId() == speak... [in template "20099#20125#104631168" at line 43, column 193] ----
1<#assign
2 assetEntryLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")
3 dLFileEntryLocalService=serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")
4 assetVocabularyLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")
5 assetCategoryLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") />
6<#assign UUID="" groupId="" fileSize="" docURL="" FID=""/>
7<#assign index= 0 />
8<#assign currDate=.now?date />
9<#assign contentCategoryId = 8508119 />
10<#assign speakerVocabularyId = 45696473 />
11<#assign plId = layout.getPlid()>
12<#assign layoutEntry = assetEntryLocalService.fetchEntry("com.liferay.portal.kernel.model.Layout", plId) />
13<#assign assetCategories = layoutEntry.getCategories()/>
14 <#list assetCategories as assetCategory>
15 <#if assetCategory.getVocabularyId() == speakerVocabularyId >
16 <#assign speakerCategoryId = assetCategory.getCategoryId()/>
17 </#if>
18 </#list>
19<#assign count = 0 />
20<#if entries?has_content>
21<div class="Notification-content-wrap full-width governor-page-related-links dynamic-resize" tabindex="0">
22 <div class="container">
23 <div class="row no-gutters">
24 <div class="col-10" id="title-heading">
25 <h3 class="section-blcok-heading">${languageUtil.get(locale, "speeches")} </h3>
26 </div>
27 <div class="col-12">
28 <div class="notifications-row-wrapper toogle-grid-row show-row-view">
29 <div class="row">
30 <#list entries as curEntry>
31
32 <#if curEntry.getClassName()== "com.liferay.journal.model.JournalArticle">
33 <#assign assetRenderer=curEntry.getAssetRenderer()
34 article=assetRenderer.getArticle()
35 journalArticle=assetRenderer.getAssetObject()
36 resourceKey = journalArticle.getResourcePrimKey()
37 categories = assetCategoryLocalService.getCategories(curEntry.getClassName(),resourceKey?number) />
38 <#list categories as category>
39
40 <#if category.getCategoryId()== contentCategoryId >
41 <#list categories as category>
42
43 <#if category.getCategoryId() == speakerCategoryId >
44 <#assign article=assetRenderer.getArticle()
45 URL=article.getExpandoBridge().getAttribute("pdf-url")
46 groupId=article.getGroupId()
47 content=saxReaderUtil.read(assetRenderer.getArticle().getContentByLocale(locale))
48 displayDate=article.getDisplayDate()
49 publishDate=curEntry.publishDate
50 speaker=content.valueOf("//dynamic-element[@name='Text48856133']/dynamic-content")
51 designation=content.valueOf("//dynamic-element[@name='Text01027456']/dynamic-content")
52 videoLink=content.valueOf("//dynamic-element[@name='Field62975852']/dynamic-content")
53 viewURL=assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse,
54 curEntry) viewURL=assetRenderer.getURLViewInContext(renderRequest, renderResponse,
55 viewURL) index=index+1 />
56 <#assign count=count + 1 />
57 <#if count gt 5>
58 <#break>
59 </#if>
60 <#if index gt 5>
61 <div class=" col-12 toggle-content-each grid-view-col d-none">
62 <#else>
63 <div class="col-12 toggle-content-each grid-view-col">
64 </#if>
65 <div class="notification-row-each">
66 <div class="notification-row-each-inner">
67 <div class="notification-date">
68 <#if displayDate?has_content>
69 ${dateUtil.getDate(publishDate, "MMM dd, yyyy", locale)}
70 <#if publishDate?has_content>
71 <#if currDate?string==publishDate?date?string>
72 <div class="tag-new tag-date"><span>New</span></div>
73 </#if>
74 </#if>
75 </#if>
76 </div>
77 <a href="${viewURL}" class="mtm_list_item_heading">
78 <div class="covid19-result-heading c-tooltips position-relative">
79 <span class="mtm_list_item_heading textTruncate governor-page-title">
80 ${curEntry.getTitle(locale)} </span>
81 <div class="custom-tooltip covid19-tooltip">
82 <div class="tooltip-arrow-up"></div>
83 <div class="tooltip-content covid19-content">
84 ${curEntry.getSummary(locale)}
85 </div>
86 </div>
87 </div>
88 </a>
89 <div class="speaker-content font-resized">
90 <#if speaker?has_content>${speaker}, </#if>
91 <#if designation?has_content>${designation} </#if>
92 </div>
93 <#if URL?has_content>
94 <#list URL?keys as key>
95 <#if key==locale>
96 <#assign docURL=URL?values[key_index] />
97 </#if>
98 </#list>
99 </#if>
100
101 <#if docURL?has_content>
102
103 <#if docURL?contains("fileEntryId")>
104
105 <#list docURL?split("?") as sValue>
106 <#if sValue?is_last>
107
108 <#list sValue?split("=") as fid>
109
110 <#if fid?is_last>
111
112 <#assign FID=fid />
113 </#if>
114 </#list>
115 </#if>
116 </#list>
117
118
119 <#else>
120
121 <#list docURL?split("/") as sValue>
122 <#if sValue?is_last>
123 <#list sValue?split("?") as uuid>
124 <#if uuid?is_first>
125 <#assign UUID=uuid />
126 </#if>
127 </#list>
128 </#if>
129 </#list>
130 </#if>
131 </#if>
132 <#if UUID?has_content || FID?has_content>
133
134
135 <#attempt>
136
137 <#if FID?has_content>
138 <#assign dlFileEntry=dLFileEntryLocalService.fetchDLFileEntry(FID?number) />
139 <#else>
140 <#assign dlFileEntry=dLFileEntryLocalService.fetchFileEntry(UUID,groupId?number)
141 fileAssetEntry=assetEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry",
142 dlFileEntry.getFileEntryId())/>
143 </#if>
144 <#assign fileSize=dlFileEntry.getSize()/>
145
146 <#if UUID?has_content>
147 <#assign docURL=fileAssetEntry.getAssetRenderer().getURLDownload(themeDisplay)/>
148 <#assign docURL=docURL?replace("/"+UUID,"") />
149 </#if>
150 <#recover>
151 </#attempt>
152 </#if>
153
154
155
156
157 <div class="btn-wrap">
158 <#if docURL?has_content && docURL!="">
159 <div class="inner-wrap">
160 <a href="${docURL?split('?')[0]}" target="_blank"
161 class="matomo_download ">
162 <img src="/documents/70233/0/fileDownload.svg"
163 class="downloadFile" alt="Download File"
164 title="Download File">
165 ${languageUtil.get(locale, "pdf")} (<span class="fileSizeSpeeches">${fileSize}</span>)
166 </a>
167 </div>
168
169 </#if>
170
171 <#if videoLink?has_content && videoLink!="">
172 <div class="inner-wrap yt-link-wrap">
173 <a href="javascript:void(0)"
174 data-toggle="modal"
175 data-target="#videoPopUpYT-${curEntry?counter}">
176 <img src="/documents/20125/67624/icon-youtube.svg"
177 class="downloadFile mtm_yt"
178 alt="${languageUtil.get(locale,'youtube')}"
179 title="${languageUtil.get(locale,'youtube')}">
180 <span
181 class="mtm_yt">${languageUtil.get(locale,'youtube')}</span>
182 </a>
183 </div>
184 </#if>
185 </div>
186 </div>
187 </div>
188 </div>
189 </#if>
190 </#list>
191 </#if>
192 </#list>
193 </#if>
194 </#list>
195
196 <#if index gt 5>
197 <div class="col-12 ">
198 <div class="view-all-wrap toggle-view-content">
199 <a href=" ${themeDisplay.getURLPortal()}/web/rbi/speeches?speaker=${speakerCategoryId}" role="button"
200 class=" link-view-more link-animation-hover">
201 <span class="txtToggle"> ${languageUtil.get(locale, "view-more")} </span>
202 <span>
203 <img class="down-arrow" src="/documents/20125/67624/icon+feather-down.svg"
204 alt="view more" title="view more">
205 </span>
206 </a>
207
208 </div>
209 </div>
210 </#if>
211 </div>
212 </div>
213 </div>
214 </div>
215 </div>
216 </div>
217 </#if>
218
219 <input type="hidden" id="speechesIndex" value="${index}">
220
221<script>
222 $(document).ready(function () {
223 $(".youtube-video-popup #yt-player").each(function () {
224 let newYoutubeLink = $(this).find("#iframe-yt").attr("data-src");
225 if (newYoutubeLink.includes("youtube.com")) {
226 if (newYoutubeLink.includes('?')) {
227 if (newYoutubeLink.includes('/live/')) {
228 if (newYoutubeLink.includes('www')) {
229 newYoutubeLink = newYoutubeLink.replace('youtube.com/live/', 'youtube.com/embed/')
230 }
231 else {
232 newYoutubeLink = newYoutubeLink.replace('youtube.com/live/', 'www.youtube.com/embed/')
233 }
234 }
235 if (!newYoutubeLink.includes('?enablejsapi=1')) {
236 newYoutubeLink = newYoutubeLink + '&enablejsapi=1'
237 }
238 }
239 else {
240 if (newYoutubeLink.includes('/live/')) {
241 if (newYoutubeLink.includes('www')) {
242 newYoutubeLink = newYoutubeLink.replace('youtube.com/live/', 'youtube.com/embed/')
243 }
244 else {
245 newYoutubeLink = newYoutubeLink.replace('youtube.com/live/', 'www.youtube.com/embed/')
246 }
247 }
248 newYoutubeLink = newYoutubeLink + '?enablejsapi=1';
249 }
250 $(this).find("#iframe-yt").attr("data-src", newYoutubeLink);
251 }
252 else if (newYoutubeLink.includes("youtu.be")) {
253 newYoutubeLink = newYoutubeLink.replace("youtu.be", "www.youtube.com/embed");
254 if (newYoutubeLink.includes('?')) {
255 if (!newYoutubeLink.includes('?enablejsapi=1')) {
256 newYoutubeLink = newYoutubeLink + '&enablejsapi=1'
257 }
258 }
259 else {
260 newYoutubeLink = newYoutubeLink + '?enablejsapi=1';
261 }
262 $(this).find("#iframe-yt").attr("data-src", newYoutubeLink);
263 return;
264 } else if (newYoutubeLink.includes("watch?v=")) {
265 newYoutubeLink = newYoutubeLink.replace("watch?v=", "embed/");
266 if (newYoutubeLink.includes('?')) {
267 if (!newYoutubeLink.includes('?enablejsapi=1')) {
268 newYoutubeLink = newYoutubeLink + '&enablejsapi=1'
269 }
270 }
271 else {
272 newYoutubeLink = newYoutubeLink + '?enablejsapi=1';
273 }
274 $(this).find("#iframe-yt").attr("data-src", newYoutubeLink);
275 return;
276 }
277 });
278 $(".fileSizeSpeeches").each(function () {
279 var fileSizeSpeeches = $(this).html()
280 if (fileSizeSpeeches != "") {
281 $(this).html(formatFileSizeSpeeches(parseInt(fileSizeSpeeches), 2))
282 }
283 });
284
285 function formatFileSizeSpeeches(bytes, decimalPoint) {
286 if (bytes == 0)
287 return '0 Bytes';
288 var k = 1024,
289 dm = decimalPoint || 2,
290 sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],
291 i = Math.floor(Math.log(bytes) / Math.log(k));
292 return (parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i]);
293 }
294 });
295
296</script>
The following has evaluated to null or missing: ==> speakerCategoryId [in template "20099#20125#104631164" at line 40, column 226] ---- 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: #if category.getCategoryId() == speak... [in template "20099#20125#104631164" at line 40, column 193] ----
1<#assign
2 assetEntryLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")
3 dLFileEntryLocalService=serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")
4 assetVocabularyLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")
5 assetCategoryLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") />
6<#assign UUID="" groupId="" fileSize="" docURL="" FID=""/>
7<#assign indexInteractions= 0 />
8<#assign currDate=.now?date />
9<#assign contentCategoryId = 8508122 />
10<#assign speakerVocabularyId = 45696473 />
11<#assign plId = layout.getPlid()>
12<#assign layoutEntry = assetEntryLocalService.fetchEntry("com.liferay.portal.kernel.model.Layout", plId) />
13<#assign assetCategories = layoutEntry.getCategories()/>
14 <#list assetCategories as assetCategory>
15 <#if assetCategory.getVocabularyId() == speakerVocabularyId >
16 <#assign speakerCategoryId = assetCategory.getCategoryId()/>
17 </#if>
18 </#list>
19<#assign count = 0 />
20<#if entries?has_content>
21<div class="Notification-content-wrap full-width governor-page-related-links dynamic-resize" tabindex="0">
22 <div class="container">
23 <div class="row no-gutters">
24 <div class="col-10" id="title-interaction">
25 <h3 class="section-blcok-heading">${languageUtil.get(locale, "interviews")}</h3>
26 </div>
27 <div class="col-12">
28 <div class="notifications-row-wrapper toogle-grid-row show-row-view">
29 <div class="row">
30 <#list entries as curEntry>
31 <#if curEntry.getClassName()== "com.liferay.journal.model.JournalArticle">
32 <#assign assetRenderer=curEntry.getAssetRenderer()
33 article=assetRenderer.getArticle()
34 journalArticle=assetRenderer.getAssetObject()
35 resourceKey = journalArticle.getResourcePrimKey()
36 categories = assetCategoryLocalService.getCategories(curEntry.getClassName(),resourceKey?number) />
37 <#list categories as category>
38 <#if category.getCategoryId()== contentCategoryId >
39 <#list categories as category>
40 <#if category.getCategoryId() == speakerCategoryId >
41 <#assign article=assetRenderer.getArticle()
42 URL=article.getExpandoBridge().getAttribute("pdf-url")
43 groupId=article.getGroupId()
44 content=saxReaderUtil.read(assetRenderer.getArticle().getContentByLocale(locale))
45 displayDate=article.getDisplayDate()
46 publishDate=curEntry.publishDate
47 speaker=content.valueOf("//dynamic-element[@name='Text48856133']/dynamic-content")
48 designation=content.valueOf("//dynamic-element[@name='Text01027456']/dynamic-content")
49 viewURL=assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse,
50 curEntry) viewURL=assetRenderer.getURLViewInContext(renderRequest, renderResponse,
51 viewURL) indexInteractions=indexInteractions+1 />
52 <#assign count=count + 1 />
53 <#if count gt 5>
54 <#break>
55 </#if>
56 <#if indexInteractions gt 5>
57 <div class=" col-12 toggle-content-each grid-view-col d-none">
58 <#else>
59 <div class="col-12 toggle-content-each grid-view-col">
60 </#if>
61 <div class="notification-row-each">
62 <div class="notification-row-each-inner">
63 <div class="notification-date">
64 <#if displayDate?has_content>
65 ${dateUtil.getDate(publishDate, "MMM dd, yyyy", locale)}
66 <#if publishDate?has_content>
67 <#if currDate?string==publishDate?date?string>
68 <div class="tag-new tag-date"><span>New</span></div>
69 </#if>
70 </#if>
71 </#if>
72 </div>
73 <a href="${viewURL}" class="mtm_list_item_heading">
74 <div class="covid19-result-heading c-tooltips position-relative">
75 <span class="mtm_list_item_heading textTruncate governor-page-title">
76 ${curEntry.getTitle(locale)} </span>
77 <div class="custom-tooltip covid19-tooltip">
78 <div class="tooltip-arrow-up"></div>
79 <div class="tooltip-content covid19-content">
80 ${curEntry.getSummary(locale)}
81 </div>
82 </div>
83 </div>
84 </a>
85 <div class="speaker-content font-resized">
86 <#if speaker?has_content>${speaker}, </#if>
87 <#if designation?has_content>${designation} </#if>
88 </div>
89 <#if URL?has_content>
90 <#list URL?keys as key>
91 <#if key==locale>
92 <#assign docURL=URL?values[key_index] />
93 </#if>
94 </#list>
95 </#if>
96
97
98 <#if docURL?has_content>
99
100 <#if docURL?contains("fileEntryId")>
101
102 <#list docURL?split("?") as sValue>
103 <#if sValue?is_last>
104
105 <#list sValue?split("=") as fid>
106
107 <#if fid?is_last>
108
109 <#assign FID=fid />
110 </#if>
111 </#list>
112 </#if>
113 </#list>
114
115
116 <#else>
117
118 <#list docURL?split("/") as sValue>
119 <#if sValue?is_last>
120 <#list sValue?split("?") as uuid>
121 <#if uuid?is_first>
122 <#assign UUID=uuid />
123 </#if>
124 </#list>
125 </#if>
126 </#list>
127 </#if>
128 </#if>
129
130
131
132 <#if UUID?has_content || FID?has_content>
133
134
135
136
137 <#if FID?has_content>
138 <#assign dlFileEntry=dLFileEntryLocalService.fetchDLFileEntry(FID?number) />
139 <#else>
140 <#assign dlFileEntry=dLFileEntryLocalService.fetchFileEntry(UUID,groupId?number)
141 fileAssetEntry=assetEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry",
142 dlFileEntry.getFileEntryId())/>
143 </#if>
144 <#assign fileSize=dlFileEntry.getSize()/>
145
146 <#if UUID?has_content>
147 <#assign docURL=fileAssetEntry.getAssetRenderer().getURLDownload(themeDisplay)/>
148
149 </#if>
150
151 </#if>
152
153 <div class="btn-wrap">
154 <#if docURL?? && docURL?has_content>
155 <div class="inner-wrap">
156
157 <a href="${docURL?split('?')[0]}" target="_blank"
158 class="matomo_download ">
159 <img src="/documents/70233/0/fileDownload.svg"
160 class="downloadFile" alt="Download File"
161 title="Download File">
162 ${languageUtil.get(locale, "pdf")} (<span class="fileSizeInteractions">${fileSize}</span>)
163 </a>
164 </div>
165 </#if>
166
167 <#if videoLink?has_content>
168 <div class="inner-wrap yt-link-wrap">
169 <a href="javascript:void(0)"
170 data-toggle="modal"
171 data-target="#videoPopUpYT-${curEntry?counter}">
172 <img src="/documents/20125/67624/icon-youtube.svg"
173 class="downloadFile mtm_yt"
174 alt="${languageUtil.get(locale,'youtube')}"
175 title="${languageUtil.get(locale,'youtube')}">
176 <span
177 class="mtm_yt">${languageUtil.get(locale,'youtube')}</span>
178 </a>
179
180 </div>
181 </#if>
182
183
184 </div>
185
186
187 </div>
188 </div>
189 </div>
190 </#if>
191 </#list>
192 </#if>
193 </#list>
194 </#if>
195 </#list>
196
197 <#if indexInteractions gt 5>
198 <div class="col-12 ">
199 <div class="view-all-wrap toggle-view-content">
200 <a href=" ${themeDisplay.getURLPortal()}/web/rbi/interviews?interviewees=${speakerCategoryId}" role="button"
201 class=" link-view-more link-animation-hover">
202 <span class="txtToggle">${languageUtil.get(locale, "view-more")}</span>
203 <span>
204 <img class="down-arrow" src="/documents/20125/67624/icon+feather-down.svg"
205 alt="view more" title="view more">
206 </span>
207 </a>
208
209 </div>
210 </div>
211 </#if>
212
213 </div>
214 </div>
215 </div>
216 </div>
217 </div>
218 </div>
219 </#if>
220
221 <input type="hidden" id="indexInteractions" value="${indexInteractions}">
222
223<script>
224 $(document).ready(function () {
225 $(".youtube-video-popup #yt-player").each(function () {
226 let newYoutubeLink = $(this).find("#iframe-yt").attr("data-src");
227 if (newYoutubeLink.includes("youtube.com")) {
228 if (newYoutubeLink.includes('?')) {
229 if (newYoutubeLink.includes('/live/')) {
230 if (newYoutubeLink.includes('www')) {
231 newYoutubeLink = newYoutubeLink.replace('youtube.com/live/', 'youtube.com/embed/')
232 }
233 else {
234 newYoutubeLink = newYoutubeLink.replace('youtube.com/live/', 'www.youtube.com/embed/')
235 }
236 }
237 if (!newYoutubeLink.includes('?enablejsapi=1')) {
238 newYoutubeLink = newYoutubeLink + '&enablejsapi=1'
239 }
240 }
241 else {
242 if (newYoutubeLink.includes('/live/')) {
243 if (newYoutubeLink.includes('www')) {
244 newYoutubeLink = newYoutubeLink.replace('youtube.com/live/', 'youtube.com/embed/')
245 }
246 else {
247 newYoutubeLink = newYoutubeLink.replace('youtube.com/live/', 'www.youtube.com/embed/')
248 }
249 }
250 newYoutubeLink = newYoutubeLink + '?enablejsapi=1';
251 }
252 $(this).find("#iframe-yt").attr("data-src", newYoutubeLink);
253 }
254 else if (newYoutubeLink.includes("youtu.be")) {
255 newYoutubeLink = newYoutubeLink.replace("youtu.be", "www.youtube.com/embed");
256 if (newYoutubeLink.includes('?')) {
257 if (!newYoutubeLink.includes('?enablejsapi=1')) {
258 newYoutubeLink = newYoutubeLink + '&enablejsapi=1'
259 }
260 }
261 else {
262 newYoutubeLink = newYoutubeLink + '?enablejsapi=1';
263 }
264 $(this).find("#iframe-yt").attr("data-src", newYoutubeLink);
265 return;
266 } else if (newYoutubeLink.includes("watch?v=")) {
267 newYoutubeLink = newYoutubeLink.replace("watch?v=", "embed/");
268 if (newYoutubeLink.includes('?')) {
269 if (!newYoutubeLink.includes('?enablejsapi=1')) {
270 newYoutubeLink = newYoutubeLink + '&enablejsapi=1'
271 }
272 }
273 else {
274 newYoutubeLink = newYoutubeLink + '?enablejsapi=1';
275 }
276 $(this).find("#iframe-yt").attr("data-src", newYoutubeLink);
277 return;
278 }
279 });
280 $(".fileSizeInteractions").each(function () {
281 var fileSizeInteractions = $(this).html()
282 if (fileSizeInteractions != "") {
283 $(this).html(formatFileSizeInteractions(parseInt(fileSizeInteractions), 2))
284 }
285 });
286
287 function formatFileSizeInteractions(bytes, decimalPoint) {
288 if (bytes == 0)
289 return '0 Bytes';
290 var k = 1024,
291 dm = decimalPoint || 2,
292 sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],
293 i = Math.floor(Math.log(bytes) / Math.log(k));
294 return (parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i]);
295 }
296 });
297
298</script>
The following has evaluated to null or missing: ==> speakerCategoryId [in template "20099#20125#104631160" at line 37, column 226] ---- 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: #if category.getCategoryId() == speak... [in template "20099#20125#104631160" at line 37, column 193] ----
1<#assign
2 assetEntryLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")
3 dLFileEntryLocalService=serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")
4 assetVocabularyLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")
5 assetCategoryLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") />
6<#assign UUID="" groupId="" fileSize="" docURL="" docURL="" FID="" />
7<#assign indexKeyReleases= 0 />
8<#assign currDate=.now?date />
9<#assign speakerVocabularyId = 45696473 />
10<#assign plId = layout.getPlid()>
11<#assign layoutEntry = assetEntryLocalService.fetchEntry("com.liferay.portal.kernel.model.Layout", plId) />
12<#assign assetCategories = layoutEntry.getCategories()/>
13 <#list assetCategories as assetCategory>
14 <#if assetCategory.getVocabularyId() == speakerVocabularyId >
15 <#assign speakerCategoryId = assetCategory.getCategoryId()/>
16 </#if>
17 </#list>
18<#assign count = 0 />
19<#if entries?has_content>
20<div class="Notification-content-wrap full-width governor-page-related-links dynamic-resize" tabindex="0">
21 <div class="container">
22 <div class="row no-gutters">
23 <div class="col-10" id = "title-keyreleases">
24 <h3 class="section-blcok-heading">${languageUtil.get(locale, "Key-Releases")}</h3>
25 </div>
26 <div class="col-12">
27 <div class="notifications-row-wrapper toogle-grid-row show-row-view">
28 <div class="row">
29 <#list entries as curEntry>
30 <#if curEntry.getClassName()== "com.liferay.journal.model.JournalArticle">
31 <#assign assetRenderer=curEntry.getAssetRenderer()
32 article=assetRenderer.getArticle()
33 journalArticle=assetRenderer.getAssetObject()
34 resourceKey = journalArticle.getResourcePrimKey()
35 categories = assetCategoryLocalService.getCategories(curEntry.getClassName(),resourceKey?number) />
36 <#list categories as category>
37 <#if category.getCategoryId() == speakerCategoryId >
38 <#assign article=assetRenderer.getArticle()
39 URL=article.getExpandoBridge().getAttribute("pdf-url")
40 groupId=article.getGroupId()
41 content=saxReaderUtil.read(assetRenderer.getArticle().getContentByLocale(locale))
42 displayDate=article.getDisplayDate()
43 publishDate=curEntry.publishDate
44 viewURL=assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse,
45 curEntry) viewURL=assetRenderer.getURLViewInContext(renderRequest, renderResponse,
46 viewURL) indexKeyReleases=indexKeyReleases+1 />
47 <#assign count=count + 1 />
48 <#if count gt 5>
49 <#break>
50 </#if>
51 <#if indexKeyReleases gt 5>
52 <div class=" col-12 toggle-content-each grid-view-col d-none">
53 <#else>
54 <div class="col-12 toggle-content-each grid-view-col">
55 </#if>
56 <div class="notification-row-each">
57 <div class="notification-row-each-inner">
58 <div class="notification-date">
59 <#if displayDate?has_content>
60 ${dateUtil.getDate(publishDate, "MMM dd, yyyy", locale)}
61 <#if publishDate?has_content>
62 <#if currDate?string==publishDate?date?string>
63 <div class="tag-new tag-date"><span>New</span></div>
64 </#if>
65 </#if>
66 </#if>
67 </div>
68 <a href="${viewURL}" class="mtm_list_item_heading">
69 <div class="covid19-result-heading c-tooltips position-relative">
70 <span class="mtm_list_item_heading textTruncate governor-page-title">
71 ${curEntry.getTitle(locale)} </span>
72 <div class="custom-tooltip covid19-tooltip">
73 <div class="tooltip-arrow-up"></div>
74 <div class="tooltip-content covid19-content">
75 ${curEntry.getSummary(locale)}
76 </div>
77 </div>
78 </div>
79 </a>
80 <div class="speaker-content font-resized">
81 <#if speaker?has_content>${speaker}, </#if>
82 <#if designation?has_content>${designation} </#if>
83 </div>
84 <#if URL?has_content>
85 <#list URL?keys as key>
86 <#if key==locale>
87 <#assign docURL=URL?values[key_index] />
88 </#if>
89 </#list>
90 </#if>
91 <!--<#if docURL?has_content>
92 <#list docURL?split("/") as sValue>
93 <#if sValue?is_last>
94 <#list sValue?split("?") as uuid>
95 <#if uuid?is_first>
96 <#assign UUID=uuid />
97 </#if>
98 </#list>
99 </#if>
100 </#list>
101 </#if>-->
102 <#if docURL?has_content>
103
104 <#if docURL?contains("fileEntryId")>
105
106 <#list docURL?split("?") as sValue>
107 <#if sValue?is_last>
108
109 <#list sValue?split("=") as fid>
110
111 <#if fid?is_last>
112
113 <#assign FID=fid />
114 </#if>
115 </#list>
116 </#if>
117 </#list>
118
119
120 <#else>
121
122 <#list docURL?split("/") as sValue>
123 <#if sValue?is_last>
124 <#list sValue?split("?") as uuid>
125 <#if uuid?is_first>
126 <#assign UUID=uuid />
127 </#if>
128 </#list>
129 </#if>
130 </#list>
131 </#if>
132 </#if>
133
134 <!-- File -->
135 <!--<#attempt>
136 <#if UUID?has_content>
137 <#assign
138 DLFileEntry=dLFileEntryLocalService.fetchFileEntry(UUID,groupId?number)
139 fileSize=DLFileEntry.getSize()
140 fileAssetEntry=assetEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry",
141 DLFileEntry.getFileEntryId())
142 docURL=fileAssetEntry.getAssetRenderer().getURLDownload(themeDisplay) />
143 </#if>
144 <#recover>
145 </#attempt>-->
146 <#if UUID?has_content || FID?has_content>
147
148
149 <#attempt>
150
151 <#if FID?has_content>
152 <#assign dlFileEntry=dlFileEntryLocalService.fetchDLFileEntry(FID?number) />
153 <#else>
154 <#assign dlFileEntry=dlFileEntryLocalService.fetchFileEntry(UUID,groupId?number)
155 fileAssetEntry=assetEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry",
156 dlFileEntry.getFileEntryId())/>
157 </#if>
158 <#assign fileSize=dlFileEntry.getSize()/>
159
160 <#if UUID?has_content>
161 <#assign docURL=fileAssetEntry.getAssetRenderer().getURLDownload(themeDisplay)/>
162
163 </#if>
164 <#recover>
165 </#attempt>
166 </#if>
167
168 <div class="btn-wrap">
169 <#if docURL?? && docURL?has_content>
170 <div class="inner-wrap">
171 <a href="${docURL?split('?')[0]}" target="_blank"
172 class="matomo_download ">
173 <img src="/documents/70233/0/fileDownload.svg"
174 class="downloadFile" alt="Download File"
175 title="Download File">
176 ${languageUtil.get(locale, "pdf")} (<span class="fileSizeReleases">${fileSize}</span>)
177 </a>
178 </div>
179 </#if>
180
181 <#if videoLink?has_content>
182 <div class="inner-wrap yt-link-wrap">
183 <a href="javascript:void(0)"
184 data-toggle="modal"
185 data-target="#videoPopUpYT-${curEntry?counter}">
186 <img src="/documents/20125/67624/icon-youtube.svg"
187 class="downloadFile mtm_yt"
188 alt="${languageUtil.get(locale,'youtube')}"
189 title="${languageUtil.get(locale,'youtube')}">
190 <span
191 class="mtm_yt">${languageUtil.get(locale,'youtube')}</span>
192 </a>
193
194 </div>
195 </#if>
196 </div>
197
198 </div>
199 </div>
200 </div>
201 </#if>
202 </#list>
203 </#if>
204 </#list>
205
206 </div>
207 </div>
208 </div>
209 </div>
210 </div>
211 </div>
212 </#if>
213
214 <input type="hidden" id="indexKeyReleases" value="${indexKeyReleases}">
215
216<script>
217 $( document ).ready(function() {
218 var indexSp = $('#speechesIndex').val();
219 console.log("indexSp " + indexSp);
220 var indexMI = $('#indexInteractions').val();
221 console.log("indexMI " + indexMI);
222 var indexKR = $('#indexKeyReleases').val();
223 console.log("indexKR " + indexKR);
224 if (indexSp == 0) {
225 $('#title-heading').hide(); // Hide the div
226 }
227 if(indexMI == 0){
228 $('#title-interaction').hide(); // Hide the div
229 }
230 if(indexKR == 0){
231 $('#title-keyreleases').hide(); // Hide the div
232 }
233 if (indexSp == 0 && indexMI == 0 && indexKR == 0){
234 $('.governor-page-related-links,.related_links_heading').hide();
235 }
236 $(".youtube-video-popup #yt-player").each(function(){
237 let newYoutubeLink = $(this).find("#iframe-yt").attr("data-src");
238 console.log("newYoutubeLink : "+newYoutubeLink);
239 if(newYoutubeLink.includes("youtube.com")){
240 if(newYoutubeLink.includes('?')){
241 newYoutubeLink = newYoutubeLink + '&enablejsapi=1'
242 }
243 else{
244 newYoutubeLink = newYoutubeLink + '?enablejsapi=1';
245 }
246 $(this).find("#iframe-yt").attr("data-src",newYoutubeLink);
247 }
248 else if(newYoutubeLink.includes("youtu.be")){
249 newYoutubeLink = newYoutubeLink.replace("youtu.be","www.youtube.com/embed");
250 if(newYoutubeLink.includes('?')){
251 newYoutubeLink = newYoutubeLink + '&enablejsapi=1'
252 }
253 else{
254 newYoutubeLink = newYoutubeLink + '?enablejsapi=1';
255 }
256 console.log("newYoutubeLink : "+newYoutubeLink);
257 $(this).find("#iframe-yt").attr("data-src",newYoutubeLink);
258 return;
259 }else if(newYoutubeLink.includes("watch?v=")){
260 newYoutubeLink = newYoutubeLink.replace("watch?v=","embed/");
261 if(newYoutubeLink.includes('?')){
262 newYoutubeLink = newYoutubeLink + '&enablejsapi=1'
263 }
264 else{
265 newYoutubeLink = newYoutubeLink + '?enablejsapi=1';
266 }
267 console.log(newYoutubeLink);
268 $(this).find("#iframe-yt").attr("data-src",newYoutubeLink);
269 return;
270 }
271 });
272 $(".fileSizeReleases").each(function () {
273 var fileSizeReleases = $(this).html()
274 if (fileSizeReleases != "") {
275 $(this).html(formatFileSizeReleases(parseInt(fileSizeReleases), 2))
276 }
277 });
278
279 function formatFileSizeReleases(bytes, decimalPoint) {
280 if (bytes == 0)
281 return '0 Bytes';
282 var k = 1024,
283 dm = decimalPoint || 2,
284 sizes = ['Bytes' , 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],
285 i = Math.floor(Math.log(bytes) / Math.log(k));
286 return (parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i]);
287 }
288 $('.search-filter-wrapper .search-option').click(function (ev) {
289 if ($(this).hasClass("selected")) {
290 $(this).removeClass("selected");
291 } else {
292 $(this).addClass("selected");
293 }
294 });
295 });
296 </script>