Fix recent submissions list thumbnails#1860
Conversation
|
This pull request introduces 2 alerts when merging f83a79a into 064dae2 - view on LGTM.com new alerts:
|
f83a79a to
96144de
Compare
|
This pull request introduces 2 alerts when merging 96144de into 064dae2 - view on LGTM.com new alerts:
|
96144de to
396bbd4
Compare
|
Hi @ybnd I was just testing the new thumbnail stuff and noticed that items on the "recent submissions" section of the home page didn't have thumbnails, but on search/browse/item pages they did. Your PR fixes it for me on 7.4-SNAPSHOT. I didn't notice any of the other font issues you mentioned, though. After: |
|
@alanorth the font issues are limited to specific screen widths, in your screenshots the page seems wide enough for everything to work properly without the scaling logic that was missing. The original issue did include the thumbnails not being loaded at all (I focused on the placeholders & font because that was the first thing I saw) |
tdonohue
left a comment
There was a problem hiding this comment.
👍 Thanks @ybnd ! Code looks good. I tested this and verified it fixes the thumbnail issue in recent submission lists. Also see that the placeholder images are displaying properly there and in all search/browse pages. So, this looks good!
|
Merging as this is at +1 (alongside a test from @alanorth !) |


References
Description
This PR fixes list thumbnails in the "Recent Items" section on the homepage. The cause ended up being a combination of the following three bugs:
ds-recent-item-listwas not updated to match the changes in Show thumbnails in result lists #1780 (followLink('thumbnail')and CSS class to determine thumbnail placeholder font)HomePageModulewas not set up with all entity classes; it would render results as plain Items, skipping the custom SVG images for e.g. Projectsds-thumbnailwould sometimes fall back to the placeholder even when the default image was valid (faulty logic from Support restricted thumbnails #1694)TODO:
Instructions for Reviewers
Make sure
browseBy.showThumbnailsis set to true and confirm that #1855 can no longer be replicated.Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
yarn run lintpackage.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.