Skip to content

Commit 3f05ceb

Browse files
Andrea BarbassoFrancescoMolinaro
authored andcommitted
Merged in task/dspace-cris-2023_02_x/DSC-1661 (pull request DSpace#1755)
Task/dspace cris 2023 02 x/DSC-1661 Approved-by: Francesco Molinaro
2 parents 8fd026a + 2df7c86 commit 3f05ceb

25 files changed

Lines changed: 112 additions & 13 deletions

src/app/entity-groups/research-entities/submission/item-list-elements/external-source-entry/external-source-entry-list-submission-element.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
[metadataList]="metadataList"
4646
[showLabel]="showLabel"
4747
[showMetrics]="showMetrics"
48-
[showThumbnails]="showThumbnails">
48+
[showThumbnails]="showThumbnails"
49+
[showCorrection]="showCorrection">
4950
</ds-themed-item-list-preview>
5051
<div class="offset-2">
5152
<a class="btn btn-primary mt-1" ngbTooltip="{{'submission.workflow.generic.view-help' | translate}}"

src/app/search-page/configuration-search-page.component.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { SearchService } from '../core/shared/search/search.service';
1010
import { Router } from '@angular/router';
1111
import { SearchManager } from '../core/browse/search-manager';
1212
import { APP_CONFIG, AppConfig } from '../../config/app-config.interface';
13+
import { AuthorizationDataService } from '../core/data/feature-authorization/authorization-data.service';
1314

1415
/**
1516
* This component renders a search page using a configuration as input.
@@ -37,7 +38,8 @@ export class ConfigurationSearchPageComponent extends SearchComponent {
3738
@Inject(SEARCH_CONFIG_SERVICE) public searchConfigService: SearchConfigurationService,
3839
protected routeService: RouteService,
3940
protected router: Router,
40-
@Inject(APP_CONFIG) protected appConfig: AppConfig,) {
41-
super(service, searchManager, sidebarService, windowService, searchConfigService, platformId, routeService, router, appConfig);
41+
@Inject(APP_CONFIG) protected appConfig: AppConfig,
42+
protected authorizationService: AuthorizationDataService,) {
43+
super(service, searchManager, sidebarService, windowService, searchConfigService, platformId, routeService, router, appConfig, authorizationService);
4244
}
4345
}

src/app/shared/object-collection/object-collection.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
[showMetrics]="showMetrics"
1212
[showPaginator]="showPaginator"
1313
[showThumbnails]="showThumbnails"
14+
[showCorrection]="showCorrection"
1415
(paginationChange)="onPaginationChange($event)"
1516
(pageChange)="onPageChange($event)"
1617
(pageSizeChange)="onPageSizeChange($event)"

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ export class ObjectCollectionComponent implements OnInit {
130130
*/
131131
@Input() showThumbnails: boolean;
132132

133+
/**
134+
* Whether to show if the item is a correction
135+
*/
136+
@Input() showCorrection = false;
137+
133138
/**
134139
* Whether or not to show an alert for hidden related items
135140
*/

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ export class ListableObjectComponentLoaderComponent implements OnInit, OnChanges
8080
*/
8181
@Input() showThumbnails: boolean;
8282

83+
/**
84+
* Whether to show if the item is a correction
85+
*/
86+
@Input() showCorrection = false;
87+
8388
/**
8489
* The value to display for this element
8590
*/
@@ -133,6 +138,7 @@ export class ListableObjectComponentLoaderComponent implements OnInit, OnChanges
133138
'showLabel',
134139
'showMetrics',
135140
'showThumbnails',
141+
'showCorrection',
136142
'context',
137143
'viewMode',
138144
'value',

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ export class AbstractListableElementComponent<T extends ListableObject> {
4747
*/
4848
@Input() showMetrics = true;
4949

50+
/**
51+
* Whether to show if the item is a correction
52+
*/
53+
@Input() showCorrection = false;
54+
5055
/**
5156
* Whether to show the thumbnail preview
5257
*/

src/app/shared/object-list/my-dspace-result-list-element/claimed-search-result/claimed-approved-search-result/claimed-approved-search-result-list-element.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ <h4 class="alert-heading mb-0">{{ 'claimed-approved-search-result-list-element.t
88
[showLabel]="showLabel"
99
[showMetrics]="showMetrics"
1010
[showSubmitter]="showSubmitter"
11-
[showThumbnails]="showThumbnails"></ds-themed-item-list-preview>
11+
[showThumbnails]="showThumbnails"
12+
[showCorrection]="showCorrection"></ds-themed-item-list-preview>
1213
</div>
1314
</ng-container>

src/app/shared/object-list/my-dspace-result-list-element/claimed-search-result/claimed-declined-search-result/claimed-declined-search-result-list-element.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ <h4 class="alert-heading mb-0">{{ 'claimed-declined-search-result-list-element.t
88
[showLabel]="showLabel"
99
[showMetrics]="showMetrics"
1010
[showSubmitter]="showSubmitter"
11-
[showThumbnails]="showThumbnails"></ds-themed-item-list-preview>
11+
[showThumbnails]="showThumbnails"
12+
[showCorrection]="showCorrection"></ds-themed-item-list-preview>
1213
</div>
1314
</ng-container>

src/app/shared/object-list/my-dspace-result-list-element/claimed-search-result/claimed-declined-task-search-result/claimed-declined-task-search-result-list-element.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ <h4 class="alert-heading mb-0">{{ 'claimed-declined-task-search-result-list-elem
88
[showLabel]="showLabel"
99
[showMetrics]="showMetrics"
1010
[showSubmitter]="showSubmitter"
11-
[showThumbnails]="showThumbnails">
11+
[showThumbnails]="showThumbnails"
12+
[showCorrection]="showCorrection">
1213
</ds-themed-item-list-preview>
1314
</div>
1415
</ng-container>

src/app/shared/object-list/my-dspace-result-list-element/claimed-search-result/claimed-search-result-list-element.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
[showSubmitter]="showSubmitter"
77
[showThumbnails]="showThumbnails"
88
[badgeContext]="badgeContext"
9-
[workflowItem]="workflowitem$.value"></ds-themed-item-list-preview>
9+
[workflowItem]="workflowitem$.value"
10+
[showCorrection]="showCorrection"></ds-themed-item-list-preview>
1011

1112
<div class="row">
1213
<div [ngClass]="showThumbnails ? 'offset-3 offset-xl-2 pl-3' : 'ml-3'">

0 commit comments

Comments
 (0)