mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 19:13:08 +00:00
Merge remote-tracking branch 'upstream/main' into browse-pagesize
This commit is contained in:
@@ -6,7 +6,7 @@ import { BrowseByConfig } from './browse-by-config.interface';
|
||||
import { CacheConfig } from './cache-config.interface';
|
||||
import { CollectionPageConfig } from './collection-page-config.interface';
|
||||
import { FormConfig } from './form-config.interfaces';
|
||||
import { ItemPageConfig } from './item-page-config.interface';
|
||||
import { ItemConfig } from './item-config.interface';
|
||||
import { LangConfig } from './lang-config.interface';
|
||||
import { MediaViewerConfig } from './media-viewer-config.interface';
|
||||
import { INotificationBoardOptions } from './notifications-config.interfaces';
|
||||
@@ -14,6 +14,9 @@ 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';
|
||||
import { ActuatorsConfig } from './actuators.config';
|
||||
import { InfoConfig } from './info-config.interface';
|
||||
|
||||
export class DefaultAppConfig implements AppConfig {
|
||||
production = false;
|
||||
@@ -47,6 +50,10 @@ export class DefaultAppConfig implements AppConfig {
|
||||
nameSpace: '/',
|
||||
};
|
||||
|
||||
actuators: ActuatorsConfig = {
|
||||
endpointPath: '/actuator/health'
|
||||
};
|
||||
|
||||
// Caching settings
|
||||
cache: CacheConfig = {
|
||||
// NOTE: how long should objects be cached for by default
|
||||
@@ -110,6 +117,9 @@ export class DefaultAppConfig implements AppConfig {
|
||||
*/
|
||||
timer: 0
|
||||
},
|
||||
typeBind: {
|
||||
field: 'dc.type'
|
||||
},
|
||||
icons: {
|
||||
metadata: [
|
||||
/**
|
||||
@@ -183,6 +193,8 @@ export class DefaultAppConfig implements AppConfig {
|
||||
{ code: 'pt-PT', label: 'Português', active: true },
|
||||
{ code: 'pt-BR', label: 'Português do Brasil', active: true },
|
||||
{ code: 'fi', label: 'Suomi', active: true },
|
||||
{ code: 'sv', label: 'Svenska', active: true },
|
||||
{ code: 'tr', label: 'Türkçe', active: true },
|
||||
{ code: 'bn', label: 'বাংলা', active: true }
|
||||
];
|
||||
|
||||
@@ -198,11 +210,13 @@ export class DefaultAppConfig implements AppConfig {
|
||||
pageSize: 20
|
||||
};
|
||||
|
||||
// Item Page Config
|
||||
item: ItemPageConfig = {
|
||||
// Item Config
|
||||
item: ItemConfig = {
|
||||
edit: {
|
||||
undoTimeout: 10000 // 10 seconds
|
||||
}
|
||||
},
|
||||
// Show the item access status label in items lists
|
||||
showAccessStatuses: false
|
||||
};
|
||||
|
||||
// Collection Page Config
|
||||
@@ -302,6 +316,11 @@ 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.
|
||||
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
|
||||
@@ -309,4 +328,16 @@ export class DefaultAppConfig implements AppConfig {
|
||||
image: false,
|
||||
video: false
|
||||
};
|
||||
// Whether the end-user-agreement and privacy policy feature should be enabled or not.
|
||||
// Disabling the end user agreement feature will result in:
|
||||
// - Users no longer being forced to accept the end-user-agreement before they can access the repository
|
||||
// - A 404 page if you manually try to navigate to the end-user-agreement page at info/end-user-agreement
|
||||
// - All end-user-agreement related links and pages will be removed from the UI (e.g. in the footer)
|
||||
// Disabling the privacy policy feature will result in:
|
||||
// - A 404 page if you manually try to navigate to the privacy policy page at info/privacy
|
||||
// - All mentions of the privacy policy being removed from the UI (e.g. in the footer)
|
||||
info: InfoConfig = {
|
||||
enableEndUserAgreement: true,
|
||||
enablePrivacyStatement: true
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user