Skip to content

Commit b9810a7

Browse files
Andrea BarbassoFrancescoMolinaro
authored andcommitted
Merged in task/dspace-cris-2024_02_x/DSC-2618 (pull request DSpace#4324)
[DSC-2618] hide downloads and view badges in collection Approved-by: Francesco Molinaro
2 parents 6411eda + 1f884bb commit b9810a7

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

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 = true;
71+
@Input() showMetrics: boolean;
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 = true;
55+
@Input() showMetrics: boolean;
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 = true;
115+
@Input() showMetrics: boolean;
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 = true;
80+
@Input() showMetrics: boolean;
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ 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;
5051
if (hasValue(this.object)) {
5152
this.dso = this.object.indexableObject;
5253
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 = true;
131+
@Input() showMetrics: boolean;
132132

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

src/config/default-app-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ export class DefaultAppConfig implements AppConfig {
370370
// The absolute lowest year to display in the dropdown (only used when no lowest date can be found for all items)
371371
defaultLowerLimit: 1900,
372372
// Whether to add item badges to BOTH browse and search result lists.
373-
showLabels: true,
373+
showLabels: false,
374374
// Whether to add item thumbnail images to BOTH browse and search result lists.
375375
showThumbnails: true,
376376
// Whether to add item thumbnail images to BOTH browse and search result lists.

0 commit comments

Comments
 (0)