Vacature

Componence Asset List

Er trad een fout op tijdens de verwerking van de sjabloon.
The following has evaluated to null or missing:
==> vacancyId.Region_Id  [in template "10155#10193#NORMAL-VACANCY-TEMPLATE" at line 226, column 7]

----
Tip: It's the step after the last dot that caused this error, not those before it.
----
Tip: If the failing expression is known to be 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 (vacancyId.Region_Id.getSiblings(...  [in template "10155#10193#NORMAL-VACANCY-TEMPLATE" at line 226, column 1]
----
1<#assign serviceContext =  staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()> 
2<#assign httpServletRequest = serviceContext.getRequest()> 
3<#assign backUrl = pgTemplateUtil.getVacancyBackUrl(httpServletRequest)> 
4 
5<#assign jls = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
6<#assign curArticle = jls.getLatestArticle(groupId, .vars['reserved-article-id'].data)  /> 
7 
8<#assign themeDisplay = serviceContext.getThemeDisplay() /> 
9<#assign colorScheme = themeDisplay.getPathColorSchemeImages().substring(themeDisplay.getPathColorSchemeImages().lastIndexOf("/") + 1) /> 
10<#assign isPDFExport = getterUtil.getBoolean(httpServletRequest.getAttribute("pdf-export"),false) /> 
11 
12<#assign datePosted = getterUtil.getString(vacancyId.Publication_Id.Publication_DateFrom.getData()) /> 
13<#if validator.isNotNull(datePosted) > 
14	<#assign publication_DateFrom_DateObj = dateUtil.parseDate("yyyy-MM-dd", datePosted, locale) /> 
15	<#assign datePosted = dateUtil.getDate(publication_DateFrom_DateObj, "dd/MM/yyyy", locale) />	 
16</#if> 
17 
18<#assign validThrough = getterUtil.getString(vacancyId.Publication_Id.Publication_DateUntil.getData())> 
19<#if validator.isNotNull(validThrough)> 
20	<#assign publication_DateUntil_DateObj = dateUtil.parseDate("yyyy-MM-dd", validThrough, locale)> 
21	<#assign validThrough = dateUtil.getDate(publication_DateUntil_DateObj, "dd/MM/yyyy", locale) />	 
22	 
23</#if> 
24 
25<#assign jobRegistrationURL = httpUtil.encodeURL(vacancyId.Publication_Id.RegistrationLink_Language.RegistrationLink.data,true) /> 
26 
27<div class="wcl-display-page vacature-detail-page pg-content vacancy-detail-redesign" id="<@portlet.namespace />"> 
28	<div class="body"> 
29		<div class="detail-left-content"> 
30			<#if validator.isNotNull(backUrl) && portalUtil.escapeRedirect(backUrl)?? && validator.isNotNull(portalUtil.escapeRedirect(backUrl)) > 
31				<#assign backUrl= htmlUtil.escapeHREF(portalUtil.escapeRedirect(backUrl)) /> 
32				<span class="bacx-button"><a class="button pull-left" href="${backUrl}">Terug</a></span> 
33			</#if> 
34		</div> 
35		<div class="detail-middle-content"> 
36						 
37			<div class="asset-title keyword-title">${vacancyId.AdvertText.DisplayJobTitle.data}</div> 
38			 
39			<div class="sub-title">${vacancyId.AdvertText.Subtitle.data}</div> 
40			 
41			<div class="key-points">Functieomschrijving</div> 
42			${vacancyId.AdvertText.FunctionDescription.data} 
43			 
44			<div class="key-points">Functie-eisen</div> 
45			${vacancyId.AdvertText.JobRequirements.data} 
46			 
47			<div class="key-points">Arbeidsvoorwaarden</div> 
48			${vacancyId.AdvertText.Compensation.data} 
49	 
50			<div class="key-points">Bedrijfsinformatie</div> 
51			${vacancyId.AdvertText.CompanyInformation.data} 
52			 
53			<div class="key-points">Interesse?</div> 
54			${vacancyId.AdvertText.ContactInfo.data} 
55		 
56			<#assign jobapplybutton = httpUtil.encodeURL(vacancyId.Publication_Id.VacancyLinks_Language.VacancyLink.data,true) /> 
57 
58            <br> 
59             
60            <div class="clear"></div>	 
61        	<#if !isPDFExport > 
62                <div class="other-options"> 
63            		<a href="#" class="pdf">pdf</a> 
64        		</div> 
65        		<!-- AddThis Button BEGIN --> 
66        		<!--<div class="addthis_toolbox addthis_default_style ">			 
67        			<a class="addthis_button_preferred_1"></a> 
68        			<a class="addthis_button_preferred_3"></a> 
69        			<a class="addthis_button_preferred_4"></a><span style="float:left;">|</span> 
70        			<a class="addthis_button_compact">More</a> 
71        		</div> 
72        		<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-50e16d7712716a21"></script> --> 
73        		<!-- AddThis Button END --> 
74        	</#if> 
75            <br> 
76            <div class="clear"></div> 
77			 
78			<#if validator.isNotNull(jobRegistrationURL)> 
79				<a href="/werken-en-leren/reageren?p_advertentie_id=${vacancyId.Publication_Id.AdvertId.data}&p_pub_id=${vacancyId.Publication_Id.data}&p_f_taal=1&p_sfw_id=770&regurl=${jobRegistrationURL}" class="button pull-left" rel="nofollow">Solliciteer direct</a> 
80			<#else> 
81				<a href="/werken-en-leren/reageren?p_advertentie_id=${vacancyId.Publication_Id.AdvertId.data}&p_pub_id=${vacancyId.Publication_Id.data}&p_f_taal=1&p_sfw_id=770" class="button pull-left" rel="nofollow">Solliciteer direct</a> 
82			</#if> 
83			 
84		</div> 
85		<div class="detail-right-content"> 
86			<div class="related-assets">		 
87				<div class="link-item dossier-meta-info"> 
88					<div class="title">Vacature in het kort</div> 
89					<div class="related-content"> 
90						<div class="modified-date">   
91							<span class="date-left-block"> Organisatie: </span>  
92							<span class="date-right-block">${vacancyId.Organization_Unit.Organization_Name.data}</span> 
93						</div> 
94					    <#if (vacancyId.HoursPerWeek.data != "") > 
95							<div class="modified-date"> 
96									<span class="date-left-block"> Dienstverband: </span>  
97							<span class="date-right-block"> <#if (vacancyId.MinimumHoursPerWeek.data != "") > ${vacancyId.MinimumHoursPerWeek.data} tot </#if>  
98							<#if (vacancyId.HoursPerWeek.data != "") > 
99						    	${vacancyId.HoursPerWeek.data} uur 
100							</#if> 
101							</span> 
102						</div> 
103					  </#if> 
104						<div class="modified-date">   
105							<span class="date-left-block"> Standplaats: </span>  
106							<span class="date-right-block">${vacancyId.FunctionLocation.data}</span> 
107						</div> 
108						<#if (validator.isNotNull(vacancyId.MinimumSalaryAmount.data)|| validator.isNotNull(vacancyId.MaximumSalaryAmount.data)) > 
109							<div class="modified-date">   
110								<span class="date-left-block"> Salaris: </span> 
111								<span class="date-right-block"> 
112									 <#if (validator.isNotNull(vacancyId.MinimumSalaryAmount.data)) > 
113									  ${vacancyId.SalaryCurrency.data} min. � ${vacancyId.MinimumSalaryAmount.data}; 
114									 </#if>  
115									 ${vacancyId.SalaryCurrency.data} max. � ${vacancyId.MaximumSalaryAmount.data} 
116									 <#if (vacancyId.SalaryPeriod.data != "" || vacancyId.SalaryLevel.data != "") > 
117
118									 </#if> 
119									  ${vacancyId.SalaryPeriod.data}   
120									 <#if (vacancyId.SalaryLevel.data != "") > vacancyId.SalaryLevel.data </#if> 
121									 <#if (vacancyId.SalaryPeriod.data != "" || vacancyId.SalaryLevel.data != "") > 
122
123									 </#if> 
124								</span> 
125						   </div> 
126						</#if> 
127						 
128						<#if (vacancyId.VacancyNumber.data != "") > 
129							<div class="modified-date">   
130								<span class="date-left-block"> Referentie: </span>  
131								<span class="date-right-block">${vacancyId.VacancyNumber.data}</span> 
132							</div> 
133						</#if> 
134					 
135						<#if (vacancyId.ContractType.data == "1") > 
136							<#assign contractType = "Bepaalde tijd" /> 
137						<#elseif (vacancyId.ContractType.data == "2") > 
138							<#assign contractType = "Onbepaalde tijd" /> 
139						<#elseif (vacancyId.ContractType.data == "3") > 
140							<#assign contractType = "Detachering / inhuur" /> 
141						<#elseif (vacancyId.ContractType.data == "4") > 
142							<#assign contractType = "Stage" /> 
143						<#elseif (vacancyId.ContractType.data == "21") > 
144							<#assign contractType = "Vrijwilligerswerk" /> 
145						<#elseif (vacancyId.ContractType.data == "22") > 
146							<#assign contractType = "Opleiding" /> 
147						<#elseif (vacancyId.ContractType.data == "23") > 
148							<#assign contractType = "Nul uren"/> 
149						<#elseif (vacancyId.ContractType.data == "41") > 
150							<#assign contractType = "Stage-werkbezoek" /> 
151						</#if> 
152						<#if (contractType?? && validator.isNotNull(contractType)) >  
153    						<div class="modified-date">   
154    							<span class="date-left-block"> Contracttype: </span>  
155    							<span class="date-right-block">${contractType}</span> 
156    						</div> 
157						</#if> 
158						<div class="modified-date">   
159							<span class="date-left-block"> Opleiding: </span>  
160							<span class="date-right-block">${vacancyId.EducationLevel_Id.EducationLevel_Value.data}</span> 
161						</div> 
162						 
163	 
164					<#assign Date105812_Data = getterUtil.getString(vacancyId.Publication_Id.Publication_DateFrom.data) /> 
165						<#if (validator.isNotNull(datePosted)) > 
166							<div class="modified-date">   
167								<span class="date-left-block"> Geplaatst: </span>  
168								<span class="date-right-block"> 
169									<#assign Date105812_DateObj = dateUtil.parseDate("yyyy-MM-dd", Date105812_Data, locale) /> 
170									${dateUtil.getDate(Date105812_DateObj, "dd-MM-yyyy", locale)} 
171								</span> 
172							</div> 
173						</#if> 
174						 
175						<#assign DateClosed = getterUtil.getString(vacancyId.Publication_Id.Publication_DateUntil.data) /> 
176						<#if (validator.isNotNull(DateClosed)) > 
177							<div class="modified-date">   
178								<span class="date-left-block"> Reageren voor : </span>  
179								<span class="date-right-block"> 
180									<#assign DateClosedObj = dateUtil.parseDate("yyyy-MM-dd", DateClosed, locale) /> 
181									${dateUtil.getDate(DateClosedObj, "dd-MM-yyyy", locale)} 
182								</span> 
183							</div> 
184						</#if> 
185						 
186                        <#if validator.isNotNull(jobRegistrationURL)> 
187							<a href="/werken-en-leren/reageren?p_advertentie_id=${vacancyId.Publication_Id.AdvertId.data}&p_pub_id=${vacancyId.Publication_Id.data}&p_f_taal=1&p_sfw_id=770&regurl=${jobRegistrationURL}" class="button pull-left" rel="nofollow">Solliciteer direct</a> 
188						<#else> 
189							<a href="/werken-en-leren/reageren?p_advertentie_id=${vacancyId.Publication_Id.AdvertId.data}&p_pub_id=${vacancyId.Publication_Id.data}&p_f_taal=1&p_sfw_id=770" class="button pull-left" rel="nofollow">Solliciteer direct</a> 
190						</#if> 
191					</div> 
192				</div> 
193			</div> 
194		</div> 
195	</div> 
196 
197</div> 
198 
199<#if (!isPDFExport)	> 
200<script> 
201     jQuery(document).ready(function(){ 
202		var pdfURL = "${themeDisplay.getPathMain()}/portal/custom_pdf_export?groupId=${curArticle.getGroupId()}&templateId=${curArticle.getDDMTemplateKey()}&articleVersion=${curArticle.getVersion()}&articleId=${curArticle.getArticleId()}&cs=${colorScheme}"; 
203		   
204		 jQuery(".other-options .pdf").click(function(e){ 
205			e.preventDefault(); 
206			e.stopImmediatePropagation(); 
207			 
208			if( typeof ga === 'function'){ 
209			ga('send', 'event','PDF', 'Download', pdfURL); 
210			setTimeout(function(){ 
211			 location.href=pdfURL} 
212			 ,200); 
213			return false; 
214
215			 
216			location.href = pdfURL; 
217		}); 
218	}); 
219 
220</script> 
221</#if> 
222 
223<!--## PGSUP-1737 ##--> 
224<#assign addressRegionId ='' /> 
225<#assign addressRegion ='' /> 
226<#if (vacancyId.Region_Id.getSiblings()?size > 1 ) > 
227	<#assign addressRegionId = vacancyId.Region_Id.getSiblings()[1].data /> 
228<#else> 
229	<#assign addressRegionId = vacancyId.Region_Id.data /> 
230</#if> 
231 
232<#if (addressRegionId == "1" ) > 
233	<#assign addressRegion ="Zuid-Holland"  /> 
234<#elseif (addressRegionId == "2") > 
235	<#assign addressRegion ="Noord-Holland" /> 
236<#elseif (addressRegionId == "3") > 
237	<#assign addressRegion ="Noord-Brabant" /> 
238<#elseif (addressRegionId == "7") > 
239	<#assign addressRegion ="Zeeland" /> 
240<#elseif (addressRegionId == "12") > 
241	<#assign addressRegion ="Flevoland"  /> 
242<#elseif (addressRegionId == "1041") > 
243	<#assign addressRegion = "Regio Noord-Holland" /> 
244<#elseif (addressRegionId == "1042") > 
245	<#assign addressRegion = "Regio Haaglanden" /> 
246<#elseif (addressRegionId == "1043") > 
247	<#assign addressRegion = "Regio Rijnmond" /> 
248<#elseif (addressRegionId == "1101") > 
249	<#assign addressRegion ="Overijssel" /> 
250<#else> 
251	<#assign addressRegion ="Utrecht" /> 
252</#if> 
253<!--## PGSUP-1737 ## --> 
254 
255<script> 
256  var el = document.createElement('script'); 
257  el.type = 'application/ld+json'; 
258  var wlh = window.location.href; 
259  el.text = JSON.stringify({ 
260      "@context": "http://schema.org", 
261	  "@type": "JobPosting", 
262	  "title": "${vacancyId.AdvertText.DisplayJobTitle.data}", 
263	  "description": "${vacancyId.AdvertText.Subtitle.data}", 
264	  "url":wlh, 
265	  "baseSalary": {"@type": "MonetaryAmount", "minValue":"${vacancyId.MinimumSalaryAmount.data}","maxValue":"${vacancyId.MaximumSalaryAmount.data}","currency": "EUR"}, 
266	  "salaryCurrency": "EUR", 
267	  "workHours": "${vacancyId.HoursPerWeek.data}", 
268	  "jobBenefits": "Professionele werkomgeving, gevarieerd werk, doorgroeimogelijkheden, opleidingen via de Parnassia Academie", 
269	  "educationRequirements": "${vacancyId.EducationLevel_Id.data}", 
270	  "employmentType": "${vacancyId.ContractType.data}", 
271	  "jobLocation": "${vacancyId.FunctionLocation.data}", 
272	  "industry": "Geestelijke gezondheidszorg", 
273	  "experienceRequirements": "${vacancyId.ExperienceRequired_Id.ExperienceRequired_Value.data} year(s)", 
274	  "datePosted": "${datePosted}", 
275	  "validThrough": "${validThrough}", 
276	  "qualifications": '${vacancyId.AdvertText.JobRequirements.data}', 
277	  "responsibilities": '${vacancyId.AdvertText.FunctionDescription.data}', 
278	  "hiringOrganization": "${vacancyId.Organization_Unit.Organization_Name.data}", 
279	  "jobLocation" : { 
280		  "@type": "Place", 
281		  "address": { 
282		    "@type": "PostalAddress", 
283		    "streetAddress": "${(vacancyId.FunctionLocationAdress.data)!}", 
284		    "addressLocality": "${vacancyId.FunctionLocation.data}", 
285		    "addressRegion": "${addressRegion}", 
286		    "postalCode": "${vacancyId.FunctionLocationPostalCode.data}", 
287		    "addressCountry": "NL" 
288
289
290  }); 
291  document.querySelector('head').appendChild(el); 
292</script> 

Vacature in het kort