Files
dspace-angular/src/app/core/shared/browse-definition.model.ts
Koen Pauwels 0120896135 Reduce browse definition requests on simple item page (#3701)
* 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>
2025-01-07 15:36:20 -06:00

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;
}