Pagina Início

National Institute for Rehabilitation

Planning, Coordination and Implementation of National Policies for the Promotion of the Rights of Persons with Disabilities

An error occurred while processing the template.
Expression xPathSelector.selectSingleNode(rootElement) is undefined on line 35, column 34 in 10155#10195#11646.
1<#assign serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext()> 
2<#assign themeDisplay = serviceContext.getThemeDisplay() /> 
3<#assign locale = themeDisplay.getLocale()> 
4 
5<!-- Condicional para exibir conteúdo baseado no idioma --> 
6<#if locale.language == "pt"> 
7<#assign news = "Notícias"> 
8<#assign details = "Ver detalhes do destaque"> 
9<#assign seeMore = "Ver mais destaques"> 
10<#else> 
11<#assign news = "News"> 
12<#assign details = "View highlight details"> 
13<#assign seeMore = "See more highlights"> 
14</#if>  
15 
16<div class="next-events"> 
17    <h2 class="title">${news}</h2> 
18</div> 
19 
20<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
21<#assign urlPaginaOrigem =  "inicio" /> 
22<#assign urlPaginaDestino = "noticias" /> 
23 
24<#list entries as entry> 
25	<#assign assetRenderer = entry.getAssetRenderer() /> 
26    <#if (entry.getClassName() == "com.liferay.portlet.journal.model.JournalArticle")> 
27        <#assign article = assetRenderer.getArticle() /> 
28         
29        <#assign document = saxReaderUtil.read(article.getContent()) /> 
30    	        <#assign rootElement = document.getRootElement() /> 
31    	        <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Título']/dynamic-content[@language-id='${locale}']") /> 
32    	        <#assign titulo = article.getTitle(locale)/> 
33 
34    	        <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Texto']/dynamic-content[@language-id='${locale}']") /> 
35    	        <#assign texto = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
36    	        <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Imagem']") /> 
37    	        <#assign imagem = "" /> 
38    	         
39    	        <#if xPathSelector.selectSingleNode(rootElement)?? && xPathSelector.selectSingleNode(rootElement)?has_content> 
40    	            <#assign imagem = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
41    	        </#if> 
42    	         
43    	        <#assign img_alt=""> 
44    	        <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Alt_imagem']") /> 
45                <#if xPathSelector.selectSingleNode(rootElement)?? && xPathSelector.selectSingleNode(rootElement)?has_content> 
46    	            <#assign img_alt = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
47    	        </#if> 
48 
49        <#assign escapedTitle = titulo?replace("'", "")?replace("\"", "")/> 
50        <#if entries?seq_index_of(entry) % 2 != 0> 
51        	<div class="row feature-item background-grey"> 
52 
53    	                <div class="col-md-6 description"> 
54    	                
55    	                 <h3 class="title">${titulo}</h3> 
56    	                     
57    	                    <#setting locale="pt_PT" /> 
58                        	<#assign modifiedDate = article.getDisplayDate() /> 
59                        	                            <br/> 
60    	                    <div class="ft-news-desc ">${htmlUtil.stripHtml(texto)}</div> 
61    	                    <#assign serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext()> 
62    	                    <#assign themeDisplay = serviceContext.getThemeDisplay() /> 
63 
64 
65        
66    				        <#assign viewURL = portletURLFactory.create(serviceContext.getRequest(), "56", themeDisplay.getPlid() ,"RENDER_PHASE") /> 
67    	                    <#assign VOID = viewURL.setParameter("struts_action", "/journal_content/view", true) /> 
68    	                    <#assign VOID = viewURL.setParameter("groupId", article.getGroupId()?string, true) /> 
69    	                    <#assign VOID = viewURL.setParameter("articleId", article.getArticleId(), true) /> 
70    	                   
71    	                    <#assign viewURL = viewURL?replace(urlPaginaOrigem, urlPaginaDestino)/> 
72    	                     
73    	                    <a href="${viewURL}" title="${escapedTitle}" class="btn btn-default" role="button">${details}</a> 
74    	                </div> 
75    	                        	        	    	    <div class="col-md-6 image"> 
76    	        
77    	                    <#if imagem?? && imagem?has_content> 
78        	                    <img class="img-responsive" alt="${img_alt}" src="${imagem}" /> 
79    	                    <#else> 
80                            	<#assign serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext()> 
81                                <#assign themeDisplay = serviceContext.getThemeDisplay() /> 
82                                <img src="${themeDisplay.getURLPortal()}/inr-site-theme/images/placeholder-noticias.png" class="img-responsive" alt="${img_alt}" /> 
83        	                </#if> 
84    	                </div> 
85    	        </div> 
86        <#else> 
87        	<div class="row feature-item"> 
88        	        	    	    <div class="col-md-6 image"> 
89    	        
90    	                    <#if imagem?? && imagem?has_content> 
91        	                    <img class="img-responsive" alt="${img_alt}" src="${imagem}" /> 
92    	                    <#else> 
93                            	<#assign serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext()> 
94                                <#assign themeDisplay = serviceContext.getThemeDisplay() /> 
95                                <img src="${themeDisplay.getURLPortal()}/inr-site-theme/images/placeholder-noticias.png" class="img-responsive" alt="${img_alt}" /> 
96        	                </#if> 
97    	                </div> 
98    	                 
99    	                <div class="col-md-6 description"> 
100    	                
101    	                 <h3 class="title">${article.getTitle(locale)}</h3> 
102    	                     
103    	                    
104                        	<#assign modifiedDate = article.getDisplayDate() /> 
105                        	 
106                        	                            <br/> 
107                             
108    	                    <div class="ft-news-desc ">${htmlUtil.stripHtml(texto)}</div> 
109    	                    <#assign serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext()> 
110    	                    <#assign themeDisplay = serviceContext.getThemeDisplay() /> 
111    				        <#assign viewURL = portletURLFactory.create(serviceContext.getRequest(), "56", themeDisplay.getPlid() ,"RENDER_PHASE") /> 
112    	                    <#assign VOID = viewURL.setParameter("struts_action", "/journal_content/view", true) /> 
113    	                    <#assign VOID = viewURL.setParameter("groupId", article.getGroupId()?string, true) /> 
114    	                    <#assign VOID = viewURL.setParameter("articleId", article.getArticleId(), true) /> 
115    	                      <#assign viewURL = viewURL?replace(urlPaginaOrigem, urlPaginaDestino)/> 
116    	                    <a href="${viewURL}" title="${escapedTitle}" class="btn btn-default" role="button">${details}</a> 
117    	                </div> 
118    	        </div> 
119        </#if> 
120 
121    </#if> 
122</#list> 
123 
124<div class="row"> 
125    <div class="col-md-12 see-more-featured"> 
126        <a href="/web/site-inr/noticias">${seeMore}</a> 
127    </div> 
128</div> 

Quick access to:

Biblioteca Especializada
Ir para Perguntas frequentes
Botão de acesso à APP Acessibilidade 360
Página do INR relativa ao Catálogo de Produtos de Apoio
Página do INR relativa ao Balcão da Inclusão
Acesso aos Dados Estatísticos

This page has been translated automatically using a translation tool.