Skip to content
Snippets Groups Projects
Commit 06f9e3c4 authored by mbrodhu's avatar mbrodhu
Browse files

settings

parent 95eb4263
Branches
Tags
No related merge requests found
......@@ -89,7 +89,6 @@ public class OpenAireRecord extends RecordDelivererAbstract {
private String[] workFields;
private String relationToWorkObject;
private String identifierField;
private String pathToConfigFile;
//Contains the setting to get connection to the ElasticSearch index. The content will be given by a configuration file
private OAI_ESClient oaiEsClient;
......@@ -108,7 +107,7 @@ public class OpenAireRecord extends RecordDelivererAbstract {
InputStream input = null;
try {
input = new FileInputStream(this.pathToConfigFile);
input = new FileInputStream("/etc/dhrep/oaipmh/oaipmh.properties");
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
......@@ -537,14 +536,6 @@ public class OpenAireRecord extends RecordDelivererAbstract {
this.identifierField = identifierField;
}
public String getPathToConfigFile() {
return pathToConfigFile;
}
public void setPathToConfigFile(String pathToConfigFile) {
this.pathToConfigFile = pathToConfigFile;
}
}
\ No newline at end of file
......@@ -20,7 +20,7 @@ public final class TGConstants {
//
}
public static final String PATH_TO_CONFIG_FILE_TG = "/etc/dhrep/oaipmh/oaipmh.properties";
public static final String SET_FIELD_FOR_TEXTGRID = "project";
public static final String PROJECT_ID_FOR_TEXTGRID = "project.id";
......
......@@ -106,7 +106,6 @@
class="info.textgrid.middleware.OpenAireRecord">
<constructor-arg index="0" value="${textgrid}" />
<constructor-arg index="1" value="${dariah}" />
<property name="pathToConfigFile" value="${pathToConfigFile}"/>
<property name="titleFields" value="${oar.titleFields}" />
<property name="dateFields" value="${oar.dateFields}" />
<property name="contributorFields" value="${oar.contributorFields}" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment