Fixing a lucene indexing bug when a URI of an individual is changed. NIHVIVO-1192

This commit is contained in:
bdc34 2010-10-06 21:52:15 +00:00
parent f98b5edac5
commit b27045fe6c
2 changed files with 9 additions and 1 deletions

View file

@ -480,4 +480,11 @@ public class IndividualImpl extends BaseResourceBean implements Individual, Comp
}
}
public String toString(){
if( getURI() == null ){
return "uninitialized, null URI";
}else{
return getURI() + " " + getName();
}
}
}

View file

@ -206,7 +206,7 @@ public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp.
<c:set var="sameClass" value="false"/>
<c:forEach items="${objPropertyStmt.object.VClasses}" var="vclass">
<c:if test="${ vclass.URI == collateCurrentClass }">
<c:set var="sameClass" value="true"/>
<c:set var="sameClass" value="true"/>
</c:if>
</c:forEach>
@ -221,6 +221,7 @@ public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp.
<h5 class="collate">${collateCurrentClassName}</h5>
<ul class='properties'><!-- collateClasses -->
</c:if>
<li><span class="statementWrap">
<c:set var="opStmt" value="${objPropertyStmt}" scope="request"/>
<c:url var="propertyLink" value="/entity">