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">
|
<a [routerLink]="node.route" class="lead">
|
||||||
{{node.name}}
|
{{node.name}}
|
||||||
</a>
|
</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>
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
<ds-truncatable [id]="node.id">
|
<ds-truncatable [id]="node.id">
|
||||||
|
@@ -16,7 +16,7 @@ import { COMMUNITY } from './community.resource-type';
|
|||||||
import { Community } from './community.model';
|
import { Community } from './community.model';
|
||||||
import { ChildHALResource } from './child-hal-resource.model';
|
import { ChildHALResource } from './child-hal-resource.model';
|
||||||
import { HandleObject } from './handle-object.model';
|
import { HandleObject } from './handle-object.model';
|
||||||
import {excludeFromEquals} from '../utilities/equals.decorators';
|
import { excludeFromEquals } from '../utilities/equals.decorators';
|
||||||
|
|
||||||
@typedObject
|
@typedObject
|
||||||
@inheritSerialization(DSpaceObject)
|
@inheritSerialization(DSpaceObject)
|
||||||
@@ -25,7 +25,7 @@ export class Collection extends DSpaceObject implements ChildHALResource, Handle
|
|||||||
|
|
||||||
@excludeFromEquals
|
@excludeFromEquals
|
||||||
@autoserialize
|
@autoserialize
|
||||||
archivedItems: number;
|
archivedItemsCount: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The {@link HALLink}s for this Collection
|
* The {@link HALLink}s for this Collection
|
||||||
|
@@ -21,7 +21,7 @@ export class Community extends DSpaceObject implements ChildHALResource, HandleO
|
|||||||
|
|
||||||
@excludeFromEquals
|
@excludeFromEquals
|
||||||
@autoserialize
|
@autoserialize
|
||||||
archivedItems: number;
|
archivedItemsCount: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The {@link HALLink}s for this Community
|
* The {@link HALLink}s for this Community
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
<span *ngIf="linkType == linkTypes.None" class="lead">
|
<span *ngIf="linkType == linkTypes.None" class="lead">
|
||||||
{{object.name}}
|
{{object.name}}
|
||||||
</span>
|
</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">
|
<div *ngIf="object.shortDescription" class="text-muted abstract-text">
|
||||||
{{object.shortDescription}}
|
{{object.shortDescription}}
|
||||||
</div>
|
</div>
|
||||||
|
@@ -15,7 +15,7 @@ const mockCollectionWithArchivedItems: Collection = Object.assign(new Collection
|
|||||||
value: 'Test title'
|
value: 'Test title'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}, archivedItems: 1
|
}, archivedItemsCount: 1
|
||||||
});
|
});
|
||||||
|
|
||||||
const mockCollectionWithoutArchivedItems: Collection = Object.assign(new Collection(), {
|
const mockCollectionWithoutArchivedItems: Collection = Object.assign(new Collection(), {
|
||||||
@@ -26,7 +26,7 @@ const mockCollectionWithoutArchivedItems: Collection = Object.assign(new Collect
|
|||||||
value: 'Test title'
|
value: 'Test title'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}, archivedItems: 0
|
}, archivedItemsCount: 0
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ const mockCollectionWithAbstract: Collection = Object.assign(new Collection(), {
|
|||||||
value: 'Short description'
|
value: 'Short description'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}, archivedItems: 1
|
}, archivedItemsCount: 1
|
||||||
});
|
});
|
||||||
|
|
||||||
const mockCollectionWithoutAbstract: Collection = Object.assign(new Collection(), {
|
const mockCollectionWithoutAbstract: Collection = Object.assign(new Collection(), {
|
||||||
@@ -49,7 +49,7 @@ const mockCollectionWithoutAbstract: Collection = Object.assign(new Collection()
|
|||||||
value: 'Test title'
|
value: 'Test title'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}, archivedItems: 1
|
}, archivedItemsCount: 1
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('CollectionListElementComponent', () => {
|
describe('CollectionListElementComponent', () => {
|
||||||
|
Reference in New Issue
Block a user