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

mc

parent d79983d1
No related branches found
No related tags found
No related merge requests found
......@@ -194,6 +194,9 @@ public class DublinCoreFieldLoader {
valueOfRequestedField = nestedMap2.get(requestedField[i]).toString();
if (valueOfRequestedField.length() > 0) {
// Only add list entry if prefix is empty or beginning with prefix otherwise!
System.out.println("valueOfRequestedField: " + valueOfRequestedField);
if (prefix.isEmpty() || valueOfRequestedField.startsWith(prefix)) {
list.add(valueOfRequestedField);
}
......@@ -204,6 +207,9 @@ public class DublinCoreFieldLoader {
} else {
// Only add list entry if prefix is empty or beginning with prefix otherwise!
String value = hit.getSourceAsMap().get(field).toString();
System.out.println("value: " + value);
if (prefix.isEmpty() || value.startsWith(prefix)) {
list.add(value);
}
......
......@@ -268,9 +268,11 @@ public class RecordListDelivererDC extends RecordListDelivererAbstract {
List<String> identifierList =
DublinCoreFieldLoader.fillList(hit, DARIAHConstants.IDENTIFIER_LIST, "hdl:");
System.out.println("identifierList: " + identifierList);
String setSpec = identifierList.get(0);
System.out.println(" ## setSpec --> " + setSpec);
System.out.println("setSpec: " + setSpec);
try {
dublinCoreBuilder = putContentIntoDCFieldLists2(hit,
......
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