NIHVIVO-143 Front end deletion of moniker through the "edit" link

This commit is contained in:
rjy7 2010-03-17 15:34:23 +00:00
parent 9ae82a7fb3
commit 1273717a14
5 changed files with 17 additions and 16 deletions

View file

@ -100,7 +100,7 @@ public class RdfLiteralHash {
List<DataPropertyStatement> statements = ind.getDataPropertyStatements();
if( statements == null ) return null;
for( DataPropertyStatement dps : statements){
for( DataPropertyStatement dps : statements){
if( doesStmtMatchHash(dps, hash) )
return dps;
}
@ -131,8 +131,7 @@ public class RdfLiteralHash {
dps.setLanguage(lang);
dps.setData(value);
dps.setDatapropURI(stmt.getPredicate().toString());
dps.setIndividualURI(ind.getURI());
dps.setIndividualURI(ind.getURI());
if (doesStmtMatchHash(dps, hash)) {
break;
}

View file

@ -132,7 +132,7 @@ public class PropertyEditLinks extends TagSupport{
DataProperty prop = (DataProperty)item; // a DataProperty populated for this subject individual
links = doDataProp( prop, entity, themeDir,policyToAccess(ids, policy, entity.getURI(), prop), contextPath ) ;
} else if (item instanceof String && data != null) {
DataPropertyStatement dps = (DataPropertyStatement) new DataPropertyStatementImpl(entity.getURI(), (String)item, data);
DataPropertyStatement dps = (DataPropertyStatement) new DataPropertyStatementImpl(entity.getURI(), (String)item, data);
links = doVitroNamespaceProp( dps, themeDir, policyToAccess(ids, policy, dps), contextPath );
} else {
log.error("PropertyEditLinks cannot make links for an object of type "+item.getClass().getName());