Nav Bar do usuário deslogado.

Organizações

busca

An error occurred while processing the template.
Can't convert this string to number: ""
The blamed expression:
==> orgId?number  [in template "34764#34807#41163" at line 34, column 90]

----
FTL stack trace ("~" means nesting-related):
	- Failed at: org = OrganizationLocalService.fetchO...  [in template "34764#34807#41163" at line 34, column 41]
----
1<#assign  
2	JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") 
3	OrganizationLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.OrganizationLocalService") 
4	UserLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.UserLocalService") 
5
6 
7<script type="text/javascript">	 
8	var checkPage = "${themeDisplay.getURLCurrent()}"; 
9	if (checkPage.includes('start')){ 
10		revelarBuscaVazia(); 
11
12</script> 
13	 
14<div class="botao-busca-vazia" onclick="revelarBuscaVazia()"> 
15	<div class="btn">VER LISTA COMPLETA DE ORGANIZAÇÕES</div> 
16</div> 
17 
18<div class="bioec_orgs-emptyHeader d-none"> 
19    <div> 
20        <span style="font-size: 25px; font-weight: 400;">Visualizando:</span><span style="font-size: 31px; font-weight: 700;">Todas as organizações</span> 
21    </div> 
22</div> 
23 
24<div class="bioec_orgs-list d-none"> 
25 
26	 
27	<#if entries?has_content> 
28			<#list entries as entry> 
29				 
30				<#if entry.getClassName()?? && entry.getClassName() == "com.liferay.journal.model.JournalArticle">				 
31				<#assign journalArticle = JournalArticleLocalService.getLatestArticle(entry.getClassPK()) > 
32				<#assign  
33					orgId = journalArticle.getExpandoBridge().getAttribute("organization")!"" 
34					org = OrganizationLocalService.fetchOrganization(orgId?number)!"" 
35					setores = "N/A" 
36
37				<#if user != "" > 
38					<#assign 
39						url = themeDisplay.getURLPortal() + "/w/" + journalArticle.getUrlTitle() 
40                        nome = org.getName()!"" 
41						articleXml = journalArticle.getDocument().getRootElement() 
42 
43                        selo = articleXml.selectSingleNode("dynamic-element[@field-reference='SeleoMltipla53056287']").getStringValue()!"" 
44						selo = selo?replace("\n\t\t", "") 
45						selo = selo?replace("\n\t", "") 
46					/>					 
47					 
48					<#assign  
49						privacidadeTipo = articleXml.selectSingleNode("dynamic-element[@field-reference='Field95465365']").getStringValue()!"" 
50						privacidadeTipo = privacidadeTipo?replace("\n\t\t", "") 
51						privacidadeTipo = privacidadeTipo?replace("\n\t", "")		 
52						tipo = "" 
53					/>	 
54					<#if privacidadeTipo != "0"> 
55						<#assign  
56							tipo = articleXml.selectSingleNode("dynamic-element[@field-reference='Text77560090']").getStringValue()!"" 
57							tipo = tipo?replace("\n\t\t", "") 
58							tipo = tipo?replace("\n\t", "")	 
59						/> 
60					</#if> 
61 
62					<#assign  
63						privacidadeSetores = articleXml.selectSingleNode("dynamic-element[@field-reference='Field28805808']").getStringValue()!"" 
64						privacidadeSetores = privacidadeSetores?replace("\n\t\t", "") 
65						privacidadeSetores = privacidadeSetores?replace("\n\t", "")		 
66						setoresNodes = "" 
67					/>	 
68					<#if privacidadeSetores != "0"> 
69						<#assign  
70						setoresNodes = articleXml.selectNodes("dynamic-element[@field-reference='Text40807358']")!""	 
71						/> 
72                        <#list setoresNodes as setor> 
73                            <#assign setores = setor.getStringValue()?trim + (setor.getStringValue()?trim!="")?string(";","") /> 
74                        </#list> 
75                        <#if setores?trim == ""> 
76                            <#assign setores = "N/A" > 
77				        </#if> 
78					</#if> 
79 
80 
81					<#assign  
82						privacidadeLinkedin = articleXml.selectSingleNode("dynamic-element[@field-reference='Field39404419']").getStringValue()!"" 
83						privacidadeLinkedin = privacidadeLinkedin?replace("\n\t\t", "") 
84						privacidadeLinkedin = privacidadeLinkedin?replace("\n\t", "")	 
85						linkedin = "" 
86					/>	 
87					<#if privacidadeLinkedin != "0"> 
88						<#assign  
89						linkedin = articleXml.selectSingleNode("dynamic-element[@field-reference='Text63396047']").getStringValue()!"" 
90						linkedin = linkedin?replace("\n\t\t", "") 
91						linkedin = linkedin?replace("\n\t", "")	 
92						/> 
93					</#if> 
94 
95                    <#assign  
96						privacidadeSite = articleXml.selectSingleNode("dynamic-element[@field-reference='Field39404419']").getStringValue()!"" 
97						privacidadeSite = privacidadeSite?replace("\n\t\t", "") 
98						privacidadeSite = privacidadeSite?replace("\n\t", "")	 
99						site = "" 
100					/>	 
101					<#if privacidadeSite != "0"> 
102						<#assign  
103						site = articleXml.selectSingleNode("dynamic-element[@field-reference='Text63396047']").getStringValue()!"" 
104						site = site?replace("\n\t\t", "") 
105						site = site?replace("\n\t", "")	 
106						/> 
107					</#if> 
108 
109 
110					<#assign  
111						privacidadeCidade = articleXml.selectSingleNode("dynamic-element[@field-reference='Field88775704']").getStringValue()!"" 
112						privacidadeCidade = privacidadeCidade?replace("\n\t\t", "") 
113						privacidadeCidade = privacidadeCidade?replace("\n\t", "")	 
114						cidade = "" 
115					/>	 
116					<#if privacidadeCidade != "0"> 
117						<#assign  
118						cidade = articleXml.selectSingleNode("dynamic-element[@field-reference='Text74198597']").getStringValue()!"" 
119						cidade = cidade?replace("\n\t\t", "") 
120						cidade = cidade?replace("\n\t", "")		 
121						/> 
122					</#if> 
123 
124 
125					<#assign  
126						privacidadeEstado = articleXml.selectSingleNode("dynamic-element[@field-reference='Field37152534']").getStringValue()!"" 
127						privacidadeEstado = privacidadeEstado?replace("\n\t\t", "") 
128						privacidadeEstado = privacidadeEstado?replace("\n\t", "")	 
129						estado = "" 
130					/>	 
131					<#if privacidadeEstado != "0"> 
132						<#assign  
133						estado = articleXml.selectSingleNode("dynamic-element[@field-reference='Text44010961']").getStringValue()!"" 
134						estado = estado?replace("\n\t\t", "") 
135						estado = estado?replace("\n\t", "")			 
136						/> 
137					</#if> 
138 
139					<#assign  
140						privacidadePais = articleXml.selectSingleNode("dynamic-element[@field-reference='Field00433081']").getStringValue()!"" 
141						privacidadePais = privacidadePais?replace("\n\t\t", "") 
142						privacidadePais = privacidadePais?replace("\n\t", "")	 
143						pais = "" 
144					/>	 
145					<#if privacidadePais != "0"> 
146						<#assign  
147						pais = articleXml.selectSingleNode("dynamic-element[@field-reference='Text60583910']").getStringValue()!"" 
148						pais = pais?replace("\n\t\t", "") 
149						pais = pais?replace("\n\t", "")		 
150						/> 
151					</#if> 
152 
153 
154 
155 
156					<#assign 
157										 
158						localizacao = cidade?trim + (cidade?trim!="")?string(",","") + estado + (pais?trim!="")?string("-","") + pais 
159						localizacao = (localizacao?trim!="")?string(localizacao,"") 
160						userIsAdm = false 
161
162		 
163 
164			<div class="bioec_orgs-list-item"> 
165        	<div class="bioec_orgs-list-item-l2"> 
166						<div class="bioec_orgs-list-item-l2-top"> 
167                      <div> 
168                        <h3 class="mb-md-3">${nome}</h3> 
169                        </div> 
170                        <div class="bioec_orgs-list-item-social-container"> 
171														<#if site != ""> 
172															<a href="${site}" target="_blank" rel="noopener noreferrer"> 
173																	<i class="fa-solid fa-laptop"></i> 
174															</a> 
175														</#if> 
176														 
177														<#if linkedin != ""> 
178															<a href="${linkedin}" target="_blank" rel="noopener noreferrer"> 
179																	<i class="fa-brands fa-linkedin-in"></i> 
180															</a> 
181														</#if> 
182 
183                        </div> 
184                    </div> 
185                     <#if tipo != "" || localizacao != ""> 
186 
187                        <div class="row primeiraLinha"> 
188                            <#if tipo != "" && tipo??> 
189                                <div class="col-12 col-md-6"> 
190                                    <h3>Tipo de Organização</h3> 
191                                    <p>${tipo}</p> 
192                                </div> 
193                            </#if> 
194                            <#if localizacao != "" && localizacao??> 
195                                <div class="col-12 col-md-6"> 
196                                    <h3>Localização</h3> 
197                                    <p>${localizacao}</p> 
198                                </div> 
199                            </#if> 
200                        </div> 
201 
202                    </#if> 
203                     
204										<div class="segundalinha"> 
205											<div class="setores"> 
206													<h3>Setores de Atuação</h3> 
207													<p> 
208														${setores} 
209													</p> 
210											</div> 
211											<#if selo != "" && selo != "null" && selo != "false"> 
212												<div class="seloEmbrapii"> 
213													<img width="160px" src="/documents/34805/0/Logo%20Rede%20Embrapii.png/d566bc10-d24a-f517-be9f-b07c660c87e1?t=1681819335368" alt=""> 
214												</div> 
215											</#if> 
216										</div> 
217                </div> 
218                 
219                <div class="bioec_orgs-list-item-l3"> 
220                    <a href="${url}">Ver mais detalhes</a> 
221										<#if userIsAdm> 
222                    |   
223                    <a href="#">Adicionar administrador</a> 
224                    |  
225                    <a href="#">Editar</a> 
226										</#if> 
227                </div> 
228            </div> 
229					</#if> 
230				</#if> 
231			</#list> 
232	<#else> 
233		<div class="bioec_orgs-list-empty"> 
234			Nenhuma organização encontrada 
235		</div> 
236	</#if> 
237</div> 
238 
239<style> 
240.bioec_orgs-list { 
241	margin: 30px auto; 
242	max-width: 800px 
243
244 
245.search-total-label { 
246	color: #5B5C61; 
247	font-size: 16px; 
248
249 
250.bioec_orgs-list-empty { 
251	color: #5B5C61; 
252	text-align: center; 
253	padding: 40px 20px; 
254	font-weight: 700; 
255	font-size: 16px; 
256
257 
258.bioec_primary_button, .bioec_secondary_button { 
259    font-style: normal; 
260    font-weight: 700; 
261    font-size: 16px; 
262    line-height: 150%; 
263    color: #333244; 
264    display: inline-flex; 
265    flex-direction: row; 
266    justify-content: center; 
267    align-items: center; 
268    padding: 8px 24px; 
269    border-radius: 8px; 
270    text-decoration: none; 
271    white-space: nowrap; 
272    align-self: center; 
273		border: 1px solid #4ECD66; 
274		transition: 250ms; 
275    background-color: #4ECD66; /* primary only */ 
276
277 
278.bioec_secondary_button { 
279    background-color: transparent; 
280
281 
282.bioec_primary_button:hover, .bioec_secondary_button:hover { 
283    filter: brightness(90%); 
284    color: inherit; 
285
286 
287.bioec_orgs-list-item { 
288	border: 1px solid #BEBEBE; 
289	margin-bottom: 24px; 
290
291 
292.bioec_orgs-list-item h3 { 
293	color:  #5B5C61; 
294	font-size: 20px; 
295	line-height: 30px; 
296	font-weight: 700; 
297	margin: 0; 
298
299 
300.bioec_orgs-list-item p { 
301	color: #5B5C61; 
302
303 
304.bioec_orgs-list-item-l1{ 
305	background: #E8ECEF; 
306	padding: 12px 24px; 
307	display: flex; 
308	justify-content: flex-start; 
309	 
310
311 
312.bioec_orgs-list-item-l1 h4 { 
313	font-weight: 400; 
314	font-size: 25px; 
315	color: #5B5C61; 
316	margin: 0; 
317
318 
319.bioec_orgs-list-item-l2 { 
320	padding: 24px; 
321	gap: 24px; 
322	display: flex; 
323	flex-direction: column; 
324
325 
326.bioec_orgs-list-item-l2-top { 
327	display: flex; 
328	justify-content: space-between; 
329
330 
331.bioec_orgs-list-item-identidade-container{ 
332	display: flex; 
333	justify-content: flex-start; 
334	gap: 40px;  
335 
336
337 
338.bioec_orgs-list-item-identidade-container img{ 
339	 
340 
341
342.bioec_orgs-list-item-identidade-container h3 a{ 
343	color: #5B5C61; 
344	transition: 200ms; 
345	border-bottom: 3px solid white; 
346
347 
348.bioec_orgs-list-item-identidade-container h3 a:hover{ 
349	text-decoration: none; 
350	border-bottom: 2px solid #5B5C61; 
351
352 
353.bioec_orgs-list-item-identidade-container h3, .bioec_orgs-list-item-identidade-container h6{ 
354margin: 0; 
355
356 
357.bioec_orgs-list-item-identidade-container h6{ 
358font-size: 15px; 
359font-weight: 300; 
360
361 
362.bioec_orgs-list-item-identidade-container .bioec_orgs-list-item-identidade-text{ 
363	display: flex; 
364	flex-direction: column; 
365	gap: 8px; 
366	justify-content: center; 
367 
368
369 
370.bioec_orgs-list-item-l3 { 
371	background: #E8ECEF; 
372	color: #5B5C61; 
373	padding: 8px 0px; 
374	display: flex; 
375	justify-content: center; 
376
377 
378.bioec_orgs-list-item-l3 a { 
379	color: #5B5C61; 
380	font-weight: 700; 
381	font-size: 16px; 
382	line-height: 150%; 
383	text-decoration: underline; 
384	text-underline-offset: 3px; 
385	transition: 250ms; 
386	margin: 0 12px; 
387
388 
389.bioec_orgs-list-item-social-container a { 
390	color: #5B5C61; 
391	text-decoration: none; 
392	margin-left: 20px; 
393	font-size: 20px; 
394
395 
396.bioec_orgs-list-header-empty { 
397	color: #5B5C61; 
398	text-align: center; 
399	padding: 40px 20px; 
400	font-weight: 700; 
401	font-size: 16px; 
402
403 
404.segundalinha { 
405	display: flex; 
406
407 
408.segundalinha .setores { 
409	flex: 1; 
410
411 
412.botao-busca-vazia{ 
413padding: 40px 0; 
414background-color: rgba(51, 50, 68, 0.5); 
415display: flex; 
416justify-content: center; 
417
418 
419.botao-busca-vazia div{ 
420padding: 8px 24px; 
421background-color: white; 
422border: 1px solid #4ECD66; 
423width: fit-content; 
424font-weight: 700; 
425transition: 250ms; 
426 
427
428 
429.botao-busca-vazia div:hover{ 
430background-color: #4ECD66; 
431
432 
433.bioec_orgs-emptyHeader{ 
434padding: 40px 0; 
435background-color: #E8ECEF; 
436display: flex; 
437justify-content: center; 
438border-top: 1px solid #BEBEBE; 
439
440 
441.bioec_orgs-emptyHeader>div{ 
442display: flex; 
443flex-direction: column; 
444justify-content: center; 
445align-items: flex-start; 
446gap: 12px; 
447max-width: 800px; 
448width: 100%; 
449
450 
451.pagination-bar{ 
452display: none; 
453
454 
455.bioec_orgs-list-item-orgList{ 
456display: flex; 
457flex-direction: column; 
458gap: 12px; 
459 
460
461 
462.bioec_orgs-list-item-orgList a{ 
463	font-size: 16px; 
464	font-weight: 700; 
465	text-decoration: underline; 
466	color: #5B5C61; 
467
468 
469 
470 
471@media (max-width: 768px){ 
472	.primeiraLinha, .segundalinha { 
473	flex-direction: column; 
474
475	 
476		.bioec_orgs-list-item-l2-top { 
477	flex-direction: column; 
478		gap: 16px; 
479		margin-bottom: 16px; 
480		 
481
482	 
483	.bioec_orgs-list-item-social-container a{ 
484		margin: 0; 
485
486
487 
488</style> 
489 
490 
491 
492<script> 
493const url = new URL(window.location.href) 
494const params = new URLSearchParams(url.search) 
495const searchTerm = params.get("q") 
496console.log("searchTerm:" + searchTerm) 
497 
498if (searchTerm != "" && searchTerm != null){ 
499console.log("teste"); 
500document.querySelector(".bioec_orgs-list").classList.remove("d-none"); 
501document.querySelector(".botao-busca-vazia").classList.add("d-none"); 
502 
503
504 
505function revelarBuscaVazia(){ 
506document.querySelector(".bioec_orgs-emptyHeader").classList.remove("d-none"); 
507document.querySelector(".pagination-bar").style.display = "flex" 
508document.querySelector(".bioec_orgs-list").classList.remove("d-none"); 
509document.querySelector(".botao-busca-vazia").classList.add("d-none"); 
510}	 
511 
512</script>