Skip to content

Commit b0daad7

Browse files
committed
remove title as a folder
affects manifest and pid-mapping files as well as data file placement
1 parent 7a34db8 commit b0daad7

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/main/java/edu/harvard/iq/dataverse/util/bagit/BagGenerator.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -482,14 +482,6 @@ public static String getValidName(String bagName) {
482482
private void processContainer(JsonObject item, String currentPath) throws IOException {
483483
JsonArray children = getChildren(item);
484484
HashSet<String> titles = new HashSet<String>();
485-
String title = null;
486-
if (item.has(JsonLDTerm.dcTerms("Title").getLabel())) {
487-
title = item.get("Title").getAsString();
488-
} else if (item.has(JsonLDTerm.schemaOrg("name").getLabel())) {
489-
title = item.get(JsonLDTerm.schemaOrg("name").getLabel()).getAsString();
490-
}
491-
logger.fine("Adding " + title + "/ to path " + currentPath);
492-
currentPath = currentPath + title + "/";
493485
int containerIndex = -1;
494486
try {
495487
createDir(currentPath);

0 commit comments

Comments
 (0)