Skip to content

Commit 276a761

Browse files
author
Andrea Barbasso
committed
[DSC-1661] add showCorrection property
1 parent 8d16e8b commit 276a761

23 files changed

Lines changed: 79 additions & 9 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
@@ -43,7 +43,8 @@
4343
<ds-themed-item-list-preview [item]="match"
4444
[object]="itemPreviewObject"
4545
[metadataList]="metadataList"
46-
[showThumbnails]="showThumbnails">
46+
[showThumbnails]="showThumbnails"
47+
[showCorrection]="showCorrection">
4748
</ds-themed-item-list-preview>
4849
<div class="offset-2">
4950
<a class="btn btn-primary mt-1" ngbTooltip="{{'submission.workflow.generic.view-help' | translate}}"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
[showMetrics]="showMetrics"
1111
[showPaginator]="showPaginator"
1212
[showThumbnails]="showThumbnails"
13+
[showCorrection]="showCorrection"
1314
(paginationChange)="onPaginationChange($event)"
1415
(pageChange)="onPageChange($event)"
1516
(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
@@ -125,6 +125,11 @@ export class ObjectCollectionComponent implements OnInit {
125125
*/
126126
@Input() showThumbnails;
127127

128+
/**
129+
* Whether to show if the item is a correction
130+
*/
131+
@Input() showCorrection = false;
132+
128133
/**
129134
* Whether or not to show an alert for hidden related items
130135
*/

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;
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
@@ -6,6 +6,7 @@ <h4 class="alert-heading mb-0">{{ 'claimed-approved-search-result-list-element.t
66
[object]="object"
77
[badgeContext]="badgeContext"
88
[showSubmitter]="showSubmitter"
9-
[showThumbnails]="showThumbnails"></ds-themed-item-list-preview>
9+
[showThumbnails]="showThumbnails"
10+
[showCorrection]="showCorrection"></ds-themed-item-list-preview>
1011
</div>
1112
</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
@@ -6,6 +6,7 @@ <h4 class="alert-heading mb-0">{{ 'claimed-declined-search-result-list-element.t
66
[object]="object"
77
[badgeContext]="badgeContext"
88
[showSubmitter]="showSubmitter"
9-
[showThumbnails]="showThumbnails"></ds-themed-item-list-preview>
9+
[showThumbnails]="showThumbnails"
10+
[showCorrection]="showCorrection"></ds-themed-item-list-preview>
1011
</div>
1112
</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
@@ -6,7 +6,8 @@ <h4 class="alert-heading mb-0">{{ 'claimed-declined-task-search-result-list-elem
66
[object]="object"
77
[badgeContext]="badgeContext"
88
[showSubmitter]="showSubmitter"
9-
[showThumbnails]="showThumbnails">
9+
[showThumbnails]="showThumbnails"
10+
[showCorrection]="showCorrection">
1011
</ds-themed-item-list-preview>
1112
</div>
1213
</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
@@ -4,7 +4,8 @@
44
[showSubmitter]="showSubmitter"
55
[showThumbnails]="showThumbnails"
66
[badgeContext]="badgeContext"
7-
[workflowItem]="workflowitem$.value"></ds-themed-item-list-preview>
7+
[workflowItem]="workflowitem$.value"
8+
[showCorrection]="showCorrection"></ds-themed-item-list-preview>
89

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

src/app/shared/object-list/my-dspace-result-list-element/item-list-preview/item-list-preview.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h3 [innerHTML]="dsoTitle" [ngClass]="{'lead': true,'text-muted': !item.firstMet
3636

3737
</div>
3838
</ds-truncatable>
39-
<ds-item-correction [item]="item"></ds-item-correction>
39+
<ds-item-correction *ngIf="showCorrection" [item]="item"></ds-item-correction>
4040
<ds-item-submitter *ngIf="showSubmitter" [object]="object.indexableObject"></ds-item-submitter>
4141
<ds-item-collection *ngIf="object.indexableObject" [object]="object.indexableObject"></ds-item-collection>
4242
</div>

0 commit comments

Comments
 (0)