Navigointivalikko

Navigointivalikko

Navigointivalikko

Diginepsy-klinikka

Navigointivalikko

DigiNepsy-klinikka

Virhe tapahtui prosessoidessa esitysmallia.
The following has evaluated to null or missing:
==> link_service_channel.ServiceChannels_WebPageChannel_Areas.ServiceChannels_WebPageChannel_Areas_Municipality  [in template "594611#594639#PTV_PALVELU_TEMPLATE" at line 587, column 24]

----
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 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: #list link_service_channel.ServiceCha...  [in template "594611#594639#PTV_PALVELU_TEMPLATE" at line 587, column 17]
----
1<style> 
2    :root { 
3        --main-bg-color: #FFCF29; 
4        --secondary-bg-color: #FFF1BF; 
5 
6        --lapha-primary-blue: #333399; 
7        --lapha-primary-pink: #FF99CC; 
8
9 
10    .panel .sub-panel { 
11        display: none; 
12
13 
14    .panel .sub-panel.show { 
15        display: block; 
16
17 
18    .ptv-service { 
19        background: white; 
20        padding-bottom: 1px; 
21
22 
23    .ptv-service > * { 
24        padding: 0 10px; 
25        font-family: 'Montserrat'; 
26
27 
28    .ptv-service > h1 { 
29        margin-left: 0 !important; 
30        margin-right: 0 !important; 
31        margin-bottom: 1.75rem; 
32        font-size: 2rem; 
33        color: var(--lapha-primary-blue); 
34
35 
36    .ptv-service h2 { 
37        font-size: 1.25rem; 
38        margin-top: 2rem; 
39        margin-bottom: 1.25rem; 
40
41 
42    .ptv-service h3 { 
43        font-size: 1.3rem; 
44        font-weight: 500; 
45        margin-top: 1.5rem; 
46        margin-bottom: 1rem; 
47
48 
49    .ptv-service h4 { 
50        font-size: 1.25rem; 
51        font-weight: 500; 
52        margin-top: 1.5rem; 
53        margin-bottom: 1rem; 
54
55 
56    .ptv-service p { 
57        margin-bottom: 1rem !important; 
58
59 
60    .ptv-service a { 
61        color: var(--lapha-primary-blue); 
62
63 
64    .ptv-service .servicechannel { 
65        margin-top: 2rem; 
66        margin-bottom: 2rem; 
67
68 
69    .panel-header.ptv-main-button.collapseToggler { 
70        display: none; 
71
72 
73    .panel-header.ptv-main-button.collapseToggler.show { 
74        display: flex; 
75
76 
77    .panel-header.ptv-main-button.collapseToggler[aria-expanded="false"]::after, .panel-header-child.collapseToggler[aria-expanded="false"]::after { 
78        font-family: "Font Awesome 6 Free"; 
79        content: "\f067"; 
80        font-weight: 900; 
81        margin-right: 1rem; 
82        color: var(--lapha-primary-blue); 
83        font-size: 20px;        
84
85 
86    .panel-header.ptv-main-button.collapseToggler[aria-expanded="true"]::after, .panel-header-child.collapseToggler[aria-expanded="true"]::after { 
87        font-family: "Font Awesome 6 Free"; 
88        content: "\f068"; 
89        font-weight: 900; 
90        margin-right: 1rem; 
91        color: var(--lapha-primary-blue); 
92        font-size: 20px; 
93
94 
95    .ptv-service .panel-header, .ptv-service .panel-header-child { 
96        display: flex; 
97        flex-direction: row; 
98        justify-content: space-between; 
99        align-items: center; 
100        border: none; 
101        width: 100%; 
102
103 
104    .ptv-service .panel-header { 
105        padding: 0.75rem 1.5rem; 
106        background-color: #FFFFFF; 
107        border-bottom: 1px solid var(--lapha-primary-blue); 
108        margin-bottom: 1rem; 
109        color: var(--lapha-primary-blue); 
110
111 
112    .ptv-service .panel-header:hover, .ptv-service .panel-header:active, .ptv-service .panel-header:focus { 
113        // background-color: var(--main-bg-color) !important; 
114
115 
116    .ptv-service .panel-header-child { 
117        padding: 0.75rem 1.375rem; 
118        background-color: white; 
119        border: 2px solid whitesmoke; 
120        border-radius: 0; 
121
122 
123    .ptv-service .panel-header-child:hover, .ptv-service .panel-header-child:active, .ptv-service .panel-header-child:focus { 
124        background-color: white !important; 
125        border-bottom: 2px solid var(--lapha-primary-blue); 
126
127 
128    .ptv-service .panel-title { 
129        display: inline-flex; 
130        flex: 1 1 auto; 
131        margin: 0 !important; 
132        padding-right: 1.5rem; 
133        font-family: 'Montserrat'; 
134        font-weight: 500 !important; 
135        text-align: left; 
136        color: var(--lapha-primary-blue) 
137
138 
139    .ptv-service ul > li { 
140        background-image: none; 
141
142 
143     .ptv-service li > a { 
144        display: block; 
145
146 
147    .ptv-service .child-content { 
148        // display: flex; 
149
150 
151    .ptv-service .schedule { 
152        // margin-left: 1rem; 
153
154 
155    .ptv-service .schedule ul { 
156        width: max-content; 
157
158 
159    .ptv-service .links { 
160        margin: auto; 
161
162 
163    .ptv-service .links a { 
164        border-radius: 20px; 
165        padding: 0.5rem; 
166        padding-left: 1rem; 
167        padding-right: 1rem; 
168        background-color: var(--lapha-primary-blue); 
169        border: 1px solid #FFFFFF; 
170        color: #FFFFFF; 
171        width: max-content; 
172        // margin-left: 1rem; 
173
174 
175    .ptv-service h2.panel-title { 
176        font-size: 1.125rem !important; 
177        font-weight: bold !important; 
178
179 
180    .ptv-service span.panel-title { 
181        color: inherit; 
182        font-size: 1rem; 
183
184 
185    /*.ptv-service .panel-header:hover h2.panel-title, 
186    .ptv-service .panel-header:active h2.panel-title, 
187    .ptv-service .panel-header:focus h2.panel-title { 
188        color: white !important; 
189    }*/ 
190 
191    .ptv-service .panel-header-child:hover span.panel-title, 
192    .ptv-service .panel-header-child:active span.panel-title, 
193    .ptv-service .panel-header-child:focus span.panel-title { 
194        font-weight: 700; 
195
196 
197    .ptv-service .panel-body { 
198        padding: 0; 
199
200 
201    .ptv-service .panel-body-child { 
202        padding: 1.5rem 1rem; 
203        border: 2px solid whitesmoke; 
204        border-top: 1px solid #333399; 
205
206 
207    .ptv-service .panel-body-child ul { 
208        list-style-type: none; 
209        padding-left: 0; 
210
211 
212    .ptv-service .panel-body-child h3, h4, p { 
213        // margin: 0 !important; 
214
215 
216    .ptv-service .phone-channel_phone-numbers_container { 
217        margin: 1.5rem 0 0 0; 
218        padding: 0; 
219
220 
221    .ptv-service .phone-channel_phone-numbers_row { 
222        list-style-type: none; 
223        padding-left: 0; 
224
225 
226    .ptv-service .phone-channel_phone-numbers_row li { 
227        display: flex; 
228        flex-direction: column; 
229        margin-bottom: 1rem; 
230        box-sizing: border-box; 
231
232 
233    .ptv-service .phone-channel_phone-numbers_row li:nth-child(odd) { 
234        // padding-right: 0.75rem; 
235
236 
237    .ptv-service .phone-channel_phone-numbers_row li:nth-child(even) { 
238        // padding-left: 0.75rem; 
239
240 
241    @media (max-width: 767.98px) { 
242        .ptv-service .phone-channel_phone-numbers_row li:nth-child(odd) { 
243            padding-right: 0; 
244
245 
246        .ptv-service .phone-channel_phone-numbers_row li:nth-child(even) { 
247            padding-left: 0; 
248
249        #ptv-selected-city { 
250            padding-top: 1rem; 
251
252        .ptv-service a { 
253            word-break: break-word; 
254
255
256 
257    .ptv-service .servicehours__info, .ptv-service .servicehours__info span, .ptv-service .servicehours__times, .ptv-service .address_street, .ptv-service .address_city { 
258        display: block; 
259        width: 100%; 
260
261 
262    .ptv-service .servicehours__times { 
263        list-style-type: none; 
264        padding-left: 0; 
265
266 
267    .additional-info { 
268        // background: var(--secondary-bg-color); 
269        // margin-left: -2rem; 
270        // padding: 0.1rem 0 1rem 2rem; 
271        // border: 1px solid var(--main-bg-color); 
272        // border-radius: .25rem; 
273
274 
275    .omakunta button:hover, .omakunta button:active, .omakunta .btn:hover, .omakunta .btn:active { 
276        filter: none; 
277
278 
279    .panel-title-count { 
280        margin-left: 1rem; 
281        padding: 0 10px; 
282        background-color: var(--lapha-primary-pink); 
283        border-radius: 50px; 
284        height: fit-content; 
285
286 
287     /* Style the tab */ 
288    .tab { 
289      overflow: hidden; 
290      border-bottom: 2px solid var(--lapha-primary-blue); 
291
292     
293    /* Style the buttons that are used to open the tab content */ 
294    .tab button { 
295      background-color: inherit; 
296      float: left; 
297      border: none; 
298      outline: none; 
299      cursor: pointer; 
300      padding: 14px 16px; 
301      transition: 0.3s; 
302
303     
304    .tablinks { 
305        padding: 0.7rem; 
306
307     
308    /* Change background color of buttons on hover */ 
309    .tab button:hover { 
310      background-color: #ddd; 
311
312     
313    /* Create an active/current tablink class */ 
314    .tab button.active { 
315        background-color: var(--lapha-primary-blue); 
316        color: #FFFFFF; 
317
318     
319    /* Style the tab content */ 
320    .tabcontent { 
321        display: none; 
322        padding: 6px 12px; 
323        border-top: none; 
324        padding-top: 2rem; 
325    }  
326 
327    .tablist { 
328        list-style-type: none; 
329        padding: 0; 
330
331 
332    .tablist li { 
333        list-style-type: none; 
334        margin: 0; 
335
336     
337    .ptv-tab-content { 
338        border: 2px solid #F6F6FA; 
339        margin: 1rem 0; 
340        word-break: break-word; 
341
342     
343    .ptv-select { 
344        background-color: #fee0f0; 
345        margin-top: 2rem; 
346        padding: 2rem; 
347
348     
349    .ptv-select-div-title { 
350        font-weight: bold !important; 
351        color: var(--lapha-primary-blue) !important; 
352
353     
354    .ptv-select-div-row { 
355        margin-top: 1rem; 
356
357 
358    .ptv-selected-city-text { 
359        margin: auto; 
360
361     
362    #ptv-selected-city { 
363        color: var(--lapha-primary-blue); 
364        font-size: 22px; 
365        font-weight: 600; 
366        margin: 0 !important; 
367
368 
369    #lapha-ptv-municipality { 
370        border: 2px solid #F6F6FA; 
371        padding: 0.3rem; 
372
373</style> 
374 
375<script> 
376    function switchTab(evt, category) { 
377        var i, tabcontent, tablinks; 
378        tabcontent = document.getElementsByClassName("tabcontent"); 
379        for (i = 0; i < tabcontent.length; i++) { 
380            tabcontent[i].style.display = "none"; 
381
382        tablinks = document.getElementsByClassName("tablinks"); 
383        for (i = 0; i < tablinks.length; i++) { 
384            tablinks[i].className = tablinks[i].className.replace(" active", ""); 
385
386        document.getElementById(category).style.display = "block"; 
387        evt.currentTarget.className += " active"; 
388
389 
390    // TO BE DONE 
391    /* window.addEventListener( 
392        "load", 
393        function() { 
394            var i, subPanel, arr; 
395            subPanel = document.getElementsByClassName("sub-panel"); 
396            arr = []; 
397 
398            for(i = 0; i < subPanel.length; i++) { 
399                arr.push(subPanel[i]); 
400
401 
402            arr.sort(function(a, b) { 
403                return a.getAttribute("datastuff").localeCompare(b.getAttribute("datastuff")); 
404            }) 
405            console.log(arr); 
406        },  
407        false 
408    ); */ 
409</script> 
410 
411<#assign serviceHourParser=utilLocator.findUtil("o/ptv-portlet", "fi.vismaconsulting.istekki.ptv.admin.template.util.PTVDateParser") /> 
412<#assign ptvLocalizationHelper = utilLocator.findUtil("o/ptv-portlet", "fi.vismaconsulting.istekki.ptv.admin.template.util.PTVLocalizationHelper") /> 
413 
414<#if ServiceChannels??> 
415    <#assign linkingInformations = ServiceChannels.getSiblings() /> 
416</#if> 
417 
418<#macro newLinesToBr data > 
419    ${data?replace("\n+", "</p> <p>","r")} 
420</#macro> 
421 
422<#macro localize str> 
423    ${ptvLocalizationHelper.localize(locale, str)} 
424</#macro> 
425 
426<#macro parse_standard serviceHourItem > 
427    <#assign additionalInformation = serviceHourItem.getAdditionalInformation() /> 
428    <#assign validOn = serviceHourItem.getValidOn() /> 
429 
430    <#if validOn != "" > 
431        <span class="servicehours__info">${serviceHourItem.getValidOn()}</span> 
432    </#if> 
433 
434    <#if additionalInformation != ""> 
435        <span class="servicehours__info">${additionalInformation}</span> 
436    </#if> 
437 
438    <#if serviceHourItem.getStatus() == "OPEN_WHOLE_DAY"> 
439        <span class="servicehours__times"> 
440            <@localize "ptv.open.whole.day" /> 
441        </span> 
442    </#if> 
443 
444    <#if serviceHourItem.getStatus() == "CLOSED_WHOLE_DAY" > 
445        <span class="servicehours__times"> 
446            <@localize "ptv.closed.whole.day" /> 
447        </span> 
448    </#if> 
449 
450    <#if serviceHourItem.getOpeningTimes()?? > 
451        <ul class="servicehours__times"> 
452            <#list serviceHourItem.getOpeningTimes() as openingTimeItem> 
453                <li> 
454                    <#if openingTimeItem.getDayFrom() != "" || openingTimeItem.getDayTo() != ""> 
455                    <span class="servicehours__opendate"> 
456                    </#if> 
457 
458                        <#if openingTimeItem.getDayFrom() != ""> 
459                            ${openingTimeItem.getDayFrom()} 
460                        </#if> 
461 
462                        <#if openingTimeItem.getDayFrom() != "" && openingTimeItem.getDayTo() != ""> 
463
464                        </#if> 
465 
466                        <#if openingTimeItem.getDayTo() != ""> 
467                            ${openingTimeItem.getDayTo()} 
468                        </#if> 
469 
470                        <#if openingTimeItem.getDayFrom() != "" || openingTimeItem.getDayTo() != ""> 
471                        </span> 
472                    </#if> 
473 
474                    <span class="servicehours__opentime"> 
475                        ${openingTimeItem.getOpenTime()} 
476                    </span> 
477                </li> 
478            </#list> 
479        </ul> 
480    </#if> 
481</#macro> 
482 
483<div class="ptv-service"> 
484    <#assign kuntaList = [] /> 
485 
486    <h1 id="ptv-service-title">${ServiceNames_Name.getData()}</h1> 
487 
488    <#if ServiceDescriptions_GD_Description?? && ServiceDescriptions_GD_Description.getData() != ""> 
489        <p> 
490            <@newLinesToBr data=ServiceDescriptions_GD_Description.getData() /> 
491        </p> 
492    </#if> 
493 
494    <#if ServiceDescriptions_Description?? && ServiceDescriptions_Description.getData() != ""> 
495        <p> 
496            <@newLinesToBr data=ServiceDescriptions_Description.getData() /> 
497        </p> 
498    </#if> 
499 
500    <#if ServiceVouchersInUse?? && ServiceVouchersInUse.getData() != ""> 
501        <#if getterUtil.getBoolean(ServiceVouchersInUse.getData())> 
502            <h2>Palveluseteli</h2><br> 
503            <#list ServiceVouchers.getSiblings() as voucher> 
504                <p>${voucher.ServiceVouchers_Value.getData()}</p><br> 
505                <p>${voucher.ServiceVouchers_Language.getData()}</p><br> 
506                <p>${voucher.ServiceVouchers_Url.getData()}</p><br> 
507                <p>${voucher.ServiceVouchers_AdditionalInformation.getData()}</p><br> 
508            </#list> 
509        </#if> 
510    </#if> 
511 
512    <#if Requirements.getSiblings()?has_content && Requirements.getData() != ""> 
513        <h2>Kenelle ja millä ehdoin</h2> 
514    	<#list Requirements.getSiblings() as cur_Requirements> 
515    		<p> 
516            <@newLinesToBr data=cur_Requirements.getData() /></p> 
517    	</#list> 
518    </#if> 
519     
520        <#assign municipalities_select = [] /> 
521 
522        <!-- E-Channel --> 
523        <#if ServiceChannels_EChannel?? && ServiceChannels_EChannel?has_content> 
524            <#list ServiceChannels_EChannel.getSiblings() as e_service_channel> 
525                <#if e_service_channel.ServiceChannels_EChannel_Areas?? && e_service_channel.ServiceChannels_EChannel_Areas.getSiblings()??> 
526                    <#list e_service_channel.ServiceChannels_EChannel_Areas.ServiceChannels_EChannel_Areas_Municipality.getSiblings() as e_channel> 
527                        <#if e_channel.ServiceChannels_EChannel_Areas_Municipality_Name?? && e_channel.ServiceChannels_EChannel_Areas_Municipality_Name.getData() != ""> 
528                            <#if !municipalities_select?seq_contains(e_channel.ServiceChannels_EChannel_Areas_Municipality_Name.getData())> 
529                                <#assign municipalities_select = municipalities_select + [e_channel.ServiceChannels_EChannel_Areas_Municipality_Name.getData()] /> 
530                            </#if> 
531                        </#if> 
532                    </#list> 
533                </#if> 
534            </#list> 
535        </#if> 
536 
537 
538        <!-- Phone --> 
539        <#if ServiceChannels_PhoneChannel?? && ServiceChannels_PhoneChannel?has_content> 
540            <#list ServiceChannels_PhoneChannel.getSiblings() as phone_service_channel> 
541                <#if phone_service_channel.ServiceChannels_PhoneChannel_Areas?? && phone_service_channel.ServiceChannels_PhoneChannel_Areas.getSiblings()??> 
542                    <#list phone_service_channel.ServiceChannels_PhoneChannel_Areas.ServiceChannels_PhoneChannel_Areas_Municipality.getSiblings() as phone_channel> 
543                        <#if phone_channel.ServiceChannels_PhoneChannel_Areas_Municipality_Name?? && phone_channel.ServiceChannels_PhoneChannel_Areas_Municipality_Name.getData() != ""> 
544                            <#if !municipalities_select?seq_contains(phone_channel.ServiceChannels_PhoneChannel_Areas_Municipality_Name.getData())> 
545                                <#assign municipalities_select = municipalities_select + [phone_channel.ServiceChannels_PhoneChannel_Areas_Municipality_Name.getData()] /> 
546                            </#if> 
547                        </#if> 
548                    </#list> 
549                </#if> 
550            </#list> 
551        </#if> 
552 
553    <!-- Location --> 
554    <#if ServiceChannels_LocationChannel?? && ServiceChannels_LocationChannel?has_content> 
555        <#list ServiceChannels_LocationChannel.getSiblings() as location_service_channel> 
556            <#if location_service_channel.ServiceChannels_LocationChannel_Areas.ServiceChannels_LocationChannel_Areas_Municipality?? && location_service_channel.ServiceChannels_LocationChannel_Areas.ServiceChannels_LocationChannel_Areas_Municipality.getSiblings()??> 
557                <#list location_service_channel.ServiceChannels_LocationChannel_Areas.ServiceChannels_LocationChannel_Areas_Municipality.getSiblings() as location_channel> 
558                    <#if location_channel.ServiceChannels_LocationChannel_Areas_Municipality_Name?? && location_channel.ServiceChannels_LocationChannel_Areas_Municipality_Name.getData()??> 
559                        <#if !municipalities_select?seq_contains(location_channel.ServiceChannels_LocationChannel_Areas_Municipality_Name.getData())> 
560                            <#assign municipalities_select = municipalities_select + [location_channel.ServiceChannels_LocationChannel_Areas_Municipality_Name.getData()] /> 
561                        </#if> 
562                    </#if> 
563                </#list> 
564            </#if> 
565        </#list> 
566    </#if> 
567 
568    <!-- Printable Form --> 
569    <#if ServiceChannels_PrintableFormChannel?? && ServiceChannels_PrintableFormChannel?has_content> 
570        <#list ServiceChannels_PrintableFormChannel.getSiblings() as form_service_channel> 
571            <#if form_service_channel.ServiceChannels_PrintableFormChannel_Areas?? && form_service_channel.ServiceChannels_PrintableFormChannel_Areas.getSiblings()??> 
572                <#list form_service_channel.ServiceChannels_PrintableFormChannel_Areas.ServiceChannels_PrintableFormChannel_Areas_Municipality.getSiblings() as form_channel> 
573                    <#if form_channel.ServiceChannels_PrintableFormChannel_Areas_Municipality_Name?? && form_channel.ServiceChannels_PrintableFormChannel_Areas_Municipality_Name.getData() != ""> 
574                        <#if !municipalities_select?seq_contains(form_channel.ServiceChannels_PrintableFormChannel_Areas_Municipality_Name.getData())> 
575                            <#assign municipalities_select = municipalities_select + [form_channel.ServiceChannels_PrintableFormChannel_Areas_Municipality_Name.getData()] /> 
576                        </#if> 
577                    </#if> 
578                </#list> 
579            </#if> 
580        </#list> 
581    </#if> 
582 
583     <!-- Webpage (Links) --> 
584    <#if ServiceChannels_WebPageChannel?? && ServiceChannels_WebPageChannel?has_content> 
585        <#list ServiceChannels_WebPageChannel.getSiblings() as link_service_channel> 
586            <#if link_service_channel.ServiceChannels_WebPageChannel_Areas?? && link_service_channel.ServiceChannels_WebPageChannel_Areas.getSiblings()??> 
587                <#list link_service_channel.ServiceChannels_WebPageChannel_Areas.ServiceChannels_WebPageChannel_Areas_Municipality.getSiblings() as link_channel> 
588                    <#if link_channel.ServiceChannels_WebPageChannel_Areas_Municipality_Name?? && link_channel.ServiceChannels_WebPageChannel_Areas_Municipality_Name.getData() != ""> 
589                        <#if !municipalities_select?seq_contains(link_channel.ServiceChannels_WebPageChannel_Areas_Municipality_Name.getData())> 
590                            <#assign municipalities_select = municipalities_select + [link_channel.ServiceChannels_WebPageChannel_Areas_Municipality_Name.getData()] /> 
591                        </#if> 
592                    </#if> 
593                </#list> 
594            </#if> 
595        </#list> 
596    </#if> 
597 
598    <#if municipalities_select?? && municipalities_select?has_content> 
599    <h2>Paikkakuntavalinta</h2> 
600    <p>Valitse paikkakunta ja saat näkyviin yhteystiedot, sähköiset palvelut ja muut palveluun liittyvät tiedot.</p> 
601 
602    <div class="ptv-select"> 
603        <p class="ptv-select-div-title">Valitse paikkakunta: </p> 
604        <div class="row ptv-select-div-row"> 
605            <div class="col-md-5 col-xs-12"> 
606                <select id="lapha-ptv-municipality"> 
607                    <#if !themeDisplay.getURLCurrent()?contains("?id=")> 
608                        <option value="">Valitse paikkakunta</option> 
609                    <#else> 
610                        <option value="">Kaikki</option> 
611                    </#if> 
612                    <#list municipalities_select?sort as municipality> 
613                        <option value="${municipality}">${municipality}</option> 
614                    </#list> 
615                </select> 
616            </div> 
617            <div class="col-md-7 col-xs-12 ptv-selected-city-text"> 
618                <p id="ptv-selected-city"> 
619                    <#assign selectedCity = themeDisplay.getURLCurrent()?keep_after("?id=") /> 
620                    <#list municipalities_select as municipality> 
621                        <#if selectedCity?replace("%C3%A4", "ä")?replace("%C3%B6", "ö")?matches(municipality)> 
622                            Valittuna: ${municipality} 
623                        </#if> 
624                    </#list> 
625                    <#if selectedCity?matches("") && themeDisplay.getURLCurrent()?contains("?id=")> 
626                            Valittuna: Kaikki 
627                    </#if> 
628                    <#if selectedCity?matches("") && !themeDisplay.getURLCurrent()?contains("?id=")> 
629                            Ei valittuna paikkakuntaa 
630                    </#if> 
631                </p> 
632            </div> 
633        </div> 
634    </div> 
635    </#if> 
636 
637    <#if ServiceDescriptions_UserInstruction?? && ServiceDescriptions_UserInstruction.getData() != ""> 
638        <h2> Toimi näin </h2> 
639 
640        <p> 
641            <@newLinesToBr data=ServiceDescriptions_UserInstruction.getData() /> 
642        </p> 
643    </#if> 
644 
645    <div aria-orientation="vertical" class="panel-group servicechannel" id="ptv-panel-group_${Id.getData()}" 
646         role="tablist"> 
647 
648        <!-- 
649            verkkoasiointi (eChannel): 
650            - nimi "chat" - serviceChannelNames 
651            - description ("chat on käytössä") - serviceChannelDescriptions 
652            - linkki "siirry verkkoasiointiin" - webPages.url 
653        --> 
654        <#if ServiceChannels_EChannel?? && ServiceChannels_EChannel.getSiblings()?? > 
655            <div class="panel top-panel" role="tablist"> 
656                <button 
657                    class="panel-header ptv-main-button collapseToggler" 
658                    id="${Id.getData()}_heading1" 
659                    data-toggle="liferay-collapse" 
660                    data-target="#col_${Id.getData()}_collapse1" 
661                    aria-expanded="false" 
662                    aria-controls="${Id.getData()}_collapse1" 
663
664                    <h2 class="panel-title"> 
665                        Digipalvelut <span class="panel-title-count ptv-count">0</span> 
666                    </h2> 
667                     
668                </button> 
669 
670                <div id="col_${Id.getData()}_collapse1" class="panel-collapse collapse" 
671                     aria-labelledby="${Id.getData()}_heading1" data-parent="#ptv-panel-group_${Id.getData()}"> 
672                    <div class="panel-body"> 
673                        <div aria-orientation="vertical" class="panel-group servicechannel_child" 
674                             id="ptv-panel-group_${Id.getData()}_child-panel-group1"> 
675                            <#list ServiceChannels_EChannel.getSiblings() as channel > 
676                                <#assign kuntaList><#list channel.ServiceChannels_EChannel_Areas.ServiceChannels_EChannel_Areas_Municipality.getSiblings() as municipalities>${municipalities.ServiceChannels_EChannel_Areas_Municipality_Name.getData()},</#list></#assign> 
677                                <div class="panel sub-panel" datastuff="${kuntaList}"> 
678                                    <button 
679                                        class="panel-header-child collapseToggler" 
680                                        id="${Id.getData()}_heading1_${channel.ServiceChannels_EChannel_Id.getData()}" 
681                                        data-toggle="liferay-collapse" 
682                                        data-target="#col_${Id.getData()}_collapse1_childCollapse_${channel.ServiceChannels_EChannel_Id.getData()}" 
683                                        aria-expanded="false" 
684                                        aria-controls="${Id.getData()}_collapse1_childCollapse_${channel.ServiceChannels_EChannel_Id.getData()}" 
685
686                                        <span class="panel-title">${channel.ServiceChannels_EChannel_ServiceChannelNames_Name.getData()}</span> 
687                                         
688                                    </button> 
689 
690                                    <div 
691                                            id="col_${Id.getData()}_collapse1_childCollapse_${channel.ServiceChannels_EChannel_Id.getData()}" 
692                                            class="panel-collapse collapse" 
693                                            aria-labelledby="${Id.getData()}_heading1_${channel.ServiceChannels_EChannel_Id.getData()}" 
694                                            data-parent="#ptv-panel-group_${Id.getData()}_child-panel-group1" 
695
696                                        <div class="panel-body-child"> 
697                                            <div class="text-content"> 
698                                                <h3>${channel.ServiceChannels_EChannel_ServiceChannelNames_Name.getData()}</h3> 
699 
700                                                <#if channel.ServiceChannels_EChannel_ServiceChannelDescriptions_Description??> 
701                                                    <p> 
702                                                        <@newLinesToBr data=channel.ServiceChannels_EChannel_ServiceChannelDescriptions_Description.getData() /> 
703                                                    </p> 
704                                                </#if> 
705                                            </div> 
706 
707                                            <ul class="links"> 
708                                                <#list channel.ServiceChannels_EChannel_WebPages.getSiblings() as webPage> 
709                                                    <li> 
710                                                        <#if webPage.ServiceChannels_EChannel_WebPages_Language.getData() == locale?split("_")[0]> 
711                                                            <a href="${webPage.ServiceChannels_EChannel_WebPages_Url.getData()}" 
712                                                            target="_blank" rel="noopener noreferrer"> 
713                                                                <#if webPage.ServiceChannels_EChannel_WebPages_Value.getData() != ""> 
714                                                                    ${webPage.ServiceChannels_EChannel_WebPages_Value.getData()} 
715                                                                <#else> 
716                                                                    Siirry verkkoasiointiin 
717                                                                </#if> 
718                                                            </a> 
719                                                        </#if> 
720                                                    </li> 
721                                                </#list> 
722                                            </ul> 
723                                            <#if linkingInformations??> 
724                                                <#list linkingInformations as linkingInfo> 
725                                                    <#if linkingInfo.ServiceChannels_Id?? && channel.ServiceChannels_EChannel_Id??> 
726                                                        <#if linkingInfo.ServiceChannels_Id.getData() == channel.ServiceChannels_EChannel_Id.getData()> 
727                                                            <#if linkingInfo.ServiceChannels_Description?? || linkingInfo.ServiceChannels_ServiceHours??> 
728                                                                <div class="additional-info"> 
729                                                                    <h4> 
730                                                                        <@localize "ptv.additional.info" /> 
731                                                                    </h4> 
732                                                                    <#if linkingInfo.ServiceChannels_Description??> 
733                                                                        <p> 
734                                                                            ${linkingInfo.ServiceChannels_Description.getData()} 
735                                                                        </p> 
736                                                                    </#if> 
737 
738                                                                    <#if linkingInfo.ServiceChannels_ServiceHours??> 
739                                                                        <!-- palveluajat, liitännäistieto --> 
740                                                                        <#assign serviceHourItems = "" /> 
741                                                                        <#assign serviceHourItems = serviceHourParser.parse(linkingInfo.ServiceChannels_ServiceHours.getSiblings(), "ServiceChannels", locale) /> 
742 
743                                                                        <#if serviceHourItems["DaysOfTheWeek"]?? > 
744                                                                            <h5> 
745                                                                                <@localize "ptv.service.opening.times" /> 
746                                                                            </h5> 
747 
748                                                                            <#list serviceHourItems["DaysOfTheWeek"] as serviceHourItem > 
749                                                                                <@parse_standard serviceHourItem /> 
750                                                                            </#list> 
751                                                                        </#if> 
752 
753                                                                        <#if serviceHourItems["Special"]?? > 
754                                                                            <#list serviceHourItems["Special"] as serviceHourItem > 
755                                                                                <@parse_standard serviceHourItem /> 
756                                                                            </#list> 
757                                                                        </#if> 
758 
759                                                                        <#if serviceHourItems["Exception"]?? > 
760                                                                            <h5> 
761                                                                                <@localize "ptv.exceptional.opening.times" /> 
762                                                                            </h5> 
763 
764                                                                            <#list serviceHourItems["Exception"] as serviceHourItem > 
765                                                                                <@parse_standard serviceHourItem /> 
766                                                                            </#list> 
767                                                                        </#if> 
768                                                                    </#if> 
769                                                                </div> 
770                                                            </#if> 
771                                                        </#if> 
772                                                    </#if> 
773                                                </#list> 
774                                            </#if> 
775                                        </div> 
776                                    </div> 
777                                </div> 
778                            </#list> 
779                        </div> 
780                    </div> 
781                </div> 
782            </div> 
783        </#if> 
784 
785        <!-- 
786            Soita (phoneChannel) 
787        --> 
788        <#if ServiceChannels_PhoneChannel?? && ServiceChannels_PhoneChannel.getSiblings()??> 
789            <div class="panel top-panel" role="tablist"> 
790                <button 
791                    class="panel-header ptv-main-button collapseToggler" 
792                    id="${Id.getData()}_heading4" 
793                    data-toggle="liferay-collapse" 
794                    data-target="#col_${Id.getData()}_collapse4" 
795                    aria-expanded="false" 
796                    aria-controls="${Id.getData()}_collapse4" 
797
798                    <h2 class="panel-title">Soita  <span class="panel-title-count ptv-count">0</span></h2> 
799                </button> 
800 
801                <div id="col_${Id.getData()}_collapse4" class="panel-collapse collapse" 
802                     aria-labelledby="${Id.getData()}_heading4" data-parent="#ptv-panel-group_${Id.getData()}"> 
803                    <div class="panel-body"> 
804                        <div aria-orientation="vertical" class="panel-group servicechannel_child" 
805                             id="ptv-panel-group_${Id.getData()}_child-panel-group4"> 
806                            <#list ServiceChannels_PhoneChannel.getSiblings() as channel> 
807                                <#assign kuntaList><#list channel.ServiceChannels_PhoneChannel_Areas.ServiceChannels_PhoneChannel_Areas_Municipality.getSiblings() as municipalities>${municipalities.ServiceChannels_PhoneChannel_Areas_Municipality_Name.getData()},</#list></#assign> 
808                                <div class="panel sub-panel" datastuff="${kuntaList}"> 
809                                    <button 
810                                            class="panel-header-child collapseToggler" 
811                                            id="${Id.getData()}_heading4_${channel.ServiceChannels_PhoneChannel_Id.getData()}" 
812                                            data-toggle="liferay-collapse" 
813                                            data-target="#col_${Id.getData()}_collapse4_childCollapse_${channel.ServiceChannels_PhoneChannel_Id.getData()}" 
814                                            aria-expanded="false" 
815                                            aria-controls="${Id.getData()}_collapse4_childCollapse_${channel.ServiceChannels_PhoneChannel_Id.getData()}" 
816
817                                        <span class="panel-title">${channel.ServiceChannels_PhoneChannel_ServiceChannelNames_Name.getData()}</span> 
818                                    </button> 
819 
820                                    <div 
821                                            id="col_${Id.getData()}_collapse4_childCollapse_${channel.ServiceChannels_PhoneChannel_Id.getData()}" 
822                                            class="panel-collapse collapse" 
823                                            aria-labelledby="${Id.getData()}_heading4_${channel.ServiceChannels_PhoneChannel_Id.getData()}" 
824                                            data-parent="#ptv-panel-group_${Id.getData()}_child-panel-group4" 
825
826                                        <div class="panel-body-child"> 
827                                            <div class="child-content"> 
828                                                <div class="text-content"> 
829                                                    <h3>${channel.ServiceChannels_PhoneChannel_ServiceChannelNames_Name.getData()}</h3> 
830 
831                                                    <#if channel.ServiceChannels_PhoneChannel_ServiceChannelDescriptions_Description??> 
832                                                        <p> 
833                                                            <@newLinesToBr data=channel.ServiceChannels_PhoneChannel_ServiceChannelDescriptions_Description.getData() /> 
834                                                        </p> 
835                                                    </#if> 
836 
837                                                    <div class="phone-channel_phone-numbers_container container-fluid"> 
838                                                        <ul class="phone-channel_phone-numbers_row row no-gutters"> 
839                                                            <#list channel.ServiceChannels_PhoneChannel_PhoneNumbers.getSiblings() as phoneNumber > 
840                                                                <#if phoneNumber.ServiceChannels_PhoneChannel_PhoneNumbers_Language.getData() == locale?split("_")[0] > 
841                                                                    <li class="col-12 col-md-6"> 
842                                                                        <span class="phone-number_info">${phoneNumber.ServiceChannels_PhoneChannel_PhoneNumbers_AdditionalInformation.getData()} </span> 
843                                                                        <span class="phone-number_number">puh. <a 
844                                                                                    href="tel:${phoneNumber.ServiceChannels_PhoneChannel_PhoneNumbers_PrefixNumber.getData()} ${phoneNumber.ServiceChannels_PhoneChannel_PhoneNumbers_Number.getData()}">${phoneNumber.ServiceChannels_PhoneChannel_PhoneNumbers_PrefixNumber.getData()} ${phoneNumber.ServiceChannels_PhoneChannel_PhoneNumbers_Number.getData()}</a></span> 
845                                                                    </li> 
846                                                                </#if> 
847                                                            </#list> 
848                                                        </ul> 
849                                                    </div> 
850                                                </div> 
851 
852                                                <!-- palveluajat --> 
853                                                <div class="schedule"> 
854                                                    <#assign serviceHourItems = "" /> 
855                                                    <#assign serviceHourItems = serviceHourParser.parse(channel.ServiceChannels_PhoneChannel_ServiceHours.getSiblings(), "ServiceChannels_PhoneChannel", locale) /> 
856 
857                                                    <#if serviceHourItems["DaysOfTheWeek"]?? > 
858                                                        <h4> 
859                                                            <@localize "ptv.standard.opening.times" /> 
860                                                        </h4> 
861 
862                                                        <#list serviceHourItems["DaysOfTheWeek"] as serviceHourItem > 
863                                                            <@parse_standard serviceHourItem /> 
864                                                        </#list> 
865                                                    </#if> 
866 
867                                                    <#if serviceHourItems["Special"]?? > 
868                                                        <#list serviceHourItems["Special"] as serviceHourItem > 
869                                                            <@parse_standard serviceHourItem /> 
870                                                        </#list> 
871                                                    </#if> 
872 
873                                                    <#if serviceHourItems["Exception"]?? > 
874                                                        <h4> 
875                                                            <@localize "ptv.exceptional.opening.times" /> 
876                                                        </h4> 
877 
878                                                        <#list serviceHourItems["Exception"] as serviceHourItem > 
879                                                            <@parse_standard serviceHourItem /> 
880                                                        </#list> 
881                                                    </#if> 
882                                                    <#if linkingInformations??> 
883                                                        <#list linkingInformations as linkingInfo> 
884                                                            <#if linkingInfo.ServiceChannels_Id?? && channel.ServiceChannels_PhoneChannel_Id??> 
885                                                                <#if linkingInfo.ServiceChannels_Id.getData() == channel.ServiceChannels_PhoneChannel_Id.getData()> 
886                                                                    <#if linkingInfo.ServiceChannels_Description?? || linkingInfo.ServiceChannels_ServiceHours??> 
887                                                                        <div class="additional-info"> 
888                                                                            <h4> 
889                                                                                <@localize "ptv.additional.info" /> 
890                                                                            </h4> 
891                                                                            <#if linkingInfo.ServiceChannels_Description??> 
892                                                                                <p> 
893                                                                                    ${linkingInfo.ServiceChannels_Description.getData()} 
894                                                                                </p> 
895                                                                            </#if> 
896 
897                                                                            <#if linkingInfo.ServiceChannels_ServiceHours??> 
898                                                                                <!-- palveluajat, liitännäistieto --> 
899                                                                                <#assign serviceHourItems = "" /> 
900                                                                                <#assign serviceHourItems = serviceHourParser.parse(linkingInfo.ServiceChannels_ServiceHours.getSiblings(), "ServiceChannels", locale) /> 
901                                                                                <#if serviceHourItems["DaysOfTheWeek"]?? > 
902                                                                                    <h5> 
903                                                                                        <@localize "ptv.service.opening.times" /> 
904                                                                                    </h5> 
905 
906                                                                                    <#list serviceHourItems["DaysOfTheWeek"] as serviceHourItem > 
907                                                                                        <@parse_standard serviceHourItem /> 
908                                                                                    </#list> 
909                                                                                </#if> 
910 
911                                                                                <#if serviceHourItems["Special"]?? > 
912                                                                                    <#list serviceHourItems["Special"] as serviceHourItem > 
913                                                                                        <@parse_standard serviceHourItem /> 
914                                                                                    </#list> 
915                                                                                </#if> 
916 
917                                                                                <#if serviceHourItems["Exception"]?? > 
918                                                                                    <h5> 
919                                                                                        <@localize "ptv.exceptional.opening.times" /> 
920                                                                                    </h5> 
921 
922                                                                                    <#list serviceHourItems["Exception"] as serviceHourItem > 
923                                                                                        <@parse_standard serviceHourItem /> 
924                                                                                    </#list> 
925                                                                                </#if> 
926                                                                            </#if> 
927                                                                        </div> 
928                                                                    </#if> 
929                                                                </#if> 
930                                                            </#if> 
931                                                        </#list> 
932                                                    </#if> 
933                                                </div> 
934                                            </div> 
935                                        </div> 
936                                    </div> 
937                                </div> 
938                            </#list> 
939                        </div> 
940                    </div> 
941                </div> 
942            </div> 
943        </#if> 
944 
945        <!-- 
946            palvelupaikat (locationChannel) 
947            - nimi "iisalmen terveyskeskus" serviceChannelNames 
948            - description "jos epäilet koronavirustartuntaa" serviceChannelDescriptions 
949            - käyntitiedot 
950                - ("korva-nenä ja kurkkutautien lääkärin vastaanotto" "addresses[type:Location].additionalInformation" 
951                - osoite 
952                    - katu addresses[type:Location].streetAddress.street[language:fi].value,  addresses[type:Location].streetNumber 
953                    - kunta addresses[type:Location].streetAddress.municipality[language:fi].value 
954                    - postinumero addresses[type:Location].streetAddress.postalCode 
955            - palveluajat (ma-pe 8:00-15:30) serviceHours (katso aiempi toteutus) 
956            - muut yhteystiedot (puhelin sairaanhoitajat, muut) 
957                - yhteystiedon nimi phoneNumbers.additionalInformation 
958                - yhteystiedon numero phoneNumbers.prefixNumber + phoneNumbers.number 
959        --> 
960        <#if ServiceChannels_LocationChannel?? && ServiceChannels_LocationChannel.getSiblings()??> 
961            <div class="panel top-panel" role="tablist"> 
962                <button 
963                    class="panel-header ptv-main-button collapseToggler" 
964                    id="${Id.getData()}_heading3" 
965                    data-toggle="liferay-collapse" 
966                    data-target="#col_${Id.getData()}_collapse3" 
967                    aria-expanded="false" 
968                    aria-controls="${Id.getData()}_collapse3" 
969
970                    <h2 class="panel-title">Käyntipaikat <span class="panel-title-count ptv-count">0</span></h2> 
971                     
972                </button> 
973 
974                <div id="col_${Id.getData()}_collapse3" class="panel-collapse collapse" 
975                     aria-labelledby="${Id.getData()}_heading3" data-parent="#ptv-panel-group_${Id.getData()}"> 
976                    <div class="panel-body"> 
977                        <div aria-orientation="vertical" class="panel-group servicechannel_child" 
978                             id="ptv-panel-group_${Id.getData()}_child-panel-group3"> 
979                            <#list ServiceChannels_LocationChannel.getSiblings() as channel> 
980                                <#assign kuntaList><#list channel.ServiceChannels_LocationChannel_Areas.ServiceChannels_LocationChannel_Areas_Municipality.getSiblings() as municipalities>${municipalities.ServiceChannels_LocationChannel_Areas_Municipality_Name.getData()},</#list></#assign> 
981                                <div class="panel sub-panel" datastuff="${kuntaList}"> 
982                                    <button 
983                                        class="panel-header-child collapseToggler" 
984                                        id="${Id.getData()}_heading3_${channel.ServiceChannels_LocationChannel_Id.getData()}" 
985                                        data-toggle="liferay-collapse" 
986                                        data-target="#col_${Id.getData()}_collapse3_childCollapse_${channel.ServiceChannels_LocationChannel_Id.getData()}" 
987                                        aria-expanded="false" 
988                                        aria-controls="${Id.getData()}_collapse3_childCollapse_${channel.ServiceChannels_LocationChannel_Id.getData()}" 
989
990                                        <span class="panel-title">${channel.ServiceChannels_LocationChannel_ServiceChannelNames_Name.getData()}</span> 
991                                         
992                                    </button> 
993 
994                                    <div id="col_${Id.getData()}_collapse3_childCollapse_${channel.ServiceChannels_LocationChannel_Id.getData()}" 
995                                         class="panel-collapse collapse" 
996                                         aria-labelledby="${Id.getData()}_heading3_${channel.ServiceChannels_LocationChannel_Id.getData()}" 
997                                         data-parent="#ptv-panel-group_${Id.getData()}_child-panel-group3" 
998
999                                        <div class="panel-body-child"> 
1000                                            <h3>${channel.ServiceChannels_LocationChannel_ServiceChannelNames_Name.getData()}</h3> 
1001 
1002                                            <#if channel.ServiceChannels_LocationChannel_ServiceChannelDescriptions_Description??> 
1003                                                <p> 
1004                                                    <@newLinesToBr data=channel.ServiceChannels_LocationChannel_ServiceChannelDescriptions_Description.getData() /> 
1005                                                </p> 
1006                                            </#if> 
1007 
1008                                            <#if channel.ServiceChannels_LocationChannel_Addresses?? && channel.ServiceChannels_LocationChannel_Addresses.getSiblings()??> 
1009                                                <br><h4> 
1010                                                Osoite 
1011                                            </h4><br> 
1012                                            </#if> 
1013 
1014                                            <#list channel.ServiceChannels_LocationChannel_Addresses.getSiblings() as address > 
1015                                                <#if address.ServiceChannels_LocationChannel_Addresses_Type.getData() == "Location" > 
1016                                                    <#if address.ServiceChannels_LocationChannel_Addresses_SubType.getData() == "Single"> 
1017                                                        <#list address.ServiceChannels_LocationChannel_Addresses_AddressHome.getSiblings() as home > 
1018                                                            <#assign actualAddressItem = home /> 
1019                                                        </#list> 
1020 
1021                                                        <p> 
1022                                                            ${actualAddressItem.ServiceChannels_LocationChannel_Addresses_AddressHome_AdditionalInformation.getData()} 
1023                                                        </p> 
1024 
1025                                                        <p> 
1026                                                            <span class="address_street"> 
1027                                                                ${actualAddressItem.ServiceChannels_LocationChannel_Addresses_AddressHome_Street.getData()} 
1028                                                                ${actualAddressItem.ServiceChannels_LocationChannel_Addresses_AddressHome_StreetNumber.getData()}, 
1029                                                            </span> 
1030 
1031                                                            <span class="address_city"> 
1032                                                                ${actualAddressItem.ServiceChannels_LocationChannel_Addresses_AddressHome_PostalCode.getData()} 
1033                                                                ${actualAddressItem.ServiceChannels_LocationChannel_Addresses_AddressHome_PostOffice.getData()} 
1034                                                            </span> 
1035                                                        </p><br> 
1036                                                    </#if> 
1037                                                </#if> 
1038                                            </#list> 
1039 
1040                                            <!-- palveluajat --> 
1041                                            <#assign serviceHourItems = "" /> 
1042                                            <#assign serviceHourItems = serviceHourParser.parse(channel.ServiceChannels_LocationChannel_ServiceHours.getSiblings(), "ServiceChannels_LocationChannel", locale) /> 
1043 
1044                                            <#if serviceHourItems["DaysOfTheWeek"]?? > 
1045                                                <h4> 
1046                                                    <@localize "ptv.standard.opening.times" /> 
1047                                                </h4> 
1048 
1049                                                <#list serviceHourItems["DaysOfTheWeek"] as serviceHourItem > 
1050                                                    <@parse_standard serviceHourItem /> 
1051                                                </#list> 
1052                                            </#if> 
1053 
1054                                            <#if serviceHourItems["Special"]?? > 
1055                                                <#list serviceHourItems["Special"] as serviceHourItem > 
1056                                                    <@parse_standard serviceHourItem /> 
1057                                                </#list> 
1058                                            </#if> 
1059 
1060                                            <#if serviceHourItems["Exception"]?? > 
1061                                                <h4> 
1062                                                    <@localize "ptv.exceptional.opening.times" /> 
1063                                                </h4> 
1064 
1065                                                <#list serviceHourItems["Exception"] as serviceHourItem > 
1066                                                    <@parse_standard serviceHourItem /> 
1067                                                </#list> 
1068                                            </#if> 
1069 
1070                                            <!-- Muut yhteystiedot --> 
1071                                            <h4>Muut yhteystiedot</h4> 
1072 
1073                                            <#if channel.ServiceChannels_LocationChannel_Emails?? && channel.ServiceChannels_LocationChannel_Emails.getData()?? && channel.ServiceChannels_LocationChannel_Emails.getData() != ""> 
1074                                                <h5>Sähköposti</h5> 
1075 
1076                                                <p> 
1077                                                    <a href="mailto: ${channel.ServiceChannels_LocationChannel_Emails.getData()}"> 
1078                                                        ${channel.ServiceChannels_LocationChannel_Emails.getData()} 
1079                                                    </a> 
1080                                                </p> 
1081                                            </#if> 
1082 
1083                                            <#if channel.ServiceChannels_LocationChannel_PhoneNumbers?? && channel.ServiceChannels_LocationChannel_PhoneNumbers.getSiblings()??> 
1084                                                <#list channel.ServiceChannels_LocationChannel_PhoneNumbers.getSiblings() as phoneNumber> 
1085                                                    <#assign actualPhoneNumberItem = phoneNumber /> 
1086                                                </#list> 
1087 
1088                                                <#if 
1089                                                actualPhoneNumberItem.ServiceChannels_LocationChannel_PhoneNumbers_Number?? && 
1090                                                actualPhoneNumberItem.ServiceChannels_LocationChannel_PhoneNumbers_Number.getData()?? && 
1091                                                actualPhoneNumberItem.ServiceChannels_LocationChannel_PhoneNumbers_Number.getData() != "" 
1092
1093                                                    <h5>Puhelin</h5> 
1094 
1095                                                    <ul> 
1096                                                        <#list channel.ServiceChannels_LocationChannel_PhoneNumbers.getSiblings() as phoneNumber> 
1097                                                            <li> 
1098                                                                puh. 
1099                                                                <a href="tel:${phoneNumber.ServiceChannels_LocationChannel_PhoneNumbers_PrefixNumber.getData()} ${phoneNumber.ServiceChannels_LocationChannel_PhoneNumbers_Number.getData()}"> 
1100                                                                    <#if 
1101                                                                    phoneNumber.ServiceChannels_LocationChannel_PhoneNumbers_PrefixNumber?? && 
1102                                                                    phoneNumber.ServiceChannels_LocationChannel_PhoneNumbers_PrefixNumber.getData()?? && 
1103                                                                    phoneNumber.ServiceChannels_LocationChannel_PhoneNumbers_PrefixNumber.getData() != "" && 
1104                                                                    phoneNumber.ServiceChannels_LocationChannel_PhoneNumbers_Number?? && 
1105                                                                    phoneNumber.ServiceChannels_LocationChannel_PhoneNumbers_Number.getData()?? && 
1106                                                                    phoneNumber.ServiceChannels_LocationChannel_PhoneNumbers_Number.getData() != "" 
1107
1108                                                                        ${phoneNumber.ServiceChannels_LocationChannel_PhoneNumbers_PrefixNumber.getData()}&nbsp; 
1109                                                                    </#if> 
1110 
1111                                                                    <#if 
1112                                                                    phoneNumber.ServiceChannels_LocationChannel_PhoneNumbers_Number?? && 
1113                                                                    phoneNumber.ServiceChannels_LocationChannel_PhoneNumbers_Number.getData()?? && 
1114                                                                    phoneNumber.ServiceChannels_LocationChannel_PhoneNumbers_Number.getData() != "" 
1115
1116                                                                        ${phoneNumber.ServiceChannels_LocationChannel_PhoneNumbers_Number.getData()} 
1117                                                                    </#if> 
1118                                                                </a> 
1119                                                            </li> 
1120                                                        </#list> 
1121                                                    </ul> 
1122                                                </#if> 
1123                                            </#if> 
1124 
1125                                            <#if channel.ServiceChannels_LocationChannel_Addresses?? && channel.ServiceChannels_LocationChannel_Addresses.getSiblings()??> 
1126                                                <#list channel.ServiceChannels_LocationChannel_Addresses.getSiblings() as address > 
1127                                                    <#if address.ServiceChannels_LocationChannel_Addresses_Type.getData() == "Location" > 
1128                                                        <#if address.ServiceChannels_LocationChannel_Addresses_SubType.getData() == "Single"> 
1129                                                            <#if address.ServiceChannels_LocationChannel_Addresses_PostOfficeBox?? && address.ServiceChannels_LocationChannel_Addresses_PostOfficeBox.getSiblings()??> 
1130                                                                <#list address.ServiceChannels_LocationChannel_Addresses_PostOfficeBox.getSiblings() as postOfficeBox > 
1131                                                                    <#assign actualAddressItem = postOfficeBox /> 
1132                                                                </#list> 
1133 
1134                                                                <#if 
1135
1136                                                                actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox_AdditionalInformation?? && 
1137                                                                actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox_AdditionalInformation.getData()?? && 
1138                                                                actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox_AdditionalInformation.getData()?? != "" 
1139                                                                ) || 
1140
1141                                                                actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox?? && 
1142                                                                actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox_postOfficeBox.getData()?? && 
1143                                                                actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox_postOfficeBox.getData()?? != "" && 
1144                                                                actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox_PostalCode.getData()?? && 
1145                                                                actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox_PostalCode.getData()?? != "" && 
1146                                                                actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox_PostOffice.getData()?? && 
1147                                                                actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox_PostOffice.getData()?? != "" 
1148
1149
1150                                                                    <h5>Postiosoite</h5> 
1151                                                                </#if> 
1152 
1153                                                                <#if 
1154                                                                actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox_AdditionalInformation?? && 
1155                                                                actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox_AdditionalInformation.getData()?? && 
1156                                                                actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox_AdditionalInformation.getData()?? != "" 
1157
1158                                                                    <p> 
1159                                                                        ${actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox_AdditionalInformation.getData()} 
1160                                                                    </p> 
1161                                                                </#if> 
1162 
1163                                                                <#if 
1164                                                                actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox?? && 
1165                                                                actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox_postOfficeBox.getData()?? && 
1166                                                                actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox_postOfficeBox.getData()?? != "" && 
1167                                                                actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox_PostalCode.getData()?? && 
1168                                                                actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox_PostalCode.getData()?? != "" && 
1169                                                                actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox_PostOffice.getData()?? && 
1170                                                                actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox_PostOffice.getData()?? != "" 
1171
1172                                                                    <p> 
1173                                                                        <span class="address_street"> 
1174                                                                            ${actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox_postOfficeBox.getData()} 
1175                                                                        </span> 
1176 
1177                                                                        <span class="address_city"> 
1178                                                                            ${actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox_PostalCode.getData()}&nbsp; 
1179                                                                            ${actualAddressItem.ServiceChannels_LocationChannel_Addresses_postOfficeBox_PostOffice.getData()} 
1180                                                                        </span> 
1181                                                                    </p> 
1182                                                                </#if> 
1183                                                            </#if> 
1184                                                        </#if> 
1185                                                    </#if> 
1186                                                </#list> 
1187                                            </#if> 
1188 
1189                                            <#if channel.ServiceChannels_LocationChannel_WebPages?? && channel.ServiceChannels_LocationChannel_WebPages.getSiblings()??> 
1190                                                <#list channel.ServiceChannels_LocationChannel_WebPages.getSiblings() as webPage> 
1191                                                    <#assign actualWebPageItem = webPage /> 
1192                                                </#list> 
1193 
1194                                                <#if 
1195                                                actualWebPageItem.ServiceChannels_LocationChannel_PhoneNumbers_Number?? && 
1196                                                actualWebPageItem.ServiceChannels_LocationChannel_PhoneNumbers_Number.getData()?? && 
1197                                                actualWebPageItem.ServiceChannels_LocationChannel_PhoneNumbers_Number.getData() != "" 
1198
1199                                                    <h5>Verkkosivu</h5> 
1200 
1201                                                    <ul> 
1202                                                        <#list channel.ServiceChannels_LocationChannel_WebPages.getSiblings() as webPage> 
1203                                                            <#if 
1204                                                            webPage.ServiceChannels_LocationChannel_WebPages_Url?? && 
1205                                                            webPage.ServiceChannels_LocationChannel_WebPages_Url.getData()?? && 
1206                                                            webPage.ServiceChannels_LocationChannel_WebPages_Url.getData() != "" 
1207
1208                                                                <li> 
1209                                                                    <a target="_blank" 
1210                                                                       href="${webPage.ServiceChannels_LocationChannel_WebPages_Url.getData()}" 
1211                                                                       rel="noopener noreferrer"> 
1212                                                                        <#if 
1213                                                                        webPage.ServiceChannels_LocationChannel_WebPages_Value?? && 
1214                                                                        webPage.ServiceChannels_LocationChannel_WebPages_Value.getData()?? && 
1215                                                                        webPage.ServiceChannels_LocationChannel_WebPages_Value.getData() != "" 
1216
1217                                                                            ${webPage.ServiceChannels_LocationChannel_WebPages_Value.getData()} 
1218                                                                        <#else> 
1219                                                                            ${webPage.ServiceChannels_LocationChannel_WebPages_Url.getData()} 
1220                                                                        </#if> 
1221                                                                    </a> 
1222                                                                </li> 
1223                                                            </#if> 
1224                                                        </#list> 
1225                                                    </ul> 
1226                                                </#if> 
1227                                            </#if> 
1228                                            <#if linkingInformations??> 
1229                                                <#list linkingInformations as linkingInfo> 
1230                                                    <#if linkingInfo.ServiceChannels_Id?? && channel.ServiceChannels_LocationChannel_Id??> 
1231                                                        <#if linkingInfo.ServiceChannels_Id.getData() == channel.ServiceChannels_LocationChannel_Id.getData()> 
1232                                                            <#if linkingInfo.ServiceChannels_Description?? || linkingInfo.ServiceChannels_ServiceHours??> 
1233                                                                <div class="additional-info"> 
1234                                                                    <h4> 
1235                                                                        <@localize "ptv.additional.info" /> 
1236                                                                    </h4> 
1237                                                                    <#if linkingInfo.ServiceChannels_Description??> 
1238                                                                        <p> 
1239                                                                            ${linkingInfo.ServiceChannels_Description.getData()} 
1240                                                                        </p> 
1241                                                                    </#if> 
1242 
1243                                                                    <#if linkingInfo.ServiceChannels_ServiceHours??> 
1244                                                                        <!-- palveluajat, liitännäistieto --> 
1245                                                                        <#assign serviceHourItems = "" /> 
1246                                                                        <#assign serviceHourItems = serviceHourParser.parse(linkingInfo.ServiceChannels_ServiceHours.getSiblings(), "ServiceChannels", locale) /> 
1247 
1248                                                                        <#if serviceHourItems["DaysOfTheWeek"]?? > 
1249                                                                            <h5> 
1250                                                                                <@localize "ptv.service.opening.times" /> 
1251                                                                            </h5> 
1252                                                                            <#list serviceHourItems["DaysOfTheWeek"] as serviceHourItem > 
1253                                                                                <@parse_standard serviceHourItem /> 
1254                                                                            </#list> 
1255                                                                        </#if> 
1256 
1257                                                                        <#if serviceHourItems["Special"]?? > 
1258                                                                            <#list serviceHourItems["Special"] as serviceHourItem > 
1259                                                                                <@parse_standard serviceHourItem /> 
1260                                                                            </#list> 
1261                                                                        </#if> 
1262 
1263                                                                        <#if serviceHourItems["Exception"]?? > 
1264                                                                            <#list serviceHourItems["Exception"] as serviceHourItem > 
1265                                                                                <@parse_standard serviceHourItem /> 
1266                                                                            </#list> 
1267                                                                        </#if> 
1268                                                                    </#if> 
1269                                                                </div> 
1270                                                            </#if> 
1271                                                        </#if> 
1272                                                    </#if> 
1273                                                </#list> 
1274                                            </#if> 
1275                                        </div> 
1276                                    </div> 
1277                                </div> 
1278                            </#list> 
1279                        </div> 
1280                    </div> 
1281                </div> 
1282            </div> 
1283        </#if> 
1284 
1285        <!-- 
1286            lomakkeet (printableFormChannel) 
1287            - nimi serviceChannelNames 
1288            - [lomake] 
1289                - lomakkeen nimi (sama kuin nimi) serviceChannelNames 
1290                - linkki lomakkeeseen channelUrls.value 
1291        --> 
1292        <#if ServiceChannels_PrintableFormChannel?? && ServiceChannels_PrintableFormChannel.getSiblings()?? > 
1293            <div class="panel top-panel" role="tablist"> 
1294                <button 
1295                    class="panel-header ptv-main-button collapseToggler" 
1296                    id="col_${Id.getData()}_heading2" 
1297                    data-toggle="liferay-collapse" 
1298                    data-target="#col_${Id.getData()}_collapse2" 
1299                    aria-expanded="false" 
1300                    aria-controls="${Id.getData()}_collapse2" 
1301
1302                    <h2 class="panel-title">Lomakkeet <span class="panel-title-count ptv-count">0</span></h2> 
1303                </button> 
1304                <div id="col_${Id.getData()}_collapse2" class="panel-collapse collapse" 
1305                     aria-labelledby="${Id.getData()}_heading2" data-parent="#ptv-panel-group_${Id.getData()}"> 
1306                    <div class="panel-body"> 
1307                        <div aria-orientation="vertical" class="panel-group servicechannel_child" 
1308                             id="ptv-panel-group_${Id.getData()}_child-panel-group2"> 
1309                            <#list ServiceChannels_PrintableFormChannel.getSiblings() as channel> 
1310                                <#assign kuntaList><#list channel.ServiceChannels_PrintableFormChannel_Areas.ServiceChannels_PrintableFormChannel_Areas_Municipality.getSiblings() as municipalities>${municipalities.ServiceChannels_PrintableFormChannel_Areas_Municipality_Name.getData()},</#list></#assign> 
1311                                <div class="panel sub-panel" datastuff="${kuntaList}"> 
1312                                    <button 
1313                                        class="panel-header-child collapseToggler" 
1314                                        id="${Id.getData()}_heading1_${channel.ServiceChannels_PrintableFormChannel_Id.getData()}" 
1315                                        data-toggle="liferay-collapse" 
1316                                        data-target="#col_${Id.getData()}_collapse2_childCollapse_${channel.ServiceChannels_PrintableFormChannel_Id.getData()}" 
1317                                        aria-expanded="false" 
1318                                        aria-controls="${Id.getData()}_collapse2_childCollapse_${channel.ServiceChannels_PrintableFormChannel_Id.getData()}" 
1319
1320                                        <span class="panel-title">${channel.ServiceChannels_PrintableFormChannel_ServiceChannelNames_Name.getData()}</span> 
1321                                         
1322                                    </button> 
1323 
1324                                    <div id="col_${Id.getData()}_collapse2_childCollapse_${channel.ServiceChannels_PrintableFormChannel_Id.getData()}" 
1325                                         class="panel-collapse collapse" 
1326                                         aria-labelledby="${Id.getData()}_heading1_${channel.ServiceChannels_PrintableFormChannel_Id.getData()}" 
1327                                         data-parent="#ptv-panel-group_${Id.getData()}_child-panel-group2" 
1328
1329                                        <div class="panel-body-child"> 
1330                                            <h3>${channel.ServiceChannels_PrintableFormChannel_ServiceChannelNames_Name.getData()}</h3> 
1331 
1332                                            <#if channel.ServiceChannels_PrintableFormChannel_ServiceChannelDescriptions_ShortDescription??> 
1333                                                <p> 
1334                                                    ${channel.ServiceChannels_PrintableFormChannel_ServiceChannelDescriptions_ShortDescription.getData()} 
1335                                                </p> 
1336                                            </#if> 
1337 
1338                                            <a href="${channel.ServiceChannels_PrintableFormChannel_ChannelUrls_PDF.getData()}" 
1339                                               target="_blank" rel="noopener noreferrer"> 
1340                                                ${channel.ServiceChannels_PrintableFormChannel_ServiceChannelNames_Name.getData()} 
1341                                            </a> 
1342                                            <#if linkingInformations??> 
1343 
1344                                                <#list linkingInformations as linkingInfo> 
1345                                                    <#if linkingInfo.ServiceChannels_Id?? && channel.ServiceChannels_PrintableFormChannel_Id??> 
1346                                                        <#if linkingInfo.ServiceChannels_Id.getData() == channel.ServiceChannels_PrintableFormChannel_Id.getData()> 
1347                                                            <#if linkingInfo.ServiceChannels_Description?? || linkingInfo.ServiceChannels_ServiceHours??> 
1348                                                                <div class="additional-info"> 
1349                                                                    <h4> 
1350                                                                        <@localize "ptv.additional.info" /> 
1351                                                                    </h4> 
1352                                                                    <#if linkingInfo.ServiceChannels_Description??> 
1353                                                                        <p> 
1354                                                                            ${linkingInfo.ServiceChannels_Description.getData()} 
1355                                                                        </p> 
1356                                                                    </#if> 
1357 
1358                                                                    <#if linkingInfo.ServiceChannels_ServiceHours??> 
1359                                                                        <!-- palveluajat, liitännäistieto --> 
1360                                                                        <#assign serviceHourItems = "" /> 
1361                                                                        <#assign serviceHourItems = serviceHourParser.parse(linkingInfo.ServiceChannels_ServiceHours.getSiblings(), "ServiceChannels", locale) /> 
1362 
1363                                                                        <#if serviceHourItems["DaysOfTheWeek"]?? > 
1364                                                                            <h5> 
1365                                                                                <@localize "ptv.service.opening.times" /> 
1366                                                                            </h5> 
1367 
1368                                                                            <#list serviceHourItems["DaysOfTheWeek"] as serviceHourItem > 
1369                                                                                <@parse_standard serviceHourItem /> 
1370                                                                            </#list> 
1371                                                                        </#if> 
1372 
1373                                                                        <#if serviceHourItems["Special"]?? > 
1374                                                                            <#list serviceHourItems["Special"] as serviceHourItem > 
1375                                                                                <@parse_standard serviceHourItem /> 
1376                                                                            </#list> 
1377                                                                        </#if> 
1378 
1379                                                                        <#if serviceHourItems["Exception"]?? > 
1380                                                                            <h5> 
1381                                                                                <@localize "ptv.exceptional.opening.times" /> 
1382                                                                            </h5> 
1383 
1384                                                                            <#list serviceHourItems["Exception"] as serviceHourItem > 
1385                                                                                <@parse_standard serviceHourItem /> 
1386                                                                            </#list> 
1387                                                                        </#if> 
1388                                                                    </#if> 
1389                                                                </div> 
1390                                                            </#if> 
1391                                                        </#if> 
1392                                                    </#if> 
1393                                                </#list> 
1394                                            </#if> 
1395                                        </div> 
1396                                    </div> 
1397                                </div> 
1398                            </#list> 
1399                        </div> 
1400                    </div> 
1401                </div> 
1402            </div> 
1403        </#if> 
1404 
1405        <!-- 
1406            linkit (webPageChannel) 
1407            - nimi "neuvolan verkkosivut" 
1408            - linkit ("neuvolan verkkosivut, ylasavonsote.fi/neuvolat") 
1409        --> 
1410        <#if ServiceChannels_WebPageChannel?? && ServiceChannels_WebPageChannel.getSiblings()?? > 
1411            <div class="panel top-panel" role="tablist"> 
1412                <button 
1413                    class="panel-header ptv-main-button collapseToggler" 
1414                    id="col_${Id.getData()}_heading5" 
1415                    data-toggle="liferay-collapse" 
1416                    data-target="#col_${Id.getData()}_collapse5" 
1417                    aria-expanded="false" 
1418                    aria-controls="${Id.getData()}_collapse5" 
1419
1420                    <h2 class="panel-title">Linkit <span class="panel-title-count ptv-count">0</span></h2> 
1421                     
1422                </button> 
1423 
1424                <div id="col_${Id.getData()}_collapse5" class="panel-collapse collapse" aria-labelledby="${Id.getData()}_heading5" data-parent="#ptv-panel-group_${Id.getData()}"> 
1425                    <div class="panel-body"> 
1426                        <div aria-orientation="vertical" class="panel-group servicechannel_child" id="ptv-panel-group_${Id.getData()}_child-panel-group5"> 
1427                            <#list ServiceChannels_WebPageChannel.getSiblings() as channel> 
1428                                <#assign kuntaList><#list channel.ServiceChannels_WebPageChannel_Areas.ServiceChannels_WebPageChannel_Areas_Municipality.getSiblings() as municipalities>${municipalities.ServiceChannels_WebPageChannel_Areas_Municipality_Name.getData()},</#list></#assign> 
1429                                <div class="panel sub-panel" datastuff="${kuntaList}"> 
1430                                    <button 
1431                                        class="panel-header-child collapseToggler" 
1432                                        id="${Id.getData()}_heading5_${channel.ServiceChannels_WebPageChannel_Id.getData()}" 
1433                                        data-toggle="liferay-collapse" 
1434                                        data-target="#col_${Id.getData()}_collapse5_childCollapse_${channel.ServiceChannels_WebPageChannel_Id.getData()}" 
1435                                        aria-expanded="false" 
1436                                        aria-controls="${Id.getData()}_collapse5_childCollapse_${channel.ServiceChannels_WebPageChannel_Id.getData()}" 
1437
1438                                        <span class="panel-title">${channel.ServiceChannels_WebPageChannel_ServiceChannelNames_Name.getData()}</span> 
1439                                    </button> 
1440 
1441                                    <div 
1442                                            id="col_${Id.getData()}_collapse5_childCollapse_${channel.ServiceChannels_WebPageChannel_Id.getData()}" 
1443                                            class="panel-collapse collapse" 
1444                                            aria-labelledby="${Id.getData()}_heading5_${channel.ServiceChannels_WebPageChannel_Id.getData()}" 
1445                                            data-parent="#ptv-panel-group_${Id.getData()}_child-panel-group5" 
1446
1447                                        <div class="panel-body-child"> 
1448                                            <h3>${channel.ServiceChannels_WebPageChannel_ServiceChannelNames_Name.getData()}</h3> 
1449 
1450                                            <#if channel.ServiceChannels_WebPageChannel_ServiceChannelDescriptions_ShortDescription??> 
1451                                                <p> 
1452                                                    ${channel.ServiceChannels_WebPageChannel_ServiceChannelDescriptions_ShortDescription.getData()} 
1453                                                </p> 
1454                                            </#if> 
1455 
1456                                            <ul class="links"> 
1457                                                <#list channel.ServiceChannels_WebPageChannel_WebPages.getSiblings() as webPage> 
1458                                                    <li> 
1459                                                        <a href="${webPage.ServiceChannels_WebPageChannel_WebPages_Url.getData()}" target="_blank" rel="noopener noreferrer"> 
1460                                                            <#if webPage.ServiceChannels_WebPageChannel_WebPages_Value.getData() != ""> 
1461                                                                ${webPage.ServiceChannels_WebPageChannel_WebPages_Value.getData()} 
1462                                                            <#else> 
1463                                                                ${channel.ServiceChannels_WebPageChannel_ServiceChannelNames_Name.getData()} 
1464                                                            </#if> 
1465                                                        </a> 
1466                                                    </li> 
1467                                                </#list> 
1468                                            </ul> 
1469                                        </div> 
1470                                    </div> 
1471                                </div> 
1472                            </#list> 
1473                        </div> 
1474                    </div> 
1475                </div> 
1476            </div> 
1477        </#if> 
1478         
1479        <!-- POISTA KUN TABIT TOIMII (alempaa) 
1480        <div class="to-be-deleted"> 
1481            <#if ServiceDescriptions_GD_BackgroundDescription?? && ServiceDescriptions_GD_BackgroundDescription.getData() != "">    
1482                <h2>Tausta</h2> 
1483                <#if ServiceDescriptions_GD_BackgroundDescription.getData() != ""> 
1484                    <p>${ServiceDescriptions_GD_BackgroundDescription.getData()}</p> 
1485                </#if> 
1486                <br> 
1487            </#if> 
1488             
1489            <#if Legislation??> 
1490                <h2>Lainsäädäntö</h2><br> 
1491                <#list Legislation.getSiblings() as name> 
1492                    <p>${name.Legislation_Names.getData()}</p><br> 
1493                </#list> 
1494            </#if> 
1495            <#if Legislation_WebPages?? && Legislation_WebPages.getSiblings()??> 
1496                <#list Legislation_WebPages.getSiblings() as site> 
1497                    <#if site.Legislation_WebPages_Url.getData()?? && site.Legislation_WebPages_Url.getData() != ""> 
1498                        <a href="${site.Legislation_WebPages_Url.getData()}">${site.Legislation_WebPages_Url.getData()}</a><br> 
1499                    </#if> 
1500                </#list> 
1501            </#if> 
1502     
1503            <#if OntologyTerms?? && OntologyTerms.getSiblings()??> 
1504                <#list OntologyTerms.getSiblings() as terms> 
1505                    <p>${terms.OntologyTerms_Name.getData()}</p> 
1506                </#list> 
1507            </#if> 
1508        </div> 
1509        POISTA KUN TABIT TOIMII (ylempää)--> 
1510         
1511        <!-- TABS --> 
1512        <#assign flag = 0> 
1513        <#if Legislation??> 
1514            <#list Legislation.getSiblings() as name> 
1515                <#if name.Legislation_Names.getData() != "">  
1516                    <#assign flag = 1>  
1517                </#if> 
1518            </#list> 
1519        </#if> 
1520         
1521        <#if (ServiceDescriptions_ChargeTypeAdditionalInfo?? && ServiceDescriptions_ChargeTypeAdditionalInfo.getData() != "") || (ServiceDescriptions_GD_BackgroundDescription?? && ServiceDescriptions_GD_BackgroundDescription.getData() != "") || flag == 1> 
1522            <div class="ptv-tab-content"> 
1523                <div class="tab"> 
1524                    <#if ServiceDescriptions_GD_BackgroundDescription?? && ServiceDescriptions_GD_BackgroundDescription.getData() != ""> 
1525                        <button class="tablinks" onclick="switchTab(event, 'BackgroundInfo')">Tausta</button> 
1526                    </#if> 
1527                    <#if ServiceDescriptions_ChargeTypeAdditionalInfo?? && ServiceDescriptions_ChargeTypeAdditionalInfo.getData() != ""> 
1528                        <button class="tablinks" onclick="switchTab(event, 'CustomerPayments')">Asiakasmaksut</button> 
1529                    </#if> 
1530                    <#if Legislation?? || (Legislation_WebPages?? && Legislation_WebPages.getSiblings()??) || flag == 1> 
1531                        <button class="tablinks" onclick="switchTab(event, 'Legislation')">Lainsäädäntö</button> 
1532                    </#if> 
1533                </div> 
1534 
1535                <div id="BackgroundInfo" class="tabcontent"> 
1536                    <#if ServiceDescriptions_GD_BackgroundDescription?? && ServiceDescriptions_GD_BackgroundDescription.getData() != ""> 
1537                        <p>${ServiceDescriptions_GD_BackgroundDescription.getData()}</p> 
1538                    </#if> 
1539                </div> 
1540 
1541                <#if ServiceDescriptions_ChargeTypeAdditionalInfo?? && ServiceDescriptions_ChargeTypeAdditionalInfo.getData() != ""> 
1542                    <div id="CustomerPayments" class="tabcontent"> 
1543                        <p>${ServiceDescriptions_ChargeTypeAdditionalInfo.getData()}</p> 
1544                    </div> 
1545                </#if> 
1546 
1547                <div id="Legislation" class="tabcontent"> 
1548                    <p> 
1549                        <#if Legislation??> 
1550                            <#list Legislation.getSiblings() as name> 
1551                                <#if name.Legislation_Names.getData() != "">  
1552                                    ${name.Legislation_Names.getData()}:  
1553                                </#if> 
1554                            </#list> 
1555                        </#if> 
1556                        <#if Legislation_WebPages?? && Legislation_WebPages.getSiblings()??> 
1557                            <ul class="tablist"> 
1558                            <#list Legislation_WebPages.getSiblings() as site> 
1559                                <#if site.Legislation_WebPages_Url.getData()?? && site.Legislation_WebPages_Url.getData() != ""> 
1560                                    <li><a href="${site.Legislation_WebPages_Url.getData()}">${site.Legislation_WebPages_Url.getData()}</a></li><br> 
1561                                </#if> 
1562                            </#list> 
1563                            </ul> 
1564                        </#if> 
1565                    </p> 
1566                </div> 
1567            </div> 
1568        </#if> 
1569        <!-- TABS--> 
1570    </div> 
1571</div> 
1572 
1573<div class="lapha_ptv-phonebook-item"> 
1574    <#if ServiceChannels_PhoneChannel?? && ServiceChannels_PhoneChannel.getSiblings?? > 
1575        <#list ServiceChannels_PhoneChannel.getSiblings() as channel> 
1576            <div class="panel-body-child"> 
1577                <h3>${channel.ServiceChannels_PhoneChannel_ServiceChannelNames_Name.getData()}</h3> 
1578 
1579                <#if channel.ServiceChannels_PhoneChannel_ServiceChannelDescriptions_Description??> 
1580                    <p> 
1581                        <@newLinesToBr data=channel.ServiceChannels_PhoneChannel_ServiceChannelDescriptions_Description.getData() /> 
1582                    </p> 
1583                </#if> 
1584 
1585                <div class="phone-channel_phone-numbers_container container-fluid"> 
1586                    <ul class="phone-channel_phone-numbers_row row no-gutters"> 
1587                        <#list channel.ServiceChannels_PhoneChannel_PhoneNumbers.getSiblings() as phoneNumber > 
1588                            <#if phoneNumber.ServiceChannels_PhoneChannel_PhoneNumbers_Language.getData() == locale?split("_")[0] > 
1589                                <li class="col-12 col-md-6"> 
1590                                    <span class="phone-number_info">${phoneNumber.ServiceChannels_PhoneChannel_PhoneNumbers_AdditionalInformation.getData()} </span> 
1591                                    <span class="phone-number_number">puh. <a 
1592                                                href="tel:${phoneNumber.ServiceChannels_PhoneChannel_PhoneNumbers_PrefixNumber.getData()} ${phoneNumber.ServiceChannels_PhoneChannel_PhoneNumbers_Number.getData()}">${phoneNumber.ServiceChannels_PhoneChannel_PhoneNumbers_PrefixNumber.getData()} ${phoneNumber.ServiceChannels_PhoneChannel_PhoneNumbers_Number.getData()}</a></span> 
1593                                </li> 
1594                            </#if> 
1595                        </#list> 
1596                    </ul> 
1597                </div> 
1598 
1599                <!-- palveluajat --> 
1600                <#assign serviceHourItems = "" /> 
1601                <#assign serviceHourItems = serviceHourParser.parse(channel.ServiceChannels_PhoneChannel_ServiceHours.getSiblings(), "ServiceChannels_PhoneChannel", locale) /> 
1602 
1603                <#if serviceHourItems["DaysOfTheWeek"]?? > 
1604                    <h4> 
1605                        <@localize "ptv.standard.opening.times" /> 
1606                    </h4> 
1607 
1608                    <#list serviceHourItems["DaysOfTheWeek"] as serviceHourItem > 
1609                        <@parse_standard serviceHourItem /> 
1610                    </#list> 
1611                </#if> 
1612 
1613                <#if serviceHourItems["Special"]?? > 
1614                    <#list serviceHourItems["Special"] as serviceHourItem > 
1615                        <@parse_standard serviceHourItem /> 
1616                    </#list> 
1617                </#if> 
1618 
1619                <#if serviceHourItems["Exception"]?? > 
1620                    <h4> 
1621                        <@localize "ptv.exceptional.opening.times" /> 
1622                    </h4> 
1623 
1624                    <#list serviceHourItems["Exception"] as serviceHourItem > 
1625                        <@parse_standard serviceHourItem /> 
1626                    </#list> 
1627                </#if> 
1628                <#if linkingInformations??> 
1629                    <#list linkingInformations as linkingInfo> 
1630                        <#if linkingInfo.ServiceChannels_Id?? && channel.ServiceChannels_PhoneChannel_Id??> 
1631                            <#if linkingInfo.ServiceChannels_Id.getData() == channel.ServiceChannels_PhoneChannel_Id.getData()> 
1632                                <#if linkingInfo.ServiceChannels_Description?? || linkingInfo.ServiceChannels_ServiceHours??> 
1633                                    <div class="additional-info"> 
1634                                        <h4> 
1635                                            <@localize "ptv.additional.info" /> 
1636                                        </h4> 
1637                                        <#if linkingInfo.ServiceChannels_Description??> 
1638                                            <p> 
1639                                                ${linkingInfo.ServiceChannels_Description.getData()} 
1640                                            </p> 
1641                                        </#if> 
1642 
1643                                        <#if linkingInfo.ServiceChannels_ServiceHours??> 
1644                                            <!-- palveluajat, liitännäistieto --> 
1645                                            <#assign serviceHourItems = "" /> 
1646                                            <#assign serviceHourItems = serviceHourParser.parse(linkingInfo.ServiceChannels_ServiceHours.getSiblings(), "ServiceChannels", locale) /> 
1647                                            <#if serviceHourItems["DaysOfTheWeek"]?? > 
1648                                                <h5> 
1649                                                    <@localize "ptv.service.opening.times" /> 
1650                                                </h5> 
1651 
1652                                                <#list serviceHourItems["DaysOfTheWeek"] as serviceHourItem > 
1653                                                    <@parse_standard serviceHourItem /> 
1654                                                </#list> 
1655                                            </#if> 
1656 
1657                                            <#if serviceHourItems["Special"]?? > 
1658                                                <#list serviceHourItems["Special"] as serviceHourItem > 
1659                                                    <@parse_standard serviceHourItem /> 
1660                                                </#list> 
1661                                            </#if> 
1662 
1663                                            <#if serviceHourItems["Exception"]?? > 
1664                                                <h5> 
1665                                                    <@localize "ptv.exceptional.opening.times" /> 
1666                                                </h5> 
1667 
1668                                                <#list serviceHourItems["Exception"] as serviceHourItem > 
1669                                                    <@parse_standard serviceHourItem /> 
1670                                                </#list> 
1671                                            </#if> 
1672                                        </#if> 
1673                                    </div> 
1674                                </#if> 
1675                            </#if> 
1676                        </#if> 
1677                    </#list> 
1678                </#if> 
1679            </div> 
1680        </#list> 
1681    </#if> 
1682</div> 
1683 
1684<div class="lapha_ptv-service-list-item"> 
1685    <span>${ServiceNames_Name.getData()}</span><br> 
1686</div>