2010-01-29 22:13:57 +00:00
|
|
|
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
|
|
|
|
|
|
|
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
|
|
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
|
|
|
<%@ page import="javax.servlet.ServletException" %>
|
|
|
|
<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.VitroRequest"%>
|
|
|
|
<%@ page import="edu.cornell.mannlib.vitro.webapp.beans.Portal"%>
|
|
|
|
<%@ page import="edu.cornell.mannlib.vitro.webapp.beans.ApplicationBean"%>
|
|
|
|
<%@ page import="org.apache.commons.logging.Log" %>
|
|
|
|
<%@ page import="org.apache.commons.logging.LogFactory" %>
|
|
|
|
<%!
|
2010-02-04 16:13:03 +00:00
|
|
|
public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp.templates.page.headContent.jsp");
|
2010-01-29 22:13:57 +00:00
|
|
|
%>
|
|
|
|
<%
|
|
|
|
VitroRequest vreq = new VitroRequest(request);
|
|
|
|
Portal portal = vreq.getPortal();
|
|
|
|
|
|
|
|
String themeDir = portal != null ? portal.getThemeDir() : Portal.DEFAULT_THEME_DIR_FROM_CONTEXT;
|
2010-02-04 16:13:03 +00:00
|
|
|
themeDir = vreq.getContextPath() + '/' + themeDir;
|
2010-01-29 22:13:57 +00:00
|
|
|
%>
|
2010-02-04 16:13:03 +00:00
|
|
|
|
2010-01-29 22:13:57 +00:00
|
|
|
<!-- headContent.jsp -->
|
2010-02-04 16:13:03 +00:00
|
|
|
|
2010-01-29 22:13:57 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="<%=themeDir%>css/screen.css" media="screen"/>
|
|
|
|
<link rel="stylesheet" type="text/css" href="<%=themeDir%>css/print.css" media="print"/>
|
|
|
|
|
2010-02-04 16:13:03 +00:00
|
|
|
<%-- This should be a non-theme-specific stylesheet --%>
|
2010-01-29 22:13:57 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="<%=themeDir%>css/edit.css"/>
|
|
|
|
|
2010-02-04 16:13:03 +00:00
|
|
|
<title><c:out value="${requestScope.title}"/></title>
|
2010-01-29 22:13:57 +00:00
|
|
|
|
2010-02-04 16:13:03 +00:00
|
|
|
<c:if test="${!empty scripts}"><jsp:include page="${scripts}"/></c:if>
|
2010-01-29 22:13:57 +00:00
|
|
|
|
|
|
|
<!-- end headContent.jsp -->
|
|
|
|
|