mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 20:43:08 +00:00
relation lookup progress/equatable
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { autoserialize, autoserializeAs } from 'cerialize';
|
||||
import { ListableObject } from '../../shared/object-collection/shared/listable-object.model';
|
||||
|
||||
export class BrowseEntry implements ListableObject {
|
||||
import { Equatable } from '../utilities/equatable';
|
||||
import { hasValue } from '../../shared/empty.util';
|
||||
|
||||
export class BrowseEntry implements Equatable<BrowseEntry> {
|
||||
@autoserialize
|
||||
type: string;
|
||||
|
||||
@@ -15,7 +15,15 @@ export class BrowseEntry implements ListableObject {
|
||||
@autoserializeAs('valueLang')
|
||||
language: string;
|
||||
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
count: number;
|
||||
|
||||
equals(other: BrowseEntry): boolean {
|
||||
if (hasValue(other)) {
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user