+= 0" class="lead archived-items-lead">[{{object.archivedItemsCount}}]
{{object.shortDescription}}
diff --git a/src/app/shared/object-list/collection-list-element/collection-list-element.component.spec.ts b/src/app/shared/object-list/collection-list-element/collection-list-element.component.spec.ts
index b911bdd2eb..2324cc3c1f 100644
--- a/src/app/shared/object-list/collection-list-element/collection-list-element.component.spec.ts
+++ b/src/app/shared/object-list/collection-list-element/collection-list-element.component.spec.ts
@@ -18,7 +18,7 @@ const mockCollectionWithArchivedItems: Collection = Object.assign(new Collection
}, archivedItemsCount: 1
});
-const mockCollectionWithoutArchivedItems: Collection = Object.assign(new Collection(), {
+const mockCollectionWithArchivedItemsDisabledAtBackend: Collection = Object.assign(new Collection(), {
metadata: {
'dc.title': [
{
@@ -26,7 +26,7 @@ const mockCollectionWithoutArchivedItems: Collection = Object.assign(new Collect
value: 'Test title'
}
]
- }, archivedItemsCount: 0
+ }, archivedItemsCount: -1
});
@@ -108,9 +108,9 @@ describe('CollectionListElementComponent', () => {
});
});
- describe('When the collection has no archived items', () => {
+ describe('When the collection archived items are disabled at backend', () => {
beforeEach(() => {
- collectionListElementComponent.object = mockCollectionWithoutArchivedItems;
+ collectionListElementComponent.object = mockCollectionWithArchivedItemsDisabledAtBackend;
fixture.detectChanges();
});
diff --git a/src/app/shared/object-list/community-list-element/community-list-element.component.html b/src/app/shared/object-list/community-list-element/community-list-element.component.html
index af01999ca7..26ff040dd6 100644
--- a/src/app/shared/object-list/community-list-element/community-list-element.component.html
+++ b/src/app/shared/object-list/community-list-element/community-list-element.component.html
@@ -4,6 +4,7 @@
{{object.name}}
+= 0" class="lead archived-items-lead">[{{object.archivedItemsCount}}]
{{object.shortDescription}}