This commit is contained in:
parent
bb6db4ed5b
commit
15c78c74d4
3 changed files with 32 additions and 5 deletions
|
@ -97,7 +97,8 @@ public class JsonServlet extends VitroHttpServlet {
|
|||
}
|
||||
}
|
||||
|
||||
private void getVClassesForVClassGroup(HttpServletRequest req, HttpServletResponse resp) throws IOException, JSONException {
|
||||
|
||||
private void getVClassesForVClassGroup(HttpServletRequest req, HttpServletResponse resp) throws IOException, JSONException {
|
||||
JSONObject map = new JSONObject();
|
||||
VitroRequest vreq = new VitroRequest(req);
|
||||
String vcgUri = vreq.getParameter("classgroupUri");
|
||||
|
|
|
@ -597,10 +597,18 @@ public class WebappDaoFactoryJena implements WebappDaoFactory {
|
|||
this.nonuserNamespaces = base.nonuserNamespaces;
|
||||
this.preferredLanguages = base.preferredLanguages;
|
||||
this.userURI = base.userURI;
|
||||
this.flag2ValueMap = new HashMap<String,OntClass>();
|
||||
this.flag2ValueMap.putAll(base.flag2ValueMap);
|
||||
this.flag2ClassLabelMap = new HashMap<Resource, String>();
|
||||
this.flag2ClassLabelMap.putAll(base.flag2ClassLabelMap);
|
||||
if(base.flag2ValueMap != null) {
|
||||
this.flag2ValueMap = new HashMap<String,OntClass>();
|
||||
this.flag2ValueMap.putAll(base.flag2ValueMap);
|
||||
} else {
|
||||
this.flag2ValueMap = null;
|
||||
}
|
||||
if(base.flag2ClassLabelMap != null) {
|
||||
this.flag2ClassLabelMap = new HashMap<Resource, String>();
|
||||
this.flag2ClassLabelMap.putAll(base.flag2ClassLabelMap);
|
||||
} else {
|
||||
this.flag2ClassLabelMap = null;
|
||||
}
|
||||
this.dwf = base.dwf;
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
package edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo;
|
||||
|
||||
import edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.EditConfiguration;
|
||||
|
||||
|
||||
public abstract class BaseEditSubmissionPreprocessorVTwo implements
|
||||
EditSubmissionVTwoPreprocessor {
|
||||
|
||||
protected EditConfigurationVTwo editConfiguration;
|
||||
|
||||
public BaseEditSubmissionPreprocessorVTwo(EditConfigurationVTwo editConfig) {
|
||||
editConfiguration = editConfig;
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue