Centros colaboradores
An error occurred while processing the template.
The following has evaluated to null or missing: ==> centerService.getEntidad(entry.getClassPK()) [in template "51258#51286#158302" at line 17, column 59] ---- 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: #assign center = centerService.getEnt... [in template "51258#51286#158302" at line 17, column 41] ----
1<#--
2inaem-searcher-results-centers: ADT para los resultados de busqueda de centros colabordores formacion
3-->
4<#assign centerService = serviceLocator.findService("es.aragon.inaem.indexer.service.api.EntidadCentroService")>
5 <div class="inaem__search-results inaem__search-results-course">
6 <div>
7 <p><@liferay.language key="search-results-first-part" /><strong>${searchContainer.getTotal()} </strong><@liferay.language key="center" /></p>
8 </div>
9 <#if entries?has_content>
10 <#list entries as entry>
11 <div class="inaem__search-results-course__item">
12
13 <#if entry.getClassName() == "es.aragon.inaem.indexer.service.model.EntidadCentro">
14
15 <a href="${entry.getViewURL()}" >${entry.getHighlightedTitle()}</a>
16
17 <#assign center = centerService.getEntidad(entry.getClassPK()) />
18
19 <#if center?has_content>
20
21 <#if center.getDir() ?has_content>
22 <p>Dirección:<strong>${center.getDir()}</strong></p>
23 </#if>
24
25 <#if center.getPhone() ?has_content>
26 <p>Teléfono:<strong>${center.getPhone()}</strong></p>
27 </#if>
28
29 <#if center.getLocalidad() ?has_content>
30 <p>Localidad:<strong>${center.getLocalidad()}</strong></p>
31 </#if>
32 <#if center.getProvincia() ?has_content>
33 <p>Provincia:<strong>${center.getProvincia()}</strong></p>
34 </#if>
35 </#if>
36 </#if>
37 </div>
38 </#list>
39 </#if>
40 </div>