merging r10022 to the trunk
This commit is contained in:
parent
9fd7540e5e
commit
c83ff876c5
2 changed files with 46 additions and 19 deletions
|
@ -1,17 +1,17 @@
|
||||||
<%-- $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$ --%>
|
||||||
|
|
||||||
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
|
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
|
||||||
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
|
||||||
|
|
||||||
<tr class="editformcell">
|
<tr class="editformcell">
|
||||||
<td valign="bottom" colspan="3">
|
|
||||||
<b>Ontology name</b><br/>
|
|
||||||
<input type="text" name="Name" value="<form:value name="Name"/>" size="40" maxlength="120" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr class="editformcell">
|
|
||||||
<td valign="bottom" colspan="3">
|
<td valign="bottom" colspan="3">
|
||||||
<b>Namespace URI*</b><br/>
|
<b>Ontology name</b><br/>
|
||||||
|
<input type="text" name="Name" value="<form:value name="Name"/>" size="40" maxlength="120" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="editformcell">
|
||||||
|
<td valign="bottom" colspan="3">
|
||||||
|
<b>Namespace URI*</b> <span class="note"> (must begin with http:// or https://)</span><br/>
|
||||||
<c:choose>
|
<c:choose>
|
||||||
<c:when test="${_action eq 'update'}">
|
<c:when test="${_action eq 'update'}">
|
||||||
<i>Change via the "change URI" button on previous screen</i><br/>
|
<i>Change via the "change URI" button on previous screen</i><br/>
|
||||||
|
@ -24,9 +24,9 @@
|
||||||
<c:set var="URIError"><form:error name="URI"/></c:set>
|
<c:set var="URIError"><form:error name="URI"/></c:set>
|
||||||
<c:if test="${!empty URIError}">
|
<c:if test="${!empty URIError}">
|
||||||
<span class="notice"><c:out value="${URIError}"/></span>
|
<span class="notice"><c:out value="${URIError}"/></span>
|
||||||
</c:if>
|
</c:if>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="editformcell">
|
<tr class="editformcell">
|
||||||
<td valign="bottom" colspan="3">
|
<td valign="bottom" colspan="3">
|
||||||
<b>Namespace prefix</b><br/>
|
<b>Namespace prefix</b><br/>
|
||||||
|
@ -37,4 +37,16 @@
|
||||||
</c:if>
|
</c:if>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$('form#editForm').submit(function() {
|
||||||
|
var str = $('input[name=URI]').val();
|
||||||
|
if ( str.indexOf('http://') >= 0 || str.indexOf('https://') >= 0 ) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
alert('The Namespace URI must begin with either http:// \n\n or https://');
|
||||||
|
$('input[name=URI]').focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
|
@ -9,9 +9,24 @@
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr class="editformcell">
|
<tr class="editformcell">
|
||||||
<td>
|
<td>
|
||||||
<b>New URI</b><br/><span class="warning"><strong>${epo.attributeMap['errorMsg']}</strong></span>
|
<br/>
|
||||||
<input type="text" size="95%" name="newURI" value='<%=request.getParameter("oldURI")%>'/>
|
<b>New URI</b> <span class="note"> (must begin with http:// or htts://)</span>
|
||||||
</td>
|
<br/>
|
||||||
|
<span class="warning"><strong>${epo.attributeMap['errorMsg']}</strong></span>
|
||||||
|
<input type="text" size="95%" name="newURI" value='<%=request.getParameter("oldURI")%>'/>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$('form#editForm').submit(function() {
|
||||||
|
var str = $('input[name=newURI]').val();
|
||||||
|
if ( str.indexOf('http://') >= 0 || str.indexOf('https://') >= 0 ) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
alert('The New URI must begin with either http:// \n\n or https://');
|
||||||
|
$('input[name=newURI]').focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue