File tree Expand file tree Collapse file tree
shared/object-list/collection-list-element Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ <h5 class="align-middle pt-2">
3737 < a [routerLink] ="node.route " class ="lead ">
3838 {{node.name}}
3939 </ a >
40+ < span > [{{node.payload.archivedItems}}]</ span >
4041 </ h5 >
4142 </ div >
4243 < ds-truncatable [id] ="node.id ">
Original file line number Diff line number Diff line change 1- import { deserialize , inheritSerialization } from 'cerialize' ;
1+ import { autoserialize , deserialize , inheritSerialization } from 'cerialize' ;
22import { Observable } from 'rxjs' ;
33import { link , typedObject } from '../cache/builders/build-decorators' ;
44import { PaginatedList } from '../data/paginated-list.model' ;
@@ -16,12 +16,17 @@ import { COMMUNITY } from './community.resource-type';
1616import { Community } from './community.model' ;
1717import { ChildHALResource } from './child-hal-resource.model' ;
1818import { HandleObject } from './handle-object.model' ;
19+ import { excludeFromEquals } from '../utilities/equals.decorators' ;
1920
2021@typedObject
2122@inheritSerialization ( DSpaceObject )
2223export class Collection extends DSpaceObject implements ChildHALResource , HandleObject {
2324 static type = COLLECTION ;
2425
26+ @excludeFromEquals
27+ @autoserialize
28+ archivedItems : number ;
29+
2530 /**
2631 * The {@link HALLink}s for this Collection
2732 */
Original file line number Diff line number Diff line change 1- import { deserialize , inheritSerialization } from 'cerialize' ;
1+ import { autoserialize , deserialize , inheritSerialization } from 'cerialize' ;
22import { Observable } from 'rxjs' ;
33import { link , typedObject } from '../cache/builders/build-decorators' ;
44import { PaginatedList } from '../data/paginated-list.model' ;
@@ -12,12 +12,17 @@ import { DSpaceObject } from './dspace-object.model';
1212import { HALLink } from './hal-link.model' ;
1313import { ChildHALResource } from './child-hal-resource.model' ;
1414import { HandleObject } from './handle-object.model' ;
15+ import { excludeFromEquals } from '../utilities/equals.decorators' ;
1516
1617@typedObject
1718@inheritSerialization ( DSpaceObject )
1819export class Community extends DSpaceObject implements ChildHALResource , HandleObject {
1920 static type = COMMUNITY ;
2021
22+ @excludeFromEquals
23+ @autoserialize
24+ archivedItems : number ;
25+
2126 /**
2227 * The {@link HALLink}s for this Community
2328 */
Original file line number Diff line number Diff line change 33</ a >
44< span *ngIf ="linkType == linkTypes.None " class ="lead ">
55 {{object.name}}
6+ < span > [{{object.archivedItems}}]< span >
67</ span >
8+
79< div *ngIf ="object.shortDescription " class ="text-muted abstract-text ">
810 {{object.shortDescription}}
911</ div >
You can’t perform that action at this time.
0 commit comments