[strip] [def config-navigation template-param("n")] [def lang template-param("lang")] [def lang-other template-param("lang-other")] [def lang-other-text template-param("lang-other-text")] [def lang-link-off template-param("lang-link-off")] [def unit-type template-param("unit-type")] [def not-uio template-param("not-uio")] [def startlevel template-param("startlevel")] [def startlevel-context template-param("startlevel-context")] [def globalnav-custom template-param("globalnav-custom")] [def head-context-for-employees-off template-param("head-context-for-employees-off")] [def shortname template-param("shortname")] [def studies template-param("studies")] [def studies-fs template-param("studies-fs")] [def english-courses template-param("english-courses")] [def museum template-param("museum")] [def ga template-param("ga")] [def root template-param("root")] [def separateDesign template-param("separateDesign")] [def separateHeaderFooter template-param("separateHeaderFooter")] [def separateFooter template-param("separateFooter")] [def noFooter template-param("noFooter")] [def link-in-head-menu template-param("link-in-head-menu")] [def link-in-head-menu-text template-param("link-in-head-menu-text")] [def own-crisis-banner template-param("own-crisis-banner")] [def head-title-config template-param("head-title-config")] [def special-page template-param("special-page")] [def special-page-header-minimal template-param("special-page-header-minimal")] [def header-hide-faculty template-param("header-hide-faculty")] [def uio-banner-top template-param("uio-banner-top")] [def uio-banner-bottom template-param("uio-banner-bottom")] [def no-main-script template-param("no-main-script")] [def request request-context()] [def env = request.appService("decorating.env")] [def repo-id "www.uio.no"] [def resourceType resource-prop(".", "resourceType")] [capture bodyId][strip][call "document:element-attributes" {"select":"html.body", "exclude":"class", "value-only":"true"}][endstrip][endcapture] [def officeField ""] [def officeVal ""] [def officeValTop ""] [def office null] [def officeTop null] [if repo-id = "www.vortex-demo.uio.no" || repo-id = "www.usit.uio.no" || repo-id = "www.uio.no" || repo-id = "vortex-test.uio.no" || repo-id = "vortex-dev3.uio.no"] [list request.request-url.parameters params] [list params fieldOrVal] [if fieldOrVal = "office.mode"] [def officeField "true"] [endif] [if fieldOrVal = "html"] [def officeVal "true"] [endif] [if fieldOrVal = "vrtxViewTop"] [def officeValTop "true"] [endif] [endlist] [endlist] [if officeField = "true" && officeVal = "true"] [def office "true"] [endif] [if (officeField = "true" && officeValTop = "true") || bodyId = 'id="office-ticket-framed"' || bodyId = 'office-ticket-framed'] [def officeTop "true"] [endif] [endif] [def employee-app "for-ansatte.uio.no"] [if root != null] [if separateHeaderFooter = null] [def rootResources root] [else] [def rootResources null] [endif] [else] [def rootResources root] [endif] [if lang = null] [def lang "no"] [endif] [def pageLang resource-prop(".", "contentLocale")] [if pageLang = null] [def pageLang lang] [endif] [if english-courses != null] [def lang "en"] [def pageLang "en"] [endif] [def pageLangNormalized pageLang] [if pageLangNormalized = "no_NO"] [def pageLangNormalized "no"] [endif] [if pageLangNormalized = "no_NO_NY"] [def pageLangNormalized "nn"] [endif] [if lang = "en"] [def shortnameSearch "Search our webpages"] [else] [if unit-type = "UoO"] [def shortnameSearch "S?k i nettsidene til UiO"] [else] [if shortname != null] [def shortnameSearch concat("S?k i nettsidene til ", shortname)] [else] [def shortnameSearch "S?k i v?re nettsider"] [endif] [endif] [endif] [if shortname != null] [def shortname concat("澳门葡京手机版app下载 ", shortname)] [else] [def shortname "澳门葡京手机版app下载"] [endif] [if startlevel] [def startlevel startlevel.int()] [def startlevel-menus startlevel] [endif] [if startlevel-context] [def startlevel-context startlevel-context.int()] [def startlevel-menus startlevel-context] [endif] [def parentUri ""] [def theFrontpage ""] [def path request.request-url.path] [if path != null] [def currentCollection request.current-collection] [if currentCollection != null] [def parentUri currentCollection.regexp-replace("/[^/]+$", "")] [endif] [if ((length(path.split("/")) - 2) = startlevel-menus) && path ~ ".*/index.html$"] [def theFrontpage "true"] [endif] [endif] [def visual-profile resource-aspect("visual-profile")] [def visual-profile-navigation visual-profile.navigation] [def responsible-for-this-page-url visual-profile.responsible-for-this-page-url] [def responsible-for-this-page-email visual-profile.responsible-for-this-page-email] [def responsible-for-this-page-name visual-profile.responsible-for-this-page-name] [def description resource-prop(".", "description")] [def isUiOMain repo-id ~ "www.uio.no"] [def isUiOMainFrontpage ((request.request-url.path ~ "^/uio/$" || request.request-url.path ~ "^/uio/index.html$" || request.request-url.path ~ "^/uio/english$" || request.request-url.path ~ "^/uio/english/index.html$") && isUiOMain)] [if config-navigation = null] [def navigation visual-profile-navigation] [else] [def navigation config-navigation] [endif] [if officeTop != null] [def navigation "no-navigation"] [endif] [if lang = "en"] [def go-to "Go to"] [def search-in "Search in"] [def search-in-at "at"] [def search "Search"] [def university-of-oslo "University of Oslo"] [def university-of-oslo-url "/english/"] [def responsible-for-this-page "Responsible for this page"] [def responsible-send "Send"] [def responsible-email "e-mail"] [def powered-by "Powered by"] [def global-menu "Menu"] [def desktop-menu "All content"] [def uio-slogan "a leading European university"] [def breadcrumbs-title "Breadcrumbs"] [def globalnav-title "Main menu"] [def left-menu-title "Sub menu"] [def head-admin "Administration of the website"] [def context-part-of "A part of"] [def context-at "at"] [def context-and "and"] [def frontpage "Home"] [def back-to-uio "Back to uio.no"] [def logout "Log out"] [else] [def go-to "G? til"] [def search-in "S?k i"] [def search-in-at "p?"] [def search "S?k"] [def university-of-oslo "Universitetet i Oslo"] [def university-of-oslo-url "/"] [def responsible-for-this-page "Ansvarlig for denne siden"] [def responsible-send "Send"] [def responsible-email "e-post"] [def powered-by "Drevet av"] [def global-menu "Meny"] [def desktop-menu "Alt innhold"] [def uio-slogan "et ledende europeisk universitet"] [def breadcrumbs-title "Br?dsmulesti"] [def globalnav-title "Hovedmeny"] [def left-menu-title "Undermeny"] [def head-admin "Administrasjon av nettsiden"] [def context-part-of "En del av"] [def context-at "ved"] [def context-and "og"] [def frontpage "澳门葡京手机版app下载"] [def back-to-uio "Tilbake til uio.no"] [def logout "Logg ut"] [endif] [if unit-type = "UoO"] [if startlevel-context != null] [def search-service "search"] [else] [def search-service "searchuio"] [endif] [else] [def search-service "search"] [endif] [def ctxTitle null] [def ctxStatus null] [def ctxStatusLinkFSCode null] [def ctxStatusLinkResourceType null] [def ctxFSCode null] [def ctxTitleSubCtx null] [def ctxLink null] [def ctxType null] [if studies != null || studies-fs != null] [if studies-fs = null] [def programCtxStatus resource-prop(".", "programContext.status")] [def programCtxTitle resource-prop(".", "programContext.title")] [else] [def programCtxStatus resource-prop(".", "fs-studieprogram-status")] [def programCtxTitle resource-prop(".", "fs-studieprogram-title")] [endif] [def programCtxFSCode resource-prop(".", "programContext.fs-program-code")] [def programOptionCtxTitle resource-prop(".", "programOptionContext.title")] [def programOptionCtxStatus resource-prop(".", "programOptionContext.status")] [def programOptionCtxFSCode resource-prop(".", "programOptionContext.fs-program-option-code")] [def courseCtxTitleNo resource-prop(".", "courseContext.course-name-no")] [if courseCtxTitleNo = null] [def courseCtxTitleNo resource-prop(".", "course-name-no")] [endif] [def courseCtxTitleNn resource-prop(".", "courseContext.course-name-nn")] [if courseCtxTitleNn = null] [def courseCtxTitleNn resource-prop(".", "course-name-nn")] [endif] [def courseCtxTitleEn resource-prop(".", "courseContext.course-name-en")] [if courseCtxTitleEn = null] [def courseCtxTitleEn resource-prop(".", "course-name-en")] [endif] [def courseCtxStatus resource-prop(".", "courseContext.course-status")] [if courseCtxStatus = null] [def courseCtxStatus resource-prop(".", "courseStatus")] [endif] [def courseCtxFSCode resource-prop(".", "courseContext.fs-course-code")] [if courseCtxFSCode = null] [def courseCtxFSCode resource-prop(".", "courseCode")] [endif] [def semesterCtxTitle resource-prop(".", "semesterContext.semesterTitle")] [def courseGroupStatus resource-prop(".", "status")] [def courseGroupScope resource-prop(".", "course-group-scope")] [if pageLang = "en"] [def courseCtxTitle courseCtxTitleEn] [elseif pageLang = "nn" || pageLang = "no_NO_NY"] [def courseCtxTitle courseCtxTitleNn] [else] [def courseCtxTitle courseCtxTitleNo] [endif] [if resourceType = "course-schedule" || resourceType = "program-option-frontpage"] [def navigation "no-navigation"] [endif] [if programCtxStatus = "in-progress"] [if pageLang = "en"] [def ctxStatus "This is a draft"] [else] [def ctxStatus "Dette er en kladd"] [endif] [elseif programCtxStatus = "being-phased-out"] [if pageLang = "en"] [def ctxStatus "This programme no longer admits students"] [else] [def ctxStatus "Programmet tar ikke opp nye studenter"] [endif] [elseif programCtxStatus = "closed"] [if pageLang = "en"] [def ctxStatus "This programme is closed"] [else] [def ctxStatus "Programmet er nedlagt"] [endif] [endif] [if programCtxTitle != null && programCtxTitle != ""] [if programCtxStatus != null && programCtxStatus != "" && programCtxStatus != "aktivt"] [def ctxStatusLinkFSCode resource-prop(".", "programContinuedAs")] [def ctxStatusLinkResourceType "studieprogram"] [if programCtxStatus = "under-arbeid"] [if pageLang = "en"] [def ctxStatus "This is a draft"] [else] [def ctxStatus "Dette er en kladd"] [endif] [endif] [if programCtxStatus = "under-utfasing"] [if pageLang = "en"] [def ctxStatus "This programme no longer admits students"] [else] [def ctxStatus "Programmet tar ikke opp nye studenter"] [endif] [endif] [if programCtxStatus = "nedlagt"] [if pageLang = "en"] [def ctxStatus "This programme is closed"] [else] [def ctxStatus "Programmet er nedlagt"] [endif] [endif] [if programCtxStatus = "viderefort"] [if ctxStatusLinkFSCode != null && ctxStatusLinkFSCode != ""] [if pageLang = "en"] [def ctxStatus "This programme is replaced by"] [elseif pageLang = "nn" || pageLang = "no_NO_NY"] [def ctxStatus "Dette programmet er erstatta av"] [else] [def ctxStatus "Dette programmet er erstattet av"] [endif] [else] [if pageLang = "en"] [def ctxStatus "This programme is replaced."] [elseif pageLang = "nn" || pageLang = "no_NO_NY"] [def ctxStatus "Dette programmet er erstatta."] [else] [def ctxStatus "Dette programmet er erstattet."] [endif] [endif] [endif] [endif] [if programOptionCtxTitle != null && programOptionCtxTitle != ""] [if programOptionCtxStatus != null && programOptionCtxStatus != "" && programOptionCtxStatus != "aktivt"] [def ctxStatusLinkFSCode resource-prop(".", "programOptionContinuedAs")] [def ctxStatusLinkResourceType "studieretning"] [if programOptionCtxStatus = "under-arbeid"] [if pageLang = "en"] [def ctxStatus "This is a draft"] [else] [def ctxStatus "Dette er en kladd"] [endif] [endif] [if programOptionCtxStatus = "under-utfasing"] [if pageLang = "en"] [def ctxStatus "This programme option no longer admits students"] [else] [def ctxStatus "澳门葡京手机版app下载etningen tar ikke opp nye studenter"] [endif] [endif] [if programOptionCtxStatus = "nedlagt"] [if pageLang = "en"] [def ctxStatus "This programme option is closed"] [else] [def ctxStatus "澳门葡京手机版app下载etningen er nedlagt"] [endif] [endif] [if programOptionCtxStatus = "viderefort"] [if ctxStatusLinkFSCode != null && ctxStatusLinkFSCode != ""] [if pageLang = "en"] [def ctxStatus "This programme option is replaced by"] [elseif pageLang = "nn" || pageLang = "no_NO_NY"] [def ctxStatus "Denne studieretninga erstatta av"] [else] [def ctxStatus "Denne studieretningen er erstattet av"] [endif] [else] [if pageLang = "en"] [def ctxStatus "This programme option is replaced."] [elseif pageLang = "nn" || pageLang = "no_NO_NY"] [def ctxStatus "Denne studieretninga er erstatta."] [else] [def ctxStatus "Denne studieretningen er erstattet."] [endif] [endif] [endif] [endif] [endif] [if studies-fs = null] [if resourceType != "program-frontpage"] [def coll request.current-collection] [def collSplit null] [if programOptionCtxTitle != null && resourceType != "program-option-frontpage"] [def ctxTitle programOptionCtxTitle] [def ctxFSCode programOptionCtxFSCode] [def ctxType "program-option"] [def collSplit coll.split("(?<=(/(studier/program|english/studies/programmes)/[^/]{1,100}+/(studieretninger|programme-options)/[^/]{1,100}+/)).*$")] [else] [def ctxTitle programCtxTitle] [def ctxFSCode programCtxFSCode] [def ctxType "program"] [def collSplit coll.split("(?<=(/(studier/program|english/studies/programmes)/[^/]{1,100}+/)).*$")] [endif] [if collSplit != null && collSplit.length() > 0] [def ctxLink collSplit.0] [endif] [endif] [else] [if resourceType != "fs-studieprogram-frontpage"] [def coll request.current-collection] [def ctxTitle programCtxTitle] [def ctxFSCode programCtxFSCode] [def ctxType "program"] [def collSplit coll.split("(?<=(/(studier/programmer|english/studies/programmes)/[^/]{1,100}+/)).*$")] [if collSplit != null && collSplit.length() > 0] [def ctxLink collSplit.0] [endif] [endif] [endif] [else] [if (courseCtxTitle != null && courseCtxTitle != "") || (courseCtxFSCode != null && courseCtxFSCode != "")] [if courseCtxStatus != null && courseCtxStatus != "" && courseCtxStatus != "current-version"] [if courseCtxStatus = "continued-as"] [def ctxStatusLinkFSCode resource-prop(".", "courseContext.course-continued-as")] [if ctxStatusLinkFSCode = null] [def ctxStatusLinkFSCode resource-prop(".", "continuedAs")] [endif] [def ctxStatusLinkResourceType "emne"] [if ctxStatusLinkFSCode != null && ctxStatusLinkFSCode != ""] [if pageLang = "en"] [def ctxStatus "This course is replaced by"] [elseif pageLang = "nn" || pageLang = "no_NO_NY"] [def ctxStatus "Dette emnet er erstatta av"] [else] [def ctxStatus "Dette emnet er erstattet av"] [endif] [else] [if pageLang = "en"] [def ctxStatus "This course is replaced."] [elseif pageLang = "nn" || pageLang = "no_NO_NY"] [def ctxStatus "Dette emnet er erstatta"] [else] [def ctxStatus "Dette emnet er erstattet"] [endif] [endif] [endif] [if courseCtxStatus = "discontinued-course"] [if pageLang = "en"] [def ctxStatus "This course is discontinued"] [else] [def ctxStatus "Dette emnet er nedlagt"] [endif] [endif] [endif] [if resourceType != "course-description" && resourceType != "uio-fs-course" && resourceType != "uio-fs-course-context"] [if courseCtxTitle = null || courseCtxTitle = ""] [def ctxTitle ""] [else] [def ctxTitle courseCtxTitle] [endif] [def ctxFSCode courseCtxFSCode] [def ctxTitleSubCtx semesterCtxTitle] [def coll request.current-collection] [def collSplit null] [if ctxTitleSubCtx != null && resourceType != "semester-page" && resourceType != "semester"] [def ctxType "semester"] [def collSplit coll.split("(?<=((|/konv/aapen|/konv/sperret)/((studier/(emner|emner-migrert)/[^/]{1,100}+/[^/]{1,100}+/[^/]{1,100}+)|(english/studies/courses/[^/]{1,100}+/[^/]{1,100}+/[^/]{1,100}+))/[vhs]{1}[0-9]{2}((-[1-8]{1})|)/)).*$")] [def semesterTerm resource-prop(".", "semesterContext.semesterTerm")] [def semesterYear resource-prop(".", "semesterContext.semesterYear")] [def semesterTermNumber resource-prop(".", "semesterContext.semesterTermNumber")] [if semesterTerm != null && semesterTerm != ""] [if pageLang = "en"] [if semesterTerm = "v"] [def ctxTitleSubCtx "Spring"] [elseif semesterTerm = "h"] [def ctxTitleSubCtx "Autumn"] [else] [def ctxTitleSubCtx "Summer"] [endif] [elseif pageLang = "nn" || pageLang = "no_NO_NY"] [if semesterTerm = "v"] [def ctxTitleSubCtx "V?r"] [elseif semesterTerm = "h"] [def ctxTitleSubCtx "H?st"] [else] [def ctxTitleSubCtx "Sommar"] [endif] [else] [if semesterTerm = "v"] [def ctxTitleSubCtx "V?r"] [elseif semesterTerm = "h"] [def ctxTitleSubCtx "H?st"] [else] [def ctxTitleSubCtx "Sommer"] [endif] [endif] [endif] [if semesterYear != null && semesterYear != ""] [def ctxTitleSubCtx concat(ctxTitleSubCtx, " ")] [def ctxTitleSubCtx concat(ctxTitleSubCtx, semesterYear)] [endif] [if semesterTermNumber != null && semesterTermNumber != ""] [def ctxTitleSubCtx concat(ctxTitleSubCtx, " - ")] [if pageLang = "en"] [def ctxTitleSubCtx concat(ctxTitleSubCtx, "Term")] [else] [def ctxTitleSubCtx concat(ctxTitleSubCtx, "Termin")] [endif] [def ctxTitleSubCtx concat(ctxTitleSubCtx, " ")] [def ctxTitleSubCtx concat(ctxTitleSubCtx, semesterTermNumber)] [endif] [else] [def ctxType "course"] [def collSplit coll.split("(?<=((|/konv/aapen|/konv/sperret)/((studier/(emner|emner-migrert)/[^/]{1,100}+/[^/]{1,100}+/[^/]{1,100}+/)|(english/studies/courses/[^/]{1,100}+/[^/]{1,100}+/[^/]{1,100}+/)))).*$")] [endif] [if collSplit != null && collSplit.length() > 0] [def ctxLink collSplit.0] [endif] [endif] [endif] [endif] [if courseGroupScope != null && courseGroupStatus != null && courseGroupStatus != "" && courseGroupStatus != "current-version"] [if courseGroupStatus = "discontinued-course-group"] [if pageLang = "en"] [def ctxStatus "This course group is discontinued"] [elseif pageLang = "nn" || pageLang = "no_NO_NY"] [def ctxStatus "Denne emnegruppa er nedlagt"] [else] [def ctxStatus "Denne emnegruppen er nedlagt"] [endif] [elseif courseGroupStatus = "being-phased-out"] [if pageLang = "en"] [def ctxStatus "This course group no longer admits students"] [elseif pageLang = "nn" || pageLang = "no_NO_NY"] [def ctxStatus "Denne emnegruppa tek ikkje opp nye studentar"] [else] [def ctxStatus "Denne emnegruppen tar ikke opp nye studenter"] [endif] [endif] [endif] [endif] [endstrip] [if description != null] [endif] [if studies != null || studies-fs != null || head-title-config != null] [call "resource:contextual-title-new"]_澳门葡京手机版app下载 [else] [if startlevel-context] [call "document:element" {"select":"html.head.title"}] - [call "include:property" {"id":"title", "uri-level":startlevel-context}]_澳门葡京手机版app下载 [else] [call "document:element" {"select":"html.head.title"}] - [call "include:property" {"id":"title", "uri-level":startlevel}]_澳门葡京手机版app下载 [endif] [endif] [call "lib:twitter-cards"] [call "lib:open-graph"] [call "tmp-new:favicons" {"museum": museum, "notUio": not-uio, "root": rootResources}] [call "tmp-new:page-info"] [call "tmp-new:head-resources" {"repoid": "vortex-test.uio.no", "ga": ga, "notUio": not-uio, "root": rootResources, "separateDesign": separateDesign, "startlevelMenus": startlevel-menus, "env": env}] [call "document:element" {"select":"html.head", "exclude":"title"}] [if ((((startlevel = 0) || (startlevel = 1 && lang = "en")) && (startlevel-context = null || unit-type = "UoO" || (startlevel-context = 0 && lang != "en") || (startlevel-context = 1 && lang = "en"))) || (unit-type = "UoO" && startlevel-context != null && startlevel-context > 1 && lang = "en") || (unit-type = "UoO" && startlevel-context != null && startlevel-context > 0 && lang != "en"))] [else] [if (startlevel = 2 && lang = "en")] [else] [endif] [endif] [call "tmp-new:hidden-navigation" {"lang": lang, "navigation": navigation}] [def crisisBannerFile "varsel.html"] [if museum != null] [def crisisBannerFile concat("varsel-", museum)] [def crisisBannerFile concat(crisisBannerFile, ".html")] [endif] [if repo-id != "vortex-test.uio.no"]