dspace-angular
dspace-angular copied to clipboard
ngVars cause duplicate thumbnail bitstream requests
Describe the bug On pages where thumbnails are requested, Angular sends 2 requests to retrieve the bitstream instead of one.
Cause & solution approach
This is likely caused by the use of ngVars here and here
One path to address this would be to replace the occurences with their values.
To Reproduce Steps to reproduce the behavior:
- Open up inspect element
- Go to https://demo.dspace.org/search?spc.page=1&query=%22A%20Strength-Based%20Approach%20to%20Indigeneity,%20Equity,%20Diversity,%20and%20Inclusion%20Program%20Evaluation%20in%20Higher%20Education%22 this is a search that should return two items with thumbnails
- Check how many "content" requests there are
Expected behavior There should be 2 content requests, one per file
Observed behavior There are 2 requests per file
Related work Link to any related tickets or PRs here.