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>
This commit is contained in:
Koen Pauwels
2025-01-07 22:23:48 +01:00
committed by Tim Donohue
parent 9284763fe2
commit 0120896135
12 changed files with 152 additions and 15 deletions

View File

@@ -1,4 +1,7 @@
import { autoserialize } from 'cerialize';
import {
autoserialize,
autoserializeAs,
} from 'cerialize';
import { BrowseByDataType } from '../../browse-by/browse-by-switcher/browse-by-data-type';
import { CacheableObject } from '../cache/cacheable-object.model';
@@ -11,6 +14,9 @@ export abstract class BrowseDefinition extends CacheableObject {
@autoserialize
id: string;
@autoserializeAs('metadata')
metadataKeys: string[];
/**
* Get the render type of the BrowseDefinition model
*/