diff --git a/src/app/home/top-level-community-list/top-level-community-list.component.ts b/src/app/home/top-level-community-list/top-level-community-list.component.ts index b0b1144e71..ff47412bc6 100644 --- a/src/app/home/top-level-community-list/top-level-community-list.component.ts +++ b/src/app/home/top-level-community-list/top-level-community-list.component.ts @@ -1,7 +1,7 @@ import { Component, OnInit, ChangeDetectorRef } from '@angular/core'; import { RemoteData } from "../../core/data/remote-data"; -import { ItemDataService } from "../../core/data/item-data.service"; -import { Item } from "../../core/shared/item.model"; +import { CommunityDataService } from "../../core/data/community-data.service"; +import { Community } from "../../core/shared/community.model"; import { PaginationComponentOptions } from "../../shared/pagination/pagination-component-options.model"; import { SortOptions, SortDirection } from "../../core/cache/models/sort-options.model"; @@ -11,12 +11,12 @@ import { SortOptions, SortDirection } from "../../core/cache/models/sort-options templateUrl: './top-level-community-list.component.html' }) export class TopLevelCommunityListComponent implements OnInit { - topLevelCommunities: RemoteData; + topLevelCommunities: RemoteData; config : PaginationComponentOptions; sortConfig : SortOptions; constructor( - private cds: ItemDataService, + private cds: CommunityDataService, private ref: ChangeDetectorRef ) { this.universalInit(); diff --git a/src/app/object-list/collection-list-element/collection-list-element.component.html b/src/app/object-list/collection-list-element/collection-list-element.component.html index eee1dcc5b6..c680743716 100644 --- a/src/app/object-list/collection-list-element/collection-list-element.component.html +++ b/src/app/object-list/collection-list-element/collection-list-element.component.html @@ -1,6 +1,6 @@ - + {{collection.name}} -
- {{collection.findMetadata("dc.description")}} -
\ No newline at end of file +
+ {{collection.shortDescription}} +
diff --git a/src/app/object-list/community-list-element/community-list-element.component.html b/src/app/object-list/community-list-element/community-list-element.component.html index 1c2b39ff84..2c2f4fc35f 100644 --- a/src/app/object-list/community-list-element/community-list-element.component.html +++ b/src/app/object-list/community-list-element/community-list-element.component.html @@ -1,6 +1,6 @@ - + {{community.name}} -
- {{community.findMetadata("dc.description")}} -
\ No newline at end of file +
+ {{community.shortDescription}} +
diff --git a/src/app/object-list/item-list-element/item-list-element.component.html b/src/app/object-list/item-list-element/item-list-element.component.html index 32248237d1..1463e2aef5 100644 --- a/src/app/object-list/item-list-element/item-list-element.component.html +++ b/src/app/object-list/item-list-element/item-list-element.component.html @@ -1,7 +1,7 @@ - + {{item.findMetadata("dc.title")}} -
+
{{authorMd.value}} ; @@ -9,4 +9,4 @@ ({{item.findMetadata("dc.publisher")}}, {{item.findMetadata("dc.date.issued")}})
{{item.findMetadata("dc.description.abstract") | words : 35 : "..."}}
-
\ No newline at end of file +
diff --git a/src/app/object-list/object-list.component.html b/src/app/object-list/object-list.component.html index ffc27c3ef4..b0ca991a93 100644 --- a/src/app/object-list/object-list.component.html +++ b/src/app/object-list/object-list.component.html @@ -7,7 +7,7 @@ (pageSizeChange)="onPageSizeChange($event)" (sortDirectionChange)="onSortDirectionChange($event)" (sortFieldChange)="onSortDirectionChange($event)"> -