Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/edu/harvard/iq/dataverse/Dataset.java
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ public void setThumbnailFile(DataFile thumbnailFile) {
}

public String getThumbnailUrl() {
return thumbnailFile != null ? SystemConfig.getDataverseSiteUrlStatic() + "/api/datasets/" + this.getId() + "/logo" : null;
return !useGenericThumbnail ? SystemConfig.getDataverseSiteUrlStatic() + "/api/datasets/" + this.getId() + "/logo" : null;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I was wondering whether isPreviewImageAvailable() would be a better choice, but it looks like that is mostly kept in sych with useGenericThumbnail (i.e. they are opposites).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm requesting a review from @stevenwinship (no rush) because he most recently worked on this logic in the following PR:

}

public boolean isUseGenericThumbnail() {
Expand Down
Loading