Removed Portal class and almost everything related to portals and flags for NIHVIVO-2248
This commit is contained in:
parent
de5c5ff7de
commit
eb00f1cd43
189 changed files with 928 additions and 6859 deletions
|
@ -7,7 +7,6 @@
|
|||
<%@ 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" %>
|
||||
|
||||
<% /***********************************************
|
||||
|
@ -22,7 +21,6 @@
|
|||
"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.
|
||||
|
@ -40,9 +38,6 @@
|
|||
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";
|
||||
}
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
"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.
|
||||
|
@ -32,9 +31,6 @@
|
|||
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";
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
<%@ 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" %>
|
||||
|
@ -12,10 +11,9 @@
|
|||
public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp.templates.page.headContent.jsp");
|
||||
%>
|
||||
<%
|
||||
VitroRequest vreq = new VitroRequest(request);
|
||||
Portal portal = vreq.getPortal();
|
||||
|
||||
String themeDir = portal != null ? portal.getThemeDir() : Portal.DEFAULT_THEME_DIR_FROM_CONTEXT;
|
||||
VitroRequest vreq = new VitroRequest(request);
|
||||
|
||||
String themeDir = vreq.getAppBean().getThemeDir();
|
||||
themeDir = vreq.getContextPath() + '/' + themeDir;
|
||||
%>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue