Further development of Wilma theme, still include a lot of temporary files and directories. There are duplicated files, wrong file image location, still a work in progress.
This commit is contained in:
parent
3dd0b5163f
commit
97720d3720
34 changed files with 2844 additions and 32 deletions
101
themes/wilma/templates/page/basicPage.jsp
Normal file
101
themes/wilma/templates/page/basicPage.jsp
Normal file
|
@ -0,0 +1,101 @@
|
|||
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
||||
<%-- This is a temporary file and will be removed once we have completed the transition to freemarker --%>
|
||||
|
||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.web.*" %>
|
||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.VitroRequest" %>
|
||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.dao.WebappDaoFactory" %>
|
||||
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
|
||||
<%@ page errorPage="/error.jsp"%>
|
||||
<%@ page contentType="text/html; charset=UTF-8"%>
|
||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.filters.VitroRequestPrep" %>
|
||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.beans.Portal"%>
|
||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.controller.freemarker.FreemarkerHttpServlet" %>
|
||||
|
||||
<% /***********************************************
|
||||
Display a single Page in the most basic fashion.
|
||||
The html <HEAD> is generated followed by the banners and menu.
|
||||
After that the result of the jsp in the attribute bodyJsp is inserted.
|
||||
Finally comes the footer.
|
||||
|
||||
request.attributes:
|
||||
"bodyJsp" - jsp of the body of this page.
|
||||
"title" - title of page
|
||||
"css" - optional additional css for page
|
||||
"scripts" - optional name of file containing <script> elements to be included in the page
|
||||
"bodyAttr" - optional attributes for the <body> tag, e.g. 'onload': use leading space
|
||||
"portalBean" - PortalBean object for request.
|
||||
|
||||
Consider sticking < % = MiscWebUtils.getReqInfo(request) % > in the html output
|
||||
for debugging info.
|
||||
|
||||
bdc34 2006-02-03 created
|
||||
**********************************************/
|
||||
/*
|
||||
String e = "";
|
||||
if (request.getAttribute("bodyJsp") == null){
|
||||
e+="basicPage.jsp expects that request parameter 'bodyJsp' be set to the jsp to display as the page body.\n";
|
||||
}
|
||||
if (request.getAttribute("title") == null){
|
||||
e+="basicPage.jsp expects that request parameter 'title' be set to the title to use for page.\n";
|
||||
}
|
||||
if (request.getAttribute("css") == null){
|
||||
e+="basicPage.jsp expects that request parameter 'css' be set to css to include in page.\n";
|
||||
}
|
||||
if( request.getAttribute("portalBean") == null){
|
||||
e+="basicPage.jsp expects that request attribute 'portalBean' be set.\n";
|
||||
}
|
||||
if( request.getAttribute("appBean") == null){
|
||||
e+="basicPage.jsp expects that request attribute 'appBean' be set.\n";
|
||||
}
|
||||
if( e.length() > 0 ){
|
||||
throw new JspException(e);
|
||||
}
|
||||
*/
|
||||
|
||||
// This is here as a safety net. We should have gotten the values in identity.jsp,
|
||||
// since it's the first jsp we hit.
|
||||
%>
|
||||
|
||||
|
||||
<%
|
||||
FreemarkerHttpServlet.getFreemarkerComponentsForJsp(request);
|
||||
%>
|
||||
|
||||
<%
|
||||
VitroRequest vreq = new VitroRequest(request);
|
||||
Portal portal = vreq.getPortal();
|
||||
|
||||
String contextRoot = vreq.getContextPath();
|
||||
|
||||
String themeDir = portal != null ? portal.getThemeDir() : Portal.DEFAULT_THEME_DIR_FROM_CONTEXT;
|
||||
themeDir = contextRoot + '/' + themeDir;
|
||||
%>
|
||||
|
||||
|
||||
<c:set var="portal" value="${requestScope.portalBean}"/>
|
||||
<c:set var="themeDir"><c:out value="${themeDir}" /></c:set>
|
||||
<c:set var="bodyJsp"><c:out value="${requestScope.bodyJsp}" default="/debug.jsp"/></c:set>
|
||||
<c:set var="title"><c:out value="${requestScope.title}" /></c:set>
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>${title}</title>
|
||||
<link rel="stylesheet" href="<%=themeDir%>/css/style.css" />
|
||||
|
||||
<!-- script for enabling new HTML5 semantic markup in IE browsers-->
|
||||
<%-- ${headScripts.add("/js/html5.js")} --%>
|
||||
<c:if test="${!empty scripts}"><jsp:include page="${scripts}"/></c:if>
|
||||
</head>
|
||||
<body ${requestScope.bodyAttr}>
|
||||
<div id="wrapper">
|
||||
${ftl_menu}
|
||||
<div id="wrapper-content">
|
||||
<c:import url="${bodyJsp}"/>
|
||||
</div>
|
||||
${ftl_footer}
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue