-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathadditional-info.component.html
More file actions
77 lines (64 loc) · 2.6 KB
/
Copy pathadditional-info.component.html
File metadata and controls
77 lines (64 loc) · 2.6 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<p-card>
@if (preprint()) {
@let preprintValue = preprint()!;
<div class="flex flex-column gap-4">
@if (preprintValue.customPublicationCitation) {
<section class="flex flex-column gap-2">
<h3>{{ 'preprints.preprintStepper.review.sections.metadata.publicationCitation' | translate }}</h3>
{{ preprintValue.customPublicationCitation }}
</section>
}
@if (preprintValue.originalPublicationDate) {
<section class="flex flex-column gap-2">
<h3>{{ 'preprints.preprintStepper.review.sections.metadata.publicationDate' | translate }}</h3>
{{ preprintValue.originalPublicationDate | date: 'MMM d, y, h:mm a' }}
</section>
}
<section class="license flex flex-column gap-2">
<h3>{{ 'preprints.preprintStepper.review.sections.metadata.license' | translate }}</h3>
<p-accordion>
<p-accordion-panel value="0">
<p-accordion-header class="p-0 justify-content-start gap-2">
<p class="font-normal">{{ license()!.name }}</p>
</p-accordion-header>
<p-accordion-content>
<p class="white-space-pre-line">{{ license()!.text | interpolate: licenseOptionsRecord() }}</p>
</p-accordion-content>
</p-accordion-panel>
</p-accordion>
</section>
<section class="flex flex-column gap-2">
<h3>{{ 'preprints.preprintStepper.review.sections.metadata.subjects' | translate }}</h3>
<div class="flex flex-wrap gap-2">
@for (subject of subjects(); track subject.id) {
<p-tag [value]="subject.name" severity="info" />
}
@if (areSelectedSubjectsLoading()) {
<p-skeleton width="10rem" height="1.7rem" />
}
</div>
</section>
<section class="flex flex-column gap-2">
<h3>{{ 'preprints.preprintStepper.review.sections.metadata.tags' | translate }}</h3>
<div class="flex flex-wrap gap-2">
@for (tag of preprintValue.tags; track tag) {
<p-tag [value]="tag" severity="info" />
} @empty {
<p>{{ 'common.labels.none' | translate }}</p>
}
</div>
</section>
<osf-preprint-citation-section [preprintId]="preprintValue.id" />
</div>
}
@if (isPreprintLoading()) {
<div class="flex flex-column gap-4">
@for (i of skeletonData; track $index) {
<section class="flex flex-column gap-2">
<p-skeleton width="5rem" height="1.3rem" />
<p-skeleton width="25rem" height="5rem" />
</section>
}
</div>
}
</p-card>