mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Displaying item counts at Communities and Collections list view.
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
<a [routerLink]="node.route" class="lead">
|
||||
{{node.name}}
|
||||
</a>
|
||||
<span>[{{node.payload.archivedItems}}]</span>
|
||||
</h5>
|
||||
</div>
|
||||
<ds-truncatable [id]="node.id">
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { deserialize, inheritSerialization } from 'cerialize';
|
||||
import {autoserialize, deserialize, inheritSerialization} from 'cerialize';
|
||||
import { Observable } from 'rxjs';
|
||||
import { link, typedObject } from '../cache/builders/build-decorators';
|
||||
import { PaginatedList } from '../data/paginated-list.model';
|
||||
@@ -16,12 +16,17 @@ import { COMMUNITY } from './community.resource-type';
|
||||
import { Community } from './community.model';
|
||||
import { ChildHALResource } from './child-hal-resource.model';
|
||||
import { HandleObject } from './handle-object.model';
|
||||
import {excludeFromEquals} from '../utilities/equals.decorators';
|
||||
|
||||
@typedObject
|
||||
@inheritSerialization(DSpaceObject)
|
||||
export class Collection extends DSpaceObject implements ChildHALResource, HandleObject {
|
||||
static type = COLLECTION;
|
||||
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
archivedItems: number;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this Collection
|
||||
*/
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { deserialize, inheritSerialization } from 'cerialize';
|
||||
import {autoserialize, deserialize, inheritSerialization} from 'cerialize';
|
||||
import { Observable } from 'rxjs';
|
||||
import { link, typedObject } from '../cache/builders/build-decorators';
|
||||
import { PaginatedList } from '../data/paginated-list.model';
|
||||
@@ -12,12 +12,17 @@ import { DSpaceObject } from './dspace-object.model';
|
||||
import { HALLink } from './hal-link.model';
|
||||
import { ChildHALResource } from './child-hal-resource.model';
|
||||
import { HandleObject } from './handle-object.model';
|
||||
import {excludeFromEquals} from '../utilities/equals.decorators';
|
||||
|
||||
@typedObject
|
||||
@inheritSerialization(DSpaceObject)
|
||||
export class Community extends DSpaceObject implements ChildHALResource, HandleObject {
|
||||
static type = COMMUNITY;
|
||||
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
archivedItems: number;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this Community
|
||||
*/
|
||||
|
@@ -3,7 +3,9 @@
|
||||
</a>
|
||||
<span *ngIf="linkType == linkTypes.None" class="lead">
|
||||
{{object.name}}
|
||||
<span>[{{object.archivedItems}}]<span>
|
||||
</span>
|
||||
|
||||
<div *ngIf="object.shortDescription" class="text-muted abstract-text">
|
||||
{{object.shortDescription}}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user