Skip to content
Permalink
Browse files

since thumbnails don't have a path/URL, just use favicon...

  • Loading branch information...
qqmyers committed Mar 1, 2019
1 parent 93bb1ce commit c0343218562117148ac5697a5f62e7330e4dd389
Showing with 1 addition and 10 deletions.
  1. +0 −9 src/main/java/edu/harvard/iq/dataverse/DatasetPage.java
  2. +1 −1 src/main/webapp/dataset.xhtml
@@ -315,15 +315,6 @@ public String getRsyncScriptFilename() {

private String thumbnailString = null;

public String getThumbnailPath() {
try {
return DataAccess.getStorageIO(dataset).getAuxObjectAsPath(DatasetUtil.datasetLogoThumbnail + DatasetUtil.thumb48addedByImageThumbConverter).toString();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return null;
}
// This is the Dataset-level thumbnail;
// it's either the thumbnail of the designated datafile,
// or scaled down uploaded "logo" file, or randomly selected
@@ -43,7 +43,7 @@
<meta property="og:title" content="#{DatasetPage.title}" />
<meta property="og:type" content="article" />
<meta property="og:url" content="#{DatasetPage.dataverseSiteUrl}/dataset.xhtml?persistentId=#{dataset.globalId}" />
<meta property="og:image" content="#{DatasetPage.dataverseSiteUrl.concat(DatasetPage.getThumbnailPath!=null ? DatasetPage.getThumbnailPath() : resource['images/favicondataverse.png'])}" />
<meta property="og:image" content="#{DatasetPage.dataverseSiteUrl.concat(resource['images/favicondataverse.png'])}" />
<meta property="og:site_name" content="#{DatasetPage.publisher}" />
<meta property="og:description" content="#{(DatasetPage.description.length()>150 ? DatasetPage.description.substring(0,147).concat('...'): DatasetPage.description)}" />
<ui:repeat var="author" value="#{DatasetPage.datasetAuthors}">

0 comments on commit c034321

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.