Skip to content

Commit fc710e2

Browse files
committed
remove temporary additions to json export
1 parent 8d0159a commit fc710e2

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/main/java/edu/harvard/iq/dataverse/util/json/JsonPrinter.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ public static JsonObjectBuilder json(DataFile df, FileMetadata fileMetadata) {
654654
.add("categories", getFileCategories(fileMetadata))
655655
.add("embargo", embargo)
656656
//.add("released", df.isReleased())
657-
.add("restricted", df.isRestricted())
657+
//.add("restricted", df.isRestricted())
658658
.add("storageIdentifier", df.getStorageIdentifier())
659659
.add("originalFileFormat", df.getOriginalFileFormat())
660660
.add("originalFormatLabel", df.getOriginalFormatLabel())
@@ -673,12 +673,8 @@ public static JsonObjectBuilder json(DataFile df, FileMetadata fileMetadata) {
673673
//---------------------------------------------
674674
.add("md5", getMd5IfItExists(df.getChecksumType(), df.getChecksumValue()))
675675
.add("checksum", getChecksumTypeAndValue(df.getChecksumType(), df.getChecksumValue()))
676-
.add("fileMetadataId", fileMetadata.getId())
677676
.add("tabularTags", getTabularFileTags(df))
678-
.add("creationDate", df.getCreateDateFormattedYYYYMMDD())
679-
.add("dataTables", df.getDataTables().isEmpty() ? null : JsonPrinter.jsonDT(df.getDataTables()))
680-
.add("varGroups", fileMetadata.getVarGroups().isEmpty()
681-
? null: JsonPrinter.jsonVarGroup(fileMetadata.getVarGroups()));
677+
.add("creationDate", df.getCreateDateFormattedYYYYMMDD());
682678
}
683679

684680
//Started from https://github.com/RENCI-NRIG/dataverse/, i.e. https://github.com/RENCI-NRIG/dataverse/commit/2b5a1225b42cf1caba85e18abfeb952171c6754a

0 commit comments

Comments
 (0)