Skip to content

Commit 2b16910

Browse files
FrancescoMolinaroAndrea Barbasso
authored andcommitted
Merged in task/dspace-cris-2025_02_x/DSC-2860 (pull request DSpace#4567)
Revert "[DSC-2618] hide downloads and view badges in collection" Approved-by: Andrea Barbasso
2 parents 857436a + b71e9d4 commit 2b16910

6 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/app/shared/object-collection/shared/listable-object/listable-object-component-loader.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class ListableObjectComponentLoaderComponent extends AbstractComponentLoa
6767
/**
6868
* Whether to show the metrics badges
6969
*/
70-
@Input() showMetrics: boolean;
70+
@Input() showMetrics = true;
7171

7272
/**
7373
* Whether to show the thumbnail preview

src/app/shared/object-collection/shared/object-collection-element/abstract-listable-element.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class AbstractListableElementComponent<T extends ListableObject> {
5151
/**
5252
* Whether to show the metrics badges
5353
*/
54-
@Input() showMetrics: boolean;
54+
@Input() showMetrics = true;
5555

5656
/**
5757
* Whether to show if the item is a correction

src/app/shared/object-list/object-list.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export class ObjectListComponent {
119119
/**
120120
* Whether to show the metrics badges
121121
*/
122-
@Input() showMetrics: boolean;
122+
@Input() showMetrics = true;
123123

124124
/**
125125
* Whether or not the pagination should be rendered as simple previous and next buttons instead of the normal pagination

src/app/shared/object-list/search-result-list-element/item-search-result/item-types/item/item-search-result-list-element.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export class ItemSearchResultListElementComponent extends SearchResultListElemen
9090
/**
9191
* Whether to show the metrics badges
9292
*/
93-
@Input() showMetrics: boolean;
93+
@Input() showMetrics = true;
9494

9595
/**
9696
* Route to the item's page

src/app/shared/object-list/search-result-list-element/search-result-list-element.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ export class SearchResultListElementComponent<T extends SearchResult<K>, K exten
4646
this.additionalMetadataLimit = this.appConfig.followAuthorityMetadataValuesLimit;
4747
this.showLabel = this.showLabel ?? this.appConfig.browseBy.showLabels;
4848
this.showThumbnails = this.showThumbnails ?? this.appConfig.browseBy.showThumbnails;
49-
this.showMetrics = this.showMetrics ?? this.appConfig.browseBy.showMetrics;
5049
if (hasValue(this.object)) {
5150
this.dso = this.object.indexableObject;
5251
this.dsoTitle = this.dsoNameService.getHitHighlights(this.object, this.dso, true);

src/app/shared/search/search-results/search-results.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class SearchResultsComponent {
123123
/**
124124
* Whether to show the metrics badges
125125
*/
126-
@Input() showMetrics: boolean;
126+
@Input() showMetrics = true;
127127

128128
/**
129129
* Whether to show the thumbnail preview

0 commit comments

Comments
 (0)