updates for page management and property deletion and seeing individual page when model is switched
This commit is contained in:
parent
8eaba019a6
commit
16ea16b9e7
6 changed files with 67 additions and 39 deletions
|
@ -20,6 +20,7 @@ import edu.cornell.mannlib.vitro.webapp.controller.freemarker.responsevalues.Red
|
|||
import edu.cornell.mannlib.vitro.webapp.controller.freemarker.responsevalues.ResponseValues;
|
||||
import edu.cornell.mannlib.vitro.webapp.controller.freemarker.responsevalues.TemplateResponseValues;
|
||||
import edu.cornell.mannlib.vitro.webapp.dao.ModelAccess;
|
||||
import edu.cornell.mannlib.vitro.webapp.dao.ModelAccess.FactoryID;
|
||||
import edu.cornell.mannlib.vitro.webapp.dao.WebappDaoFactory;
|
||||
import edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.EditConfigurationUtils;
|
||||
import edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.N3EditUtils;
|
||||
|
@ -186,7 +187,7 @@ public class DeletePropertyController extends FreemarkerHttpServlet {
|
|||
|
||||
private void deleteObjectPropertyStatement(VitroRequest vreq) {
|
||||
WebappDaoFactory wdf = vreq.getWebappDaoFactory();
|
||||
String objectUri = EditConfigurationUtils.getObjectUri(vreq);
|
||||
String objectUri = EditConfigurationUtils.getObjectUri(vreq);
|
||||
String subjectUri = EditConfigurationUtils.getSubjectUri(vreq);
|
||||
String predicateUri = EditConfigurationUtils.getPredicateUri(vreq);
|
||||
//delete object property statement
|
||||
|
|
|
@ -181,6 +181,10 @@ public class GroupedPropertyList extends BaseTemplateModel {
|
|||
// that gets applied to the request. This breaks blank node structures in the
|
||||
// restrictions that determine applicable properties.
|
||||
WebappDaoFactory wadf = ModelAccess.on(vreq.getSession().getServletContext()).getWebappDaoFactory();
|
||||
//Allowing model switching for display model
|
||||
if(vreq.getAttribute("specialWriteModel") != null) {
|
||||
wadf = ModelAccess.on(vreq).getWebappDaoFactory();
|
||||
}
|
||||
PropertyInstanceDao piDao = wadf.getPropertyInstanceDao();
|
||||
|
||||
Collection<PropertyInstance> allPropInstColl = piDao
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue