Permalink
Browse files
since thumbnails don't have a path/URL, just use favicon...
- Loading branch information...
|
@@ -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