Skip to content
Snippets Groups Projects
Commit 7d0c5954 authored by Stefan E. Funk's avatar Stefan E. Funk
Browse files

mc

parent 2d74f379
No related branches found
No related tags found
No related merge requests found
......@@ -378,8 +378,13 @@ public class OAIPMHUtilities {
List<String> fieldResulsts = new ArrayList<String>();
int count = 0;
for (String field : fields) {
String[] fieldPathForESIndex = field.split(ES_DIVIDER_REGEXP);
System.out.println("field[" + count + "]: " + field);
count++;
JSONObject singlePath = resultFromGetRequestInES;
for (int i = 0; i < fieldPathForESIndex.length; i++) {
if (i < fieldPathForESIndex.length - 1) {
......@@ -395,6 +400,9 @@ public class OAIPMHUtilities {
return null;
}
} else if (fieldPathForESIndex.length == 1) {
System.out.println("get " + fieldPathForESIndex[i]);
fieldResulsts.add(resultFromGetRequestInES.get(fieldPathForESIndex[i]).toString());
} else {
String res = singlePath.get(fieldPathForESIndex[i]).toString();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment