forked from DSpace/dspace-angular
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathexternal-source-entry-list-submission-element.component.html
More file actions
61 lines (61 loc) · 2.94 KB
/
external-source-entry-list-submission-element.component.html
File metadata and controls
61 lines (61 loc) · 2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<div class="d-inline-block">
<div class="lead item-list-title dont-break-out text-info">{{object.display}}</div>
<div *ngIf="uri"><a target="_blank" [href]="uri.value">{{uri.value}}</a></div>
<div *ngIf="issued || contributors?.length" data-test="issued-contributor" class="d-flex align-items-center text-muted">
<span *ngIf="issued" data-test="issued" class="item-list-date">({{issued.value | date: 'YYYY-MM-dd'}}) </span>
<ds-truncatable *ngIf="contributors?.length" [id]="object.id">
<ds-truncatable-part [id]="object.id" [minLines]="1">
<span *ngFor="let contributor of contributors; let last=last;" data-test="contributors" class="item-list-authors">
{{contributor.value}}<span *ngIf="!last">; </span>
</span>
</ds-truncatable-part>
</ds-truncatable>
</div>
<div *ngIf="abstract" data-test="abstract" class="item-list-abstract">
<ds-truncatable [id]="object.id">
<ds-truncatable-part [id]="object.id" [minLines]="3">
<span>{{abstract.value}}</span>
</ds-truncatable-part>
</ds-truncatable>
</div>
<div *ngIf="identifiers?.length" data-test="identifiers" class="text-muted">
<ds-truncatable [id]="object.id">
<ds-truncatable-part [id]="object.id" [minLines]="1">
<span *ngFor="let identifier of identifiers; let last=last">
{{identifier.value}}<span *ngIf="!last">; </span>
</span>
</ds-truncatable-part>
</ds-truncatable>
</div>
<div *ngIf="object?.matchObjects?.length > 0">
<p>
<button type="button" class="btn btn-link p-0" (click)="collapse.toggle()" [attr.aria-expanded]="!isCollapsed">
<span class="badge badge-secondary">
{{ object.matchObjects.length }}
</span>
{{'submission.sections.external-source.duplicate-matches.header' | translate}}
</button>
</p>
<div #collapse="ngbCollapse" [(ngbCollapse)]="isCollapsed" [id]="object.id">
<div class="card p-1">
<ng-container
*ngFor="let match of object.matchObjects | slice: (pageConfig.currentPage-1) * pageConfig.pageSize : pageConfig.currentPage * pageConfig.pageSize">
<ds-themed-item-list-preview [item]="match" [object]="itemPreviewObject" [metadataList]="filterMatchingValues(object.metadata)">
</ds-themed-item-list-preview>
<div class="offset-2">
<a class="btn btn-primary mt-1" ngbTooltip="{{'submission.workflow.generic.view-help' | translate}}"
[routerLink]="getItemRoute(match)" target="_blank">
<i class="fa fa-info-circle"></i> {{"submission.workflow.generic.view" | translate}}
</a>
</div>
<hr>
</ng-container>
<div class="d-flex justify-content-center">
<ngb-pagination [(page)]="pageConfig.currentPage" [pageSize]="pageConfig.pageSize"
[collectionSize]="object.matchObjects.length">
</ngb-pagination>
</div>
</div>
</div>
</div>
</div>