Skip to content

Commit 33604d3

Browse files
FrancescoMolinaroAndrea Barbasso
authored andcommitted
Merged in task/dspace-cris-2024_02_x/DSC-2860 (pull request DSpace#4566)
Revert "[DSC-2618] hide downloads and view badges in collection" Approved-by: Andrea Barbasso
2 parents 3867048 + 3ecafae commit 33604d3

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
@@ -68,7 +68,7 @@ export class ListableObjectComponentLoaderComponent extends AbstractComponentLoa
6868
/**
6969
* Whether to show the metrics badges
7070
*/
71-
@Input() showMetrics: boolean;
71+
@Input() showMetrics = true;
7272

7373
/**
7474
* 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
@@ -52,7 +52,7 @@ export class AbstractListableElementComponent<T extends ListableObject> {
5252
/**
5353
* Whether to show the metrics badges
5454
*/
55-
@Input() showMetrics: boolean;
55+
@Input() showMetrics = true;
5656

5757
/**
5858
* 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
@@ -112,7 +112,7 @@ export class ObjectListComponent {
112112
/**
113113
* Whether to show the metrics badges
114114
*/
115-
@Input() showMetrics: boolean;
115+
@Input() showMetrics = true;
116116

117117
/**
118118
* 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
@@ -77,7 +77,7 @@ export class ItemSearchResultListElementComponent extends SearchResultListElemen
7777
/**
7878
* Whether to show the metrics badges
7979
*/
80-
@Input() showMetrics: boolean;
80+
@Input() showMetrics = true;
8181

8282
/**
8383
* 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
@@ -47,7 +47,6 @@ export class SearchResultListElementComponent<T extends SearchResult<K>, K exten
4747
this.additionalMetadataLimit = this.appConfig.followAuthorityMetadataValuesLimit;
4848
this.showLabel = this.showLabel ?? this.appConfig.browseBy.showLabels;
4949
this.showThumbnails = this.showThumbnails ?? this.appConfig.browseBy.showThumbnails;
50-
this.showMetrics = this.showMetrics ?? this.appConfig.browseBy.showMetrics;
5150
if (hasValue(this.object)) {
5251
this.dso = this.object.indexableObject;
5352
this.dsoTitle = this.dsoNameService.getHitHighlights(this.object, this.dso);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export class SearchResultsComponent {
128128
/**
129129
* Whether to show the metrics badges
130130
*/
131-
@Input() showMetrics: boolean;
131+
@Input() showMetrics = true;
132132

133133
/**
134134
* Whether to show the thumbnail preview

0 commit comments

Comments
 (0)