diff --git a/resources/i18n/en.json b/resources/i18n/en.json index 85738b2c24..4613acb742 100644 --- a/resources/i18n/en.json +++ b/resources/i18n/en.json @@ -17,7 +17,8 @@ "abstract": "Abstract", "date": "Date", "uri": "URI", - "files": "Files" + "files": "Files", + "collections": "Collections" } }, diff --git a/src/app/item-page/collections/collections.component.html b/src/app/item-page/collections/collections.component.html index 6c4346464c..bf764ae182 100644 --- a/src/app/item-page/collections/collections.component.html +++ b/src/app/item-page/collections/collections.component.html @@ -1,7 +1,7 @@
- - {{(collection)?.name}} + + {{(collection | async)?.name}}
diff --git a/src/app/item-page/collections/collections.component.ts b/src/app/item-page/collections/collections.component.ts index 9845fc13d1..48e2550c39 100644 --- a/src/app/item-page/collections/collections.component.ts +++ b/src/app/item-page/collections/collections.component.ts @@ -11,6 +11,7 @@ export class CollectionsComponent implements OnInit { @Input() item: Item; label : string = "item.page.collections"; + separator: string = "
" collections: Array>; constructor() { @@ -23,7 +24,7 @@ export class CollectionsComponent implements OnInit { ngOnInit(): void { this.collections = this.item.getCollections(); - this.collections[0].subscribe(d => console.log("TEST TEST LOREM IPSUM LALALALAL")); + this.collections[0].subscribe(d => console.log(d.name)); } diff --git a/src/app/item-page/file-section/file-section.component.html b/src/app/item-page/file-section/file-section.component.html index 94eab7ec1b..0cc15e090e 100644 --- a/src/app/item-page/file-section/file-section.component.html +++ b/src/app/item-page/file-section/file-section.component.html @@ -1,8 +1,9 @@ diff --git a/src/app/item-page/file-section/file-section.component.ts b/src/app/item-page/file-section/file-section.component.ts index b7c7fbb733..87968280f7 100644 --- a/src/app/item-page/file-section/file-section.component.ts +++ b/src/app/item-page/file-section/file-section.component.ts @@ -11,6 +11,7 @@ export class FileSectionComponent implements OnInit { @Input() item: Item; label : string = "item.page.files"; + separator: string = "
" files: Observable>>; constructor() { diff --git a/src/app/item-page/metadata-uri-values/metadata-uri-values.component.html b/src/app/item-page/metadata-uri-values/metadata-uri-values.component.html index 1417fedad0..cc618bcd50 100644 --- a/src/app/item-page/metadata-uri-values/metadata-uri-values.component.html +++ b/src/app/item-page/metadata-uri-values/metadata-uri-values.component.html @@ -1,5 +1,5 @@ - - {{linktext || metadatum.value}} + + {{ linktext || metadatum.value }} diff --git a/src/app/item-page/metadata-values/metadata-values.component.html b/src/app/item-page/metadata-values/metadata-values.component.html index f131e6f0f4..f16655c63c 100644 --- a/src/app/item-page/metadata-values/metadata-values.component.html +++ b/src/app/item-page/metadata-values/metadata-values.component.html @@ -1,5 +1,5 @@ - {{metadatum.value}} + {{metadatum.value}} diff --git a/src/app/item-page/specific-field/author/item-page-author-field.component.ts b/src/app/item-page/specific-field/author/item-page-author-field.component.ts index b7f0ba4ecb..1f410ac17b 100644 --- a/src/app/item-page/specific-field/author/item-page-author-field.component.ts +++ b/src/app/item-page/specific-field/author/item-page-author-field.component.ts @@ -9,6 +9,7 @@ import { ItemPageSpecificFieldComponent } from "../item-page-specific-field.comp export class ItemPageAuthorFieldComponent extends ItemPageSpecificFieldComponent implements OnInit { @Input() item: Item; + separator : string; fields : string[] = [ "dc.contributor.author", @@ -16,6 +17,5 @@ export class ItemPageAuthorFieldComponent extends ItemPageSpecificFieldComponent "dc.contributor" ]; label : string = "item.page.author"; - separator : string = ","; } diff --git a/src/app/item-page/specific-field/date/item-page-date-field.component.ts b/src/app/item-page/specific-field/date/item-page-date-field.component.ts index eca64c82e9..efed5e341e 100644 --- a/src/app/item-page/specific-field/date/item-page-date-field.component.ts +++ b/src/app/item-page/specific-field/date/item-page-date-field.component.ts @@ -9,7 +9,7 @@ import { ItemPageSpecificFieldComponent } from "../item-page-specific-field.comp export class ItemPageDateFieldComponent extends ItemPageSpecificFieldComponent implements OnInit { @Input() item: Item; - separator : string; + separator : string = ", "; fields : string[] = [ "dc.date.issued"