Merged
Conversation
* Added new feature for downloads of item's bitstreams * Fixed Copilot's suggestions: any type & redundant property access pattern
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new feature to display the total downloads count for each item by aggregating download statistics from all its bitstreams. The feature includes a dedicated component with proper internationalization support and integrates with the existing usage reporting system.
- Added TotalDownloadsComponent to fetch and display aggregated download statistics
- Implemented internationalization support for download labels in English and Czech
- Updated usage report model to support flexible value properties
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/assets/i18n/en.json5 | Added English translation for downloads label |
| src/assets/i18n/cs.json5 | Added Czech translation for downloads label |
| src/app/item-page/simple/field-components/file-section/total-downloads.component.ts | Main component logic for fetching and calculating total downloads |
| src/app/item-page/simple/field-components/file-section/total-downloads.component.html | Component template for displaying download count |
| src/app/item-page/item-page.module.ts | Module registration and service provider configuration |
| src/app/core/statistics/models/usage-report.model.ts | Updated model to support flexible value properties |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
* Implemented configurable showing of component
milanmajchrak
approved these changes
Nov 6, 2025
vidiecan
approved these changes
Nov 6, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added new feature for downloads of item's bitstreams
Fixed Copilot's suggestions: any type & redundant property access pattern
Problem description
Cherrypick our new feature for displaying the Total Downloads of each item's bitstreams (sum of bitstreams download)