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
66
productMods/edit/formSuffix.jsp
Normal file
66
productMods/edit/formSuffix.jsp
Normal file
|
@ -0,0 +1,66 @@
|
|||
<%-- $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="java.util.List" %>
|
||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.filters.VitroRequestPrep"%>
|
||||
<%@ 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.controller.freemarker.FreemarkerHttpServlet" %>
|
||||
|
||||
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
|
||||
<%@ taglib uri="http://java.sun.com/jstl/functions" prefix="fn" %>
|
||||
|
||||
<%
|
||||
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"><%=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>
|
||||
|
||||
<%-- test for Wilma theme to help for smooth transition --%>
|
||||
<c:choose>
|
||||
<c:when test="${fn:contains(themeDir,'wilma')}">
|
||||
<jsp:include page="/themes/wilma/templates/edit/formSuffix.jsp" flush="true"/>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
</div> <!-- #content.form -->
|
||||
|
||||
</div>
|
||||
<div class="push"></div>
|
||||
|
||||
<jsp:include page="/templates/page/freemarkerTransition/footer.jsp" flush="true"/>
|
||||
|
||||
</div><!-- end wrap -->
|
||||
|
||||
<script type="text/javascript" src="<c:url value="/js/extensions/String.js"/>"></script></script>
|
||||
<script type="text/javascript" src="<c:url value="/js/jquery.js"/>"></script>
|
||||
<script type="text/javascript" src="<c:url value="/js/jquery_plugins/jquery.bgiframe.pack.js"/>"></script>
|
||||
<script type="text/javascript" src="<c:url value="/js/jquery_plugins/thickbox/thickbox-compressed.js"/>"></script>
|
||||
<!-- <script type="text/javascript" src="<c:url value="/js/jquery_plugins/ui.datepicker.js"/>"></script> -->
|
||||
|
||||
<% String useAutoComplete = (useAutoComplete=request.getParameter("useAutoComplete")) != null && !(useAutoComplete.equals("")) ? useAutoComplete : "false";
|
||||
if (useAutoComplete.equalsIgnoreCase("true")) { %>
|
||||
<script type="text/javascript" src="<c:url value="/js/jquery_plugins/jquery-autocomplete/jquery.autocomplete.pack.js"/>"></script>
|
||||
<% } %>
|
||||
|
||||
<c:forEach var="jsFile" items="${customJs}">
|
||||
<script type="text/javascript" src="<c:url value="${jsFile}"/>"></script>
|
||||
</c:forEach>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
Loading…
Add table
Add a link
Reference in a new issue