mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Variable name change.
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
<a [routerLink]="node.route" class="lead">
|
||||
{{node.name}}
|
||||
</a>
|
||||
<span *ngIf="node.payload.archivedItems" class="archived-items-lead">[{{node.payload.archivedItems}}]</span>
|
||||
<span *ngIf="node.payload.archivedItemsCount" class="archived-items-lead">[{{node.payload.archivedItemsCount}}]</span>
|
||||
</h5>
|
||||
</div>
|
||||
<ds-truncatable [id]="node.id">
|
||||
|
@@ -25,7 +25,7 @@ export class Collection extends DSpaceObject implements ChildHALResource, Handle
|
||||
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
archivedItems: number;
|
||||
archivedItemsCount: number;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this Collection
|
||||
|
@@ -21,7 +21,7 @@ export class Community extends DSpaceObject implements ChildHALResource, HandleO
|
||||
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
archivedItems: number;
|
||||
archivedItemsCount: number;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this Community
|
||||
|
@@ -4,7 +4,7 @@
|
||||
<span *ngIf="linkType == linkTypes.None" class="lead">
|
||||
{{object.name}}
|
||||
</span>
|
||||
<span *ngIf="object.archivedItems" class="archived-items-lead">[{{object.archivedItems}}]<span>
|
||||
<span *ngIf="object.archivedItemsCount" class="archived-items-lead">[{{object.archivedItemsCount}}]<span>
|
||||
<div *ngIf="object.shortDescription" class="text-muted abstract-text">
|
||||
{{object.shortDescription}}
|
||||
</div>
|
||||
|
@@ -15,7 +15,7 @@ const mockCollectionWithArchivedItems: Collection = Object.assign(new Collection
|
||||
value: 'Test title'
|
||||
}
|
||||
]
|
||||
}, archivedItems: 1
|
||||
}, archivedItemsCount: 1
|
||||
});
|
||||
|
||||
const mockCollectionWithoutArchivedItems: Collection = Object.assign(new Collection(), {
|
||||
@@ -26,7 +26,7 @@ const mockCollectionWithoutArchivedItems: Collection = Object.assign(new Collect
|
||||
value: 'Test title'
|
||||
}
|
||||
]
|
||||
}, archivedItems: 0
|
||||
}, archivedItemsCount: 0
|
||||
});
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ const mockCollectionWithAbstract: Collection = Object.assign(new Collection(), {
|
||||
value: 'Short description'
|
||||
}
|
||||
]
|
||||
}, archivedItems: 1
|
||||
}, archivedItemsCount: 1
|
||||
});
|
||||
|
||||
const mockCollectionWithoutAbstract: Collection = Object.assign(new Collection(), {
|
||||
@@ -49,7 +49,7 @@ const mockCollectionWithoutAbstract: Collection = Object.assign(new Collection()
|
||||
value: 'Test title'
|
||||
}
|
||||
]
|
||||
}, archivedItems: 1
|
||||
}, archivedItemsCount: 1
|
||||
});
|
||||
|
||||
describe('CollectionListElementComponent', () => {
|
||||
|
Reference in New Issue
Block a user