Skip to content

Commit 690554d

Browse files
Merge remote-tracking branch 'upstream/main' into fix-enabling-video-mediaviewer-without-image-mediaviewer-main
# Conflicts: # src/app/item-page/simple/item-types/publication/publication.component.html # src/app/item-page/simple/item-types/untyped-item/untyped-item.component.html
2 parents 918493e + 81087d3 commit 690554d

7 files changed

Lines changed: 234 additions & 32 deletions

File tree

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
1-
.ngx-gallery {
2-
display: inline-block;
3-
margin-bottom: 20px;
4-
width: 340px !important;
5-
height: 279px !important;
1+
:host ::ng-deep {
2+
.ngx-gallery {
3+
width: unset !important;
4+
height: unset !important;
5+
}
6+
7+
ngx-gallery-image {
8+
max-width: 340px !important;
9+
10+
.ngx-gallery-image {
11+
background-position: left;
12+
}
13+
}
14+
15+
ngx-gallery-image:after {
16+
padding-top: 75%;
17+
display: block;
18+
content: '';
19+
}
620
}
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
video {
2-
width: 340px;
3-
height: 279px;
2+
width: 100%;
3+
height: auto;
4+
max-width: 340px;
5+
}
6+
7+
.buttons {
8+
display: flex;
9+
gap: .25rem;
410
}

src/app/item-page/simple/item-types/publication/publication.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
<ds-thumbnail [thumbnail]="object?.thumbnail | async"></ds-thumbnail>
2121
</ds-metadata-field-wrapper>
2222
</ng-container>
23-
<ng-container *ngIf="mediaViewer.image || mediaViewer.video">
23+
<div *ngIf="mediaViewer.image || mediaViewer.video" class="mb-2">
2424
<ds-themed-media-viewer [item]="object"></ds-themed-media-viewer>
25-
</ng-container>
25+
</div>
2626
<ds-themed-item-page-file-section [item]="object"></ds-themed-item-page-file-section>
2727
<ds-item-page-date-field [item]="object"></ds-item-page-date-field>
2828
<ds-themed-metadata-representation-list class="ds-item-page-mixed-author-field"

src/app/item-page/simple/item-types/untyped-item/untyped-item.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
</div>
1717
<div class="row">
1818
<div class="col-xs-12 col-md-4">
19-
<ng-container *ngIf="!mediaViewer.image">
19+
<ng-container *ngIf="!(mediaViewer.image || mediaViewer.video)">
2020
<ds-metadata-field-wrapper [hideIfNoTextContent]="false">
2121
<ds-thumbnail [thumbnail]="object?.thumbnail | async"></ds-thumbnail>
2222
</ds-metadata-field-wrapper>
2323
</ng-container>
24-
<ng-container *ngIf="mediaViewer.image || mediaViewer.video">
24+
<div *ngIf="mediaViewer.image || mediaViewer.video" class="mb-2">
2525
<ds-themed-media-viewer [item]="object"></ds-themed-media-viewer>
26-
</ng-container>
26+
</div>
2727
<ds-themed-item-page-file-section [item]="object"></ds-themed-item-page-file-section>
2828
<ds-item-page-date-field [item]="object"></ds-item-page-date-field>
2929
<ds-themed-metadata-representation-list class="ds-item-page-mixed-author-field"

src/assets/i18n/en.json5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2680,7 +2680,7 @@
26802680

26812681
"itemtemplate.edit.metadata.notifications.discarded.content": "Your changes were discarded. To reinstate your changes click the 'Undo' button",
26822682

2683-
"itemtemplate.edit.metadata.notifications.discarded.title": "Changed discarded",
2683+
"itemtemplate.edit.metadata.notifications.discarded.title": "Changes discarded",
26842684

26852685
"itemtemplate.edit.metadata.notifications.error.title": "An error occurred",
26862686

@@ -2690,7 +2690,7 @@
26902690

26912691
"itemtemplate.edit.metadata.notifications.outdated.content": "The item template you're currently working on has been changed by another user. Your current changes are discarded to prevent conflicts",
26922692

2693-
"itemtemplate.edit.metadata.notifications.outdated.title": "Changed outdated",
2693+
"itemtemplate.edit.metadata.notifications.outdated.title": "Changes outdated",
26942694

26952695
"itemtemplate.edit.metadata.notifications.saved.content": "Your changes to this item template's metadata were saved.",
26962696

src/assets/i18n/fi.json5

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@
156156

157157
// "admin.registries.bitstream-formats.table.name": "Name",
158158
"admin.registries.bitstream-formats.table.name": "Nimi",
159-
// TODO New key - Add a translation
159+
160+
// "admin.registries.bitstream-formats.table.id" : "ID",
160161
"admin.registries.bitstream-formats.table.id" : "ID",
161162

162163
// "admin.registries.bitstream-formats.table.return": "Return",
@@ -207,7 +208,7 @@
207208
"admin.registries.metadata.schemas.table.delete": "Poista valittu",
208209

209210
// "admin.registries.metadata.schemas.table.id": "ID",
210-
"admin.registries.metadata.schemas.table.id": "ID-tunnus",
211+
"admin.registries.metadata.schemas.table.id": "ID",
211212

212213
// "admin.registries.metadata.schemas.table.name": "Name",
213214
"admin.registries.metadata.schemas.table.name": "Nimi",
@@ -237,7 +238,8 @@
237238

238239
// "admin.registries.schema.fields.table.field": "Field",
239240
"admin.registries.schema.fields.table.field": "Kenttä",
240-
// TODO New key - Add a translation
241+
242+
// "admin.registries.schema.fields.table.id" : "ID",
241243
"admin.registries.schema.fields.table.id" : "ID",
242244

243245
// "admin.registries.schema.fields.table.scopenote": "Scope Note",
@@ -408,7 +410,7 @@
408410
"admin.access-control.epeople.form.groupsEPersonIsMemberOf": "Jäsenenä näissä ryhmissä:",
409411

410412
// "admin.access-control.epeople.form.table.id": "ID",
411-
"admin.access-control.epeople.form.table.id": "ID-tunnus",
413+
"admin.access-control.epeople.form.table.id": "ID",
412414

413415
// "admin.access-control.epeople.form.table.name": "Name",
414416
"admin.access-control.epeople.form.table.name": "Nimi",
@@ -2495,7 +2497,7 @@
24952497
"item.edit.tabs.status.buttons.reinstate.label": "Palauta tietue arkistoon",
24962498

24972499
// "item.edit.tabs.status.buttons.withdraw.button": "Withdraw this item",
2498-
"item.edit.tabs.status.buttons.withdraw.button": "poista tämä kohde",
2500+
"item.edit.tabs.status.buttons.withdraw.button": "Poista tämä kohde",
24992501

25002502
// "item.edit.tabs.status.buttons.withdraw.label": "Withdraw item from the repository",
25012503
"item.edit.tabs.status.buttons.withdraw.label": "Poista tietue käytöstä",
@@ -2510,7 +2512,7 @@
25102512
"item.edit.tabs.status.labels.handle": "Handle-tunnus",
25112513

25122514
// "item.edit.tabs.status.labels.id": "Item Internal ID",
2513-
"item.edit.tabs.status.labels.id": "Tietueen sisäinen ID-tunnus",
2515+
"item.edit.tabs.status.labels.id": "Tietueen sisäinen ID",
25142516

25152517
// "item.edit.tabs.status.labels.itemPage": "Item Page",
25162518
"item.edit.tabs.status.labels.itemPage": "Tietueen tiedot",
@@ -3351,7 +3353,7 @@
33513353
"orgunit.page.edit": "Muokkaa tietuetta",
33523354

33533355
// "orgunit.page.id": "ID",
3354-
"orgunit.page.id": "ID-tunnus",
3356+
"orgunit.page.id": "ID",
33553357

33563358
// "orgunit.page.titleprefix": "Organizational Unit: ",
33573359
"orgunit.page.titleprefix": "Organisaatioyksikkö: ",
@@ -3403,7 +3405,7 @@
34033405
"person.page.orcid": "ORCID-tunniste",
34043406

34053407
// "person.page.staffid": "Staff ID",
3406-
"person.page.staffid": "Henkilökunnan ID-tunnus",
3408+
"person.page.staffid": "Henkilökunnan ID",
34073409

34083410
// "person.page.titleprefix": "Person: ",
34093411
"person.page.titleprefix": "Käyttäjä: ",
@@ -3655,7 +3657,7 @@
36553657
"project.page.funder": "Rahoittajat",
36563658

36573659
// "project.page.id": "ID",
3658-
"project.page.id": "ID-tunnus",
3660+
"project.page.id": "ID",
36593661

36603662
// "project.page.keyword": "Keywords",
36613663
"project.page.keyword": "Asiasanat",
@@ -3939,7 +3941,7 @@
39393941
"resource-policies.form.eperson-group-list.table.headers.action": "Toimenpide",
39403942

39413943
// "resource-policies.form.eperson-group-list.table.headers.id": "ID",
3942-
"resource-policies.form.eperson-group-list.table.headers.id": "ID-tunnus",
3944+
"resource-policies.form.eperson-group-list.table.headers.id": "ID",
39433945

39443946
// "resource-policies.form.eperson-group-list.table.headers.name": "Name",
39453947
"resource-policies.form.eperson-group-list.table.headers.name": "Nimi",
@@ -3987,7 +3989,7 @@
39873989
"resource-policies.table.headers.group": "Ryhmä",
39883990

39893991
// "resource-policies.table.headers.id": "ID",
3990-
"resource-policies.table.headers.id": "ID-tunnus",
3992+
"resource-policies.table.headers.id": "ID",
39913993

39923994
// "resource-policies.table.headers.name": "Name",
39933995
"resource-policies.table.headers.name": "Nimi",
@@ -4914,8 +4916,8 @@
49144916
// "submission.sections.upload.header.policy.default.withlist": "Please note that uploaded files in the {{collectionName}} collection will be accessible, in addition to what is explicitly decided for the single file, with the following group(s):",
49154917
"submission.sections.upload.header.policy.default.withlist": "Yksittäisten tiedostojen pääsyrajoitusten lisäksi {{collectionName}}-kokoelmaan ladatut tiedostot ovat seuraavien ryhmien saatavilla:",
49164918

4917-
// "submission.sections.upload.info": "Here you will find all the files currently in the item. You can update the file metadata and access conditions or <strong>upload additional files by dragging & dropping them anywhere on the page.</strong>",
4918-
"submission.sections.upload.info": "Tietueen kaikki tiedostot on lueteltu tässä. Voit päivittää tiedoston metadataa ja pääsyehtoja tai <strong>ladata lisää tiedostoja raahaamalla ne mihin hyvänsä sivun kohtaan</strong>",
4919+
// "submission.sections.upload.info": "Here you will find all the files currently in the item. You can update the file metadata and access conditions or <strong>upload additional files just dragging & dropping them everywhere in the page</strong>",
4920+
"submission.sections.upload.info": "Tietueen kaikki tiedostot on lueteltu tässä. Voit päivittää tiedoston metadataa ja pääsyehtoja tai <strong>ladata lisää tiedostoja raahaamalla ne mihin hyvänsä sivun kohtaan.</strong>",
49194921

49204922
// "submission.sections.upload.no-entry": "No",
49214923
"submission.sections.upload.no-entry": "Ei",
@@ -5066,8 +5068,7 @@
50665068
"uploader.or": " tai",
50675069

50685070
// "uploader.processing": "Processing uploaded file(s)... (it's now safe to close this page)",
5069-
// TODO Source message changed - Revise the translation
5070-
"uploader.processing": "Käsitellään",
5071+
"uploader.processing": "Käsitellään ladattuja tiedostoja... (voit sulkea tämän sivun)",
50715072

50725073
// "uploader.queue-length": "Queue length",
50735074
"uploader.queue-length": "Jonon pituus",

0 commit comments

Comments
 (0)