Se ha producido un error al procesar la plantilla.
Java method "cat.tmb.web.utils.service.services.TMBPortalUtilImpl.isExpiredContent(com.liferay.journal.model.JournalArticle, Locale)" threw an exception when invoked on cat.tmb.web.utils.service.services.TMBPortalUtilImpl object "cat.tmb.web.utils.service.services.TMBPortalUtilImpl@79a8fd65"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #if !tmbPortalUtil.isExpiredContent(c... [in template "20155#20195#276660" at line 187, column 25] ----
1<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
2<#assign curArticle = journalArticleLocalService.getArticle(groupId, .vars['reserved-article-id'].getData())>
3<#if getterUtil.getBoolean(Reservada.getData())>
4 <#assign url = "/" + locale.getLanguage() + "/sobre-tmb/treballa-amb-nosaltres/formulari-candidats?id=" + reference_number.getData() + "&type=student&reserved=true">
5<#else>
6 <#assign url = "/" + locale.getLanguage() + "/sobre-tmb/treballa-amb-nosaltres/formulari-candidats?id=" + reference_number.getData() + "&type=student">
7</#if>
8
9
10<#assign target = "">
11<#if URL_formulari_extern.getData()?has_content && URL_formulari_extern.getData()?has_content>
12 <#assign url = URL_formulari_extern.getData()>
13 <#assign target = "_blank">
14</#if>
15<#assign knownFormats = ["pdf", "doc", "jpg", "mov", "zip"]>
16<#assign DLAppServiceUtil = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService")>
17
18<div class="sidebar-body">
19 <div class="sidebar-body__container">
20 <div class="secondary grid__col-4">
21 <div class="page-preheader">
22 <h1 class="title title--1 page-header__title">
23 ${position.getData()}</h1>
24 <div class="page-header__intro truncate js-truncate-expand" data-expand-text="<@liferay.language key="view.more"/>
25 ">
26 <div class="truncate__content">
27 <p>
28 </p>
29 </div>
30 </div>
31 </div>
32 </div>
33 <div class="primary grid__col-8">
34 <div class="content intro">
35 <p>
36 <@liferay.language key="offer.reference.text"/>
37 ${reference_number.getData()}</p>
38 <p>
39 <@liferay.language key="offer.receipt.text"/>
40 : <#if request_date?has_content && request_date.getData()?has_content>
41 ${request_date.getData()} </#if>
42 </p>
43 <#if functions?has_content && functions.getData()?has_content>
44 <p>
45 ${functions.getData()}</p>
46 </#if>
47 </div>
48 <#if responsabilities?has_content && responsabilities.getData()?has_content>
49 <h2 class="title title--2">
50 ${responsabilities.getData()}</h2>
51 <#if responsabilities.list_resp.getSiblings()?has_content>
52 <div class="content">
53 <ul class="list list--standard">
54 <#foreach cur_resp in responsabilities.list_resp.getSiblings()>
55 <li class="list__item">
56 ${cur_resp.getData()}</li>
57 </#foreach>
58 </ul>
59 </div>
60 </#if>
61 </#if>
62
63 <h2 class="title title--2">
64 <@liferay.language key="offer.requirements.text"/>
65 </h2>
66 <#if list_requ.getSiblings()?has_content>
67 <div class="content">
68 <ul class="list list--standard">
69 <#foreach cur_reque in list_requ.getSiblings()>
70 <li class="list__item">
71 ${cur_reque.getData()}</li>
72 </#foreach>
73 </ul>
74 </div>
75 </#if>
76
77 <#if salary?has_content && salary.getData()?has_content>
78 <h2 class="title title--2">
79 ${salary.getData()}</h2>
80 <#if salary.list_salary.getSiblings()?has_content>
81 <div class="content">
82 <ul class="list list--standard">
83 <#foreach cur_sal in salary.list_salary.getSiblings()>
84 <li class="list__item">
85 ${cur_sal.getData()}</li>
86 </#foreach>
87 </ul>
88 </div>
89 </#if>
90 </#if>
91 <#if more_info?has_content && more_info.getData()?has_content>
92 <h2 class="title title--2">
93 ${more_info.getData()}</h2>
94 <#if more_info.list_more_info.getSiblings()?has_content>
95 <div class="content">
96 <ul class="list list--standard">
97 <#foreach cur_info in more_info.list_more_info.getSiblings()>
98 <li class="list__item">
99 ${cur_info.getData()}</li>
100 </#foreach>
101 </ul>
102 </div>
103 </#if>
104 </#if>
105 <#if more_info2?has_content && more_info2.getData()?has_content>
106 <h2 class="title title--2">
107 ${more_info2.getData()}</h2>
108 <#if more_info2.list_more_info2.getSiblings()?has_content>
109 <div class="content">
110 <ul class="list list--standard">
111 <#foreach cur_info2 in more_info2.list_more_info2.getSiblings()>
112 <li class="list__item">
113 ${cur_info2.getData()}</li>
114 </#foreach>
115 </ul>
116 </div>
117 </#if>
118 </#if>
119 <#if final_text?has_content && final_text.getData()?has_content>
120 <div class="content">
121 ${final_text.getData()}
122 </div>
123 </#if>
124
125 <#-- Documents
126 -->
127 <#if Document.getSiblings()?has_content>
128 <ul class="list list--files">
129 <#foreach cur_docfile in Document.getSiblings()>
130 <#if cur_docfile.Document_URL?has_content && cur_docfile.Document_URL.getData()?has_content>
131 <#assign docUrlList = cur_docfile.Document_URL.getData()?split("/")>
132 <#assign docUrlUuidNum = getterUtil.getInteger(docUrlList?size)-1>
133 <#assign docUrlNameNum = getterUtil.getInteger(docUrlList?size)-2>
134 <#assign docClassUuid = docUrlList[docUrlUuidNum]>
135 <#assign docClassUuidData = docClassUuid?split("?")>
136
137 <#if (getterUtil.getInteger(docClassUuidData?size)>
138 0)>
139 <#assign docClassUuid = docClassUuidData[0]>
140 </#if>
141
142 <#assign fileExtension = "">
143 <#assign fileSize = "">
144 <#assign fileEntry = "">
145
146 <#if cur_docfile.Visible_Name.getData()?has_content>
147 <#assign docName = cur_docfile.Visible_Name.getData()>
148 <#else>
149 <#assign docName = docUrlList[docUrlNameNum]>
150 <#assign docName = docName?replace("+", " ")>
151 </#if>
152
153 <#assign fileEntry = DLAppServiceUtil.getFileEntryByUuidAndGroupId(docClassUuid, groupId)>
154 <#assign fileSize = fileEntry.getSize()/1024>
155 <#assign fileVersion = fileEntry.getFileVersion()>
156 <#assign fileExtension = fileEntry.getExtension()?lower_case>
157
158 <#if knownFormats?seq_contains(fileExtension) && codeHTML?has_content && codeHTML != "true">
159 <#assign iconClass = "icon--file-" + fileExtension>
160 <#else>
161 <#assign iconClass = "icon--file-generic">
162 </#if>
163
164 <#assign accessibleDocName = "">
165
166 <#if cur_docfile.Accessible_Name.getData()?has_content>
167 <#assign accessibleDocName = cur_docfile.Accessible_Name.getData()>
168 </#if>
169
170 <li class="list__item">
171 <a class="file" href="${cur_docfile.Document_URL.getData()}" title="${accessibleDocName}" rel="external" target="_blank">
172 <span class="icon ${iconClass}">
173 </span>
174 <span class="file__name">
175 ${docName}</span>
176 <#if fileExtension?has_content && fileSize?has_content>
177 <span class="file__data">
178 [${fileExtension?upper_case}: ${fileSize?round} KB]</span>
179 </#if>
180 </a>
181 </li>
182 </#if>
183 </#foreach>
184 </ul>
185 </#if>
186
187 <#if !tmbPortalUtil.isExpiredContent(curArticle, locale)>
188 <div class="cta">
189 <div class="cta__text">
190 <p>
191 <@liferay.language key="label.formWorkWithUs.inputdata"/>
192 </p>
193 </div>
194 <div class="cta__actions">
195 <a href="${url}" target="${target}" class="button button--a">
196 <@liferay.language key="label.formWorkWithUs.button"/>
197 </a>
198 </div>
199 </div>
200 </#if>
201 </div>
202
203 </div>
204
205</div>