Skip to content

Commit

Permalink
Merge pull request #26 from SarwarAleem/main
Browse files Browse the repository at this point in the history
Adding downloadUrl value for ESRF DOIs
  • Loading branch information
thebe14 authored May 23, 2023
2 parents b296b8f + effad90 commit 61a8aea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/eosc/eu/model/StorageElement.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,14 @@ public StorageElement(EsrfDataFile ef, String baseUrl, String sessionId) {
super("StorageElement", ef.Datafile.name);
this.size = ef.Datafile.fileSize;
this.accessUrl = ef.accessUrl(baseUrl, sessionId);

if(null != ef.Datafile.createTime)
this.createdAt = ef.Datafile.createTime;

if(null != ef.Datafile.modTime)
this.modifiedAt = ef.Datafile.modTime;

if(null != ef.Datafile.dataset && null != ef.Datafile.dataset.name)
this.collection = ef.Datafile.dataset.name;
if(null != this.accessUrl && !this.accessUrl.isEmpty())
this.downloadUrl = this.accessUrl + "&download=1";
}

/**
Expand Down

0 comments on commit 61a8aea

Please sign in to comment.