<%@ page import = "java.util.*" %> <%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %><%@include file="/WEB-INF/ss_layout_head_info.jsp"%> <%=serverbean.evalIdcScp("wcmPlaceholder('GoogleAnalytics', 'templateDocName=ST_OTG_GOOGLE_HEAD')")%> <% String ua = request.getHeader( "User-Agent" ); if (ua.contains("iPhone")) { %> <% } else { %> <% } String errorContentId = ""; String errorCode = serverbean.evalIdcScp("ssErrorCode"); String errorMessage = serverbean.evalIdcScp("ssErrorMessage"); if (errorCode == "-338") { response.setStatus(500); errorContentId = "CDF_OTG_ERROR_404"; } else if (errorCode == "-18") { response.setStatus(403); errorContentId = "CDF_OTG_ERROR_403"; } else { response.setStatus(404); errorContentId = "CDF_OTG_ERROR_404"; } String HTTP_HOST = serverbean.evalIdcScp("HTTP_HOST"); String dRevisionID = serverbean.evalIdcScp("dRevisionID"); String siteId = serverbean.evalIdcScp("siteId"); String nodeId = serverbean.evalIdcScp("nodeId"); String dDocName = serverbean.evalIdcScp("dDocName"); String pageTitle = serverbean.evalIdcScp("ssIncludeXml('"+errorContentId+"', 'wcm:root/wcm:element[@name=\"Title\"]/text()')"); String pageContent = serverbean.evalIdcScp("ssIncludeXml('"+errorContentId+"', 'wcm:root/wcm:element[@name=\"Content\"]/text()')"); String department = ""; if ( ! siteId.equals("OtagoCorporate") ) { department = serverbean.evalIdcScp("ssGetWebsiteName('" + siteId + "')") + ","; } String extraClasses = ""; if ( siteId.equals("OtagoCorporate") ) { extraClasses = "lockmenu"; } String criticalInfo = serverbean.evalIdcScp("ssIncludeXml('OTAGO_093780', 'wcm:root/wcm:element[@name=\"Critical_Info\"]/text()')"); Integer criticalStart = criticalInfo.indexOf("emergency_type") + 17; Integer criticalEnd = criticalInfo.indexOf("emergency_message") - 3; if (criticalEnd > criticalStart) { criticalInfo = criticalInfo.substring(criticalStart,criticalEnd); if ( ! criticalInfo.equals("")) { extraClasses = extraClasses + " emergency"; } } %> <%=serverbean.evalIdcScp("wcmPlaceholder('GLOBAL_METADATA', 'templateDocName=ST_OTG_GLOBAL_CSS')")%> <%=pageTitle%>, <%=department%> University of Otago, New Zealand <%=serverbean.evalIdcScp("wcmPlaceholder('GoogleAnalytics', 'templateDocName=ST_OTG_GOOGLE_BODY')")%> <% if ( siteId.equals("OtagoCorporate") ) { %> Accessibility <% } else { %> Accessibility <% } %> Skip to Navigation Skip to Content Skip to Search Skip to Site Map Menu <%=serverbean.evalIdcScp("wcmPlaceholder('Emergency', 'templateDocName=ST_OTG_SNIPPET_EMERGENCY')")%> <%=serverbean.evalIdcScp("wcmPlaceholder('Navigation', 'templateDocName=ST_OTG_GLOBAL_NAVIGATION')")%>
<%=serverbean.evalIdcScp("wcmPlaceholder('GlobalSearch', 'templateDocName=ST_OTG_GLOBAL_SEARCH')")%>

<%=pageTitle%>

<%=serverbean.evalIdcScp("wcmPlaceholder('GlobalBreadcrumbs', 'templateDocName=ST_OTG_GLOBAL_BREADCRUMB')")%>
<%=pageContent%>
 
<%=serverbean.evalIdcScp("wcmPlaceholder('GlobalFooter', 'templateDocName=ST_OTG_GLOBAL_FOOTER')")%>
<%=serverbean.evalIdcScp("wcmPlaceholder('javascript', 'templateDocName=ST_' join strUpper(siteId) join '_JS')")%>