diff --git a/src/main/java/edu/harvard/iq/dataverse/api/Datasets.java b/src/main/java/edu/harvard/iq/dataverse/api/Datasets.java index 5c9a0624608..93b8078578a 100644 --- a/src/main/java/edu/harvard/iq/dataverse/api/Datasets.java +++ b/src/main/java/edu/harvard/iq/dataverse/api/Datasets.java @@ -1805,7 +1805,7 @@ public Response getMakeDataCountMetricCurrentMonth(@PathParam("id") String idSup public Response getStorageSize(@PathParam("identifier") String dvIdtf, @QueryParam("includeCached") boolean includeCached, @Context UriInfo uriInfo, @Context HttpHeaders headers) throws WrappedResponse { - return response(req -> ok(MessageFormat.format(BundleUtil.getStringFromBundle("datasets.api.datasize"), + return response(req -> ok(MessageFormat.format(BundleUtil.getStringFromBundle("datasets.api.datasize.storage"), execCommand(new GetDatasetStorageSizeCommand(req, findDatasetOrDie(dvIdtf), includeCached, "storage", null))))); } @@ -1814,7 +1814,7 @@ public Response getStorageSize(@PathParam("identifier") String dvIdtf, @QueryPa public Response getDownloadSize(@PathParam("identifier") String dvIdtf, @PathParam("versionId") String version, @Context UriInfo uriInfo, @Context HttpHeaders headers) throws WrappedResponse { - return response(req -> ok(MessageFormat.format(BundleUtil.getStringFromBundle("datasets.api.datasize"), + return response(req -> ok(MessageFormat.format(BundleUtil.getStringFromBundle("datasets.api.datasize.download"), execCommand(new GetDatasetStorageSizeCommand(req, findDatasetOrDie(dvIdtf), false, "download", getDatasetVersionOrDie(req, version , findDatasetOrDie(dvIdtf), uriInfo, headers)))))); } diff --git a/src/main/java/propertyFiles/Bundle.properties b/src/main/java/propertyFiles/Bundle.properties index 5c0dded35e9..04b19bb59ee 100755 --- a/src/main/java/propertyFiles/Bundle.properties +++ b/src/main/java/propertyFiles/Bundle.properties @@ -2226,7 +2226,8 @@ datasets.api.moveDataset.error.targetDataverseNotFound=Target dataverse not foun datasets.api.moveDataset.error.suggestForce=Use the query parameter forceMove=true to complete the move. datasets.api.moveDataset.success=Dataset moved successfully. datasets.api.listing.error=Fatal error trying to list the contents of the dataset. Please report this error to the Dataverse administrator. -datasets.api.datasize=Total size of the files stored in this dataset: {0} bytes +datasets.api.datasize.storage=Total size of the files stored in this dataset: {0} bytes +datasets.api.datasize.download=Total size of the files available for download in this version of the dataset: {0} bytes datasets.api.datasize.ioerror=Fatal IO error while trying to determine the total size of the files stored in the dataset. Please report this error to the Dataverse administrator.