mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-19 07:53:02 +00:00
[TLC-674] Duplicate detection comp, template, i18n
Duplicate data is accessed in the submission section, pooled tasks list and claimed tasks list.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<!--
|
||||
Template for the detect duplicates submission section component
|
||||
@author Kim Shepherd
|
||||
-->
|
||||
<div class="text-sm-left" *ngVar="(this.data$ | async) as data">
|
||||
<ng-container *ngIf="data.potentialDuplicates.length == 0">
|
||||
<p>{{ 'submission.sections.duplicates.none' }}</p>
|
||||
</ng-container>
|
||||
<ng-container *ngIf="data.potentialDuplicates.length > 0">
|
||||
<p>{{ 'submission.sections.duplicates.detected' | translate }}</p>
|
||||
<div *ngFor="let dupe of data.potentialDuplicates" class="ds-duplicate">
|
||||
<a target="_blank" [href]="'/items/'+dupe.uuid">{{dupe.title}}</a>
|
||||
<div *ngFor="let metadatum of Metadata.toViewModelList(dupe.metadata)">
|
||||
{{('item.preview.' + metadatum.key) | translate}} {{metadatum.value}}
|
||||
</div>
|
||||
<p *ngIf="dupe.workspaceItemId">{{ 'submission.sections.duplicates.in-workspace' | translate }}</p>
|
||||
<p *ngIf="dupe.workflowItemId">{{ 'submission.sections.duplicates.in-workflow' | translate }}</p>
|
||||
</div>
|
||||
</ng-container>
|
||||
</div>
|
Reference in New Issue
Block a user