90873: issue 1380 - Fix to make default bundle config work without yml changes

This commit is contained in:
Marie Verdonck
2022-04-20 11:40:35 +02:00
committed by Alexandre Vryghem
parent beae47ef19
commit d51af2739e
7 changed files with 34 additions and 39 deletions

View File

@@ -14,6 +14,7 @@ import { ServerConfig } from './server-config.interface';
import { SubmissionConfig } from './submission-config.interface';
import { ThemeConfig } from './theme.model';
import { UIServerConfig } from './ui-server-config.interface';
import { BundleConfig } from './bundle-config.interface';
export class DefaultAppConfig implements AppConfig {
production = false;
@@ -301,11 +302,9 @@ export class DefaultAppConfig implements AppConfig {
];
// The default bundles that should always be displayed when you edit or add a bundle even when no bundle has been
// added to the item yet.
standardBundles: [
{ bundle: 'ORIGINAL' },
{ bundle: 'THUMBNAIL' },
{ bundle: 'LICENSE' }
];
bundle: BundleConfig = {
standardBundles: ['ORIGINAL', 'THUMBNAIL', 'LICENSE']
};
// Whether to enable media viewer for image and/or video Bitstreams (i.e. Bitstreams whose MIME type starts with "image" or "video").
// For images, this enables a gallery viewer where you can zoom or page through images.
// For videos, this enables embedded video streaming