Merge branch 'develop' of git+ssh://github.com/vivo-project/Vitro into develop

This commit is contained in:
Jim Blake 2015-03-20 15:37:11 -04:00
commit a909cda3ee

View file

@ -46,17 +46,21 @@ 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=");
if ( vreq.getParameter("propertyURI") != null ) {
body.put("propertyURI", vreq.getParameter("propertyURI"));
}
List<VClass> classes = null;
if (vreq.getParameter("showPropertyRestrictions") != null) {
if ( vreq.getParameter("propertyType").equals("object") ) {
body.put("editController", "propertyEdit?uri=");
}
else {
body.put("editController", "datapropEdit?uri=");
}
body.put("propertyName", vreq.getParameter("propertyName"));
PropertyDao pdao = vreq.getLanguageNeutralWebappDaoFactory().getObjectPropertyDao();
classes = pdao.getClassesWithRestrictionOnProperty(vreq.getParameter("propertyURI"));