mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 02:24:11 +00:00

* 121561 Reduce the number of browse definition requests on Item pages by reusing the navbar request for all browse indexes * Fix test issues. --------- Co-authored-by: Koen Pauwels <koen.pauwels@atmire.com>
25 lines
546 B
TypeScript
25 lines
546 B
TypeScript
import {
|
|
autoserialize,
|
|
autoserializeAs,
|
|
} from 'cerialize';
|
|
|
|
import { BrowseByDataType } from '../../browse-by/browse-by-switcher/browse-by-data-type';
|
|
import { CacheableObject } from '../cache/cacheable-object.model';
|
|
|
|
/**
|
|
* Base class for BrowseDefinition models
|
|
*/
|
|
export abstract class BrowseDefinition extends CacheableObject {
|
|
|
|
@autoserialize
|
|
id: string;
|
|
|
|
@autoserializeAs('metadata')
|
|
metadataKeys: string[];
|
|
|
|
/**
|
|
* Get the render type of the BrowseDefinition model
|
|
*/
|
|
abstract getRenderType(): BrowseByDataType;
|
|
}
|