VIVO-998: the label will no longer be rendered on the page, leaving the name field.

This commit is contained in:
Tim Worrall 2015-03-19 12:49:55 -04:00
parent 4e09f96548
commit ed0b7f0f0d

View file

@ -8,6 +8,7 @@ import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
@ -216,15 +217,20 @@ public class EntityRetryController extends BaseEditController {
if (!dpMap.containsKey(d.getURI())) {
dpMap.put(d.getURI(),d);
}
}
if (individualForEditing.getDataPropertyList() != null) {
Iterator<DataProperty> existingDps = individualForEditing.getDataPropertyList().iterator();
while (existingDps.hasNext()) {
DataProperty existingDp = existingDps.next();
// Since the edit form begins with a "name" field, which gets saved as the rdfs:label,
// do not want to include the label as well.
if ( !existingDp.getPublicName().equals("label") ) {
dpMap.put(existingDp.getURI(),existingDp);
}
}
}
List<DynamicField> dynamicFields = new ArrayList();
Iterator<String> dpHashIt = dpMap.orderedMapIterator();
@ -296,7 +302,6 @@ public class EntityRetryController extends BaseEditController {
request.setAttribute("_action",action);
request.setAttribute("unqualifiedClassName","Individual");
setRequestAttributes(request,epo);
try {
rd.forward(request, response);
} catch (Exception e) {