VIVO-999: when showing the list of classes that have a restriction on a property, hide the display option select and add class button. When no classes, diplay a message to tht effect.
This commit is contained in:
parent
f078bc4931
commit
4e09f96548
6 changed files with 51 additions and 29 deletions
|
@ -46,10 +46,18 @@ public class ListVClassWebappsController extends FreemarkerHttpServlet {
|
|||
|
||||
body.put("displayOption", "all");
|
||||
body.put("pageTitle", "All Classes");
|
||||
body.put("propertyURI", vreq.getParameter("propertyURI"));
|
||||
if ( vreq.getParameter("propertyType").equals("object") ) {
|
||||
body.put("editController", "propertyEdit?uri=");
|
||||
}
|
||||
else {
|
||||
body.put("editController", "datapropEdit?uri=");
|
||||
}
|
||||
|
||||
List<VClass> classes = null;
|
||||
|
||||
if (vreq.getParameter("showPropertyRestrictions") != null) {
|
||||
body.put("propertyName", vreq.getParameter("propertyName"));
|
||||
PropertyDao pdao = vreq.getLanguageNeutralWebappDaoFactory().getObjectPropertyDao();
|
||||
classes = pdao.getClassesWithRestrictionOnProperty(vreq.getParameter("propertyURI"));
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue