Merging r5332 r5336:5338 r5341 r5349 from http://svn.mannlib.cornell.edu/svn/vitro/branches/nihvivo-rel-1.1-maint
This commit is contained in:
parent
ea03604dc5
commit
4bfeadf3ad
8 changed files with 48 additions and 14 deletions
6
.classpath
Normal file
6
.classpath
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<classpath>
|
||||||
|
<classpathentry kind="src" path="src"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
|
||||||
|
<classpathentry kind="output" path="bin"/>
|
||||||
|
</classpath>
|
17
.project
Normal file
17
.project
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>vitro</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
12
.settings/org.eclipse.jdt.core.prefs
Normal file
12
.settings/org.eclipse.jdt.core.prefs
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
#Tue Jul 20 19:04:25 EDT 2010
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||||
|
org.eclipse.jdt.core.compiler.compliance=1.6
|
||||||
|
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||||
|
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||||
|
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||||
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.source=1.6
|
|
@ -106,7 +106,8 @@ public class UrlBuilder {
|
||||||
|
|
||||||
public String getHomeUrl() {
|
public String getHomeUrl() {
|
||||||
String rootBreadCrumbUrl = portal.getRootBreadCrumbURL();
|
String rootBreadCrumbUrl = portal.getRootBreadCrumbURL();
|
||||||
return StringUtils.isEmpty(rootBreadCrumbUrl) ? contextPath : rootBreadCrumbUrl;
|
String path = StringUtils.isEmpty(rootBreadCrumbUrl) ? "" : rootBreadCrumbUrl;
|
||||||
|
return getUrl(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getLogoutUrl() {
|
public String getLogoutUrl() {
|
||||||
|
@ -155,10 +156,12 @@ public class UrlBuilder {
|
||||||
/********** Static utility methods **********/
|
/********** Static utility methods **********/
|
||||||
|
|
||||||
public static String getUrl(String path) {
|
public static String getUrl(String path) {
|
||||||
if ( ! path.startsWith("/") ) {
|
|
||||||
|
if ( !path.isEmpty() && !path.startsWith("/") ) {
|
||||||
path = "/" + path;
|
path = "/" + path;
|
||||||
}
|
}
|
||||||
return contextPath + path;
|
path = contextPath + path;
|
||||||
|
return path.isEmpty() ? "/" : path;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getUrl(String path, Params params) {
|
public static String getUrl(String path, Params params) {
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||||
|
|
||||||
var vitro;
|
var vitro;
|
||||||
|
|
||||||
|
// vitro == null: true
|
||||||
|
// vitro === null: false (only true if undefined)
|
||||||
|
// typeof vitro == 'undefined': true
|
||||||
if (!vitro) {
|
if (!vitro) {
|
||||||
vitro = {};
|
vitro = {};
|
||||||
}
|
}
|
||||||
|
@ -56,5 +60,5 @@ vitro.customFormUtils = {
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// return foundErrors;
|
// return foundErrors;
|
||||||
},
|
}
|
||||||
}
|
}
|
|
@ -9,3 +9,4 @@ $(document).ready(function(){
|
||||||
$('.focus').focus();
|
$('.focus').focus();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
|
||||||
|
|
||||||
<%@ page import="edu.cornell.mannlib.vitro.webapp.beans.User" %>
|
|
||||||
|
|
||||||
<script type="text/javascript" src="js/jquery.js"></script>
|
|
||||||
<script type="text/javascript" src="js/login/loginUtils.js"></script>
|
|
|
@ -2,9 +2,6 @@
|
||||||
|
|
||||||
<#-- Log in template for accessing site admin -->
|
<#-- Log in template for accessing site admin -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
${stylesheets.addFromTheme("/login.css")}
|
|
||||||
<noscript>
|
<noscript>
|
||||||
<div id="javascriptDisableWrapper">
|
<div id="javascriptDisableWrapper">
|
||||||
<div id="javascriptDisableContent">
|
<div id="javascriptDisableContent">
|
||||||
|
|
Loading…
Add table
Reference in a new issue