Skip to content

Commit

Permalink
Hide dataset thumbnail for deaccessioned dataset pg, result cards [ref
Browse files Browse the repository at this point in the history
  • Loading branch information
mheppler committed May 6, 2020
1 parent bab5280 commit 84012f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/main/webapp/dataset-citation.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
</style>
<img src="#{DatasetPage.thumbnailString}"
class="img-responsive"
jsf:rendered="#{!empty DatasetPage.thumbnailString}"
jsf:rendered="#{!empty DatasetPage.thumbnailString and !DatasetPage.workingVersion.deaccessioned}"
alt="#{DatasetPage.datasetVersionUI.title.value}"/>

<!-- TO-DO, FIX ICON SIZE, VISIBLE-XS HACK TO DISPLAY SMALLER ICON -->
<!-- XS -->
<span class="icon-dataset visible-xs-block" style="font-size:350% !important;" jsf:rendered="#{empty DatasetPage.thumbnailString}"/>
<span class="icon-dataset visible-xs-block" style="font-size:350% !important;" jsf:rendered="#{empty DatasetPage.thumbnailString or DatasetPage.workingVersion.deaccessioned}"/>
<!-- SM -->
<span class="icon-dataset hidden-xs" jsf:rendered="#{empty DatasetPage.thumbnailString}"/>
<span class="icon-dataset hidden-xs" jsf:rendered="#{empty DatasetPage.thumbnailString or DatasetPage.workingVersion.deaccessioned}"/>
</div>
<div class="col-xs-10 citation">
<div class="row">
Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/search-include-fragment.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,8 @@
</div>
<div class="card-preview-icon-block text-center">
<a href="#{!SearchIncludeFragment.rootDv and !result.isInTree ? result.datasetUrl : widgetWrapper.wrapURL(result.datasetUrl)}" target="#{(!SearchIncludeFragment.rootDv and !result.isInTree and widgetWrapper.widgetView) or result.harvested ? '_blank' : ''}">
<img src="#{result.imageUrl}" jsf:rendered="#{!empty result.imageUrl}" alt="#{result.title}"/>
<span class="icon-dataset" jsf:rendered="#{empty result.imageUrl}"/>
<img src="#{result.imageUrl}" jsf:rendered="#{!empty result.imageUrl and !result.deaccessionedState}" alt="#{result.title}"/>
<span class="icon-dataset" jsf:rendered="#{empty result.imageUrl or result.deaccessionedState}"/>
</a>
</div>

Expand Down

0 comments on commit 84012f7

Please sign in to comment.