[def utils = ctx.utils] [call "comp:title"]_澳门葡京手机版app下载

[call "comp:title"]

[call "comp:link-other-language"] [!-- Generate filters lists --] [def topicsFiltersList = #()] [def levelFiltersList = #()] [def groupedTypeFiltersMap = { "bachelor": "filter-bachelor-three-years", "master": "filter-five-and-six-year-programmes", "phd": "filter-phd-programmes", "one-year": "filter-one-year-programmes-and-shorter", "half-year": "filter-one-year-programmes-and-shorter", "experience": "filter-master-one-and-a-half-to-two-years", "profession": "filter-five-and-six-year-programmes", "bachelor-cert": "bachelor-cert", "honours-cert": "honours-cert" }] [list results.entries entry] [def fs = utils.resources.to_object(entry.fs)] [if fs != null && fs != {}] [if entry.subjectMultiple] [list entry.subjectMultiple value] [if string(value) != 'not-set'] [def topicsFiltersList = topicsFiltersList.append(localized(value))] [endif] [endlist] [endif] [if entry.levelMultiple] [list entry.levelMultiple value] [if string(value) != 'not-set'] [list groupedTypeFiltersMap mapKey] [if string(value) = mapKey.0] [if string(value) = 'master' && int(fs.points) < 300] [def levelFiltersList = levelFiltersList.append(localized('filter-master-one-and-a-half-to-two-years'))] [else] [def levelFiltersList = levelFiltersList.append(localized(mapKey.1))] [endif] [endif] [endlist] [endif] [endlist] [endif] [endif] [endlist] [!-- Make sure values in lists are unique --] [def topicsFiltersList = distinct(topicsFiltersList)] [def levelFiltersList = distinct(levelFiltersList)] [def secondaryFiltersObject = { 'levelFilter': levelFiltersList }] [call "comp:display-filters" { "topicsFilters": topicsFiltersList, "secondaryFilters": secondaryFiltersObject, "showVacancies": true }]
[if results.entries.length() > 0] [call "comp:display-results-header" { 'results': results }]
    [def noApplicantsList = #()] [list results.entries entry] [def levelValuesList = #()] [def fs = utils.resources.to_object(entry.fs)] [def facets = #()] [def hiddenFacetsList = #()] [if fs != null && fs != {}] [def points fs.points] [def programme_obj = { 'isRedirect': entry.isRedirect, 'redirectUrl': entry.redirectUrl, 'url': entry.url, 'title': entry.title, 'picture': entry.picture, 'pictureAlt': entry.pictureAlt }] [if entry.levelMultiple] [list entry.levelMultiple value] [if string(value) != 'not-set'] [def levelValuesList = levelValuesList.append(localized(value))] [list groupedTypeFiltersMap mapKey] [if string(value) = mapKey.0] [if string(value) = 'master' && int(points) < 300] [def hiddenFacetsList = hiddenFacetsList.append(localized('filter-master-one-and-a-half-to-two-years'))] [else] [def hiddenFacetsList = hiddenFacetsList.append(localized(mapKey.1))] [endif] [endif] [endlist] [endif] [endlist] [endif] [def keywords = ""] [if entry.keywords != null] [def keywords = entry.keywords] [endif] [def facets = { 'line-1': { 'studie_level': levelValuesList, 'duration': fs.duration }, 'line-2': { 'keywords': keywords.split(',') } }] [if entry.subjectMultiple] [list entry.subjectMultiple value] [if string(value) != 'not-set'] [def hiddenFacetsList = hiddenFacetsList.append(localized(value))] [endif] [endlist] [endif] [def vacancies = string(entry.vacancies)] [if string(entry.fs-studieprogram-status) = "being-phased-out" || string(entry.fs-studieprogram-status) = "closed" || string(entry.fs-studieprogram-status) = "continued"] [def noApplicantsList = noApplicantsList.append({ 'programme': programme_obj, 'facets': facets, 'hidden-facets': hiddenFacetsList, 'vacancies': false, 'no-applicants': true })] [else] [call "comp:display-programme" { 'programme': programme_obj, 'facets': facets, 'hidden-facets': hiddenFacetsList, 'vacancies': vacancies }] [endif] [endif] [endlist] [if noApplicantsList.length() > 0] [list noApplicantsList entry] [call "comp:display-programme" { 'programme': entry.programme, 'facets': entry.facets, 'hidden-facets': entry.hidden-facets, 'vacancies': entry.vacancies, 'no-applicants': entry.no-applicants }] [endlist] [endif]
[endif]