Skip to content

Commit 9d84bcd

Browse files
author
Andrea Barbasso
committed
[DSC-2618] hide downloads and view badges in collection
1 parent 7e34920 commit 9d84bcd

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
@@ -67,7 +67,7 @@ export class ListableObjectComponentLoaderComponent extends AbstractComponentLoa
6767
/**
6868
* Whether to show the metrics badges
6969
*/
70-
@Input() showMetrics = true;
70+
@Input() showMetrics: boolean;
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 = true;
54+
@Input() showMetrics: boolean;
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 = true;
122+
@Input() showMetrics: boolean;
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 = true;
93+
@Input() showMetrics: boolean;
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ 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;
4950
if (hasValue(this.object)) {
5051
this.dso = this.object.indexableObject;
5152
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 = true;
126+
@Input() showMetrics: boolean;
127127

128128
/**
129129
* 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
@@ -376,7 +376,7 @@ export class DefaultAppConfig implements AppConfig {
376376
// The absolute lowest year to display in the dropdown (only used when no lowest date can be found for all items)
377377
defaultLowerLimit: 1900,
378378
// Whether to add item badges to BOTH browse and search result lists.
379-
showLabels: true,
379+
showLabels: false,
380380
// Whether to add item thumbnail images to BOTH browse and search result lists.
381381
showThumbnails: true,
382382
// Whether to add item thumbnail images to BOTH browse and search result lists.

0 commit comments

Comments
 (0)