mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 02:24:11 +00:00
Resolve feedback
Inject environment rather than importing it Redo the configuration for better consistency across pages
This commit is contained in:
@@ -17,7 +17,9 @@ import { UIServerConfig } from './ui-server-config.interface';
|
||||
import { BundleConfig } from './bundle-config.interface';
|
||||
import { ActuatorsConfig } from './actuators.config';
|
||||
import { InfoConfig } from './info-config.interface';
|
||||
import { CommunityListConfig } from './community-list-config.interface';
|
||||
import { HomeConfig } from './homepage-config.interface';
|
||||
|
||||
export class DefaultAppConfig implements AppConfig {
|
||||
production = false;
|
||||
|
||||
@@ -210,10 +212,21 @@ export class DefaultAppConfig implements AppConfig {
|
||||
defaultLowerLimit: 1900
|
||||
};
|
||||
|
||||
browseCommunities: BrowseCommunitiesConfig = {
|
||||
communityListPageSize: 20,
|
||||
topLevelPageSize: 5
|
||||
}
|
||||
communityList: CommunityListConfig = {
|
||||
pageSize: 20
|
||||
};
|
||||
|
||||
homePage: HomeConfig = {
|
||||
recentSubmissions: {
|
||||
//The number of item showing in recent submission components
|
||||
pageSize: 5,
|
||||
//sort record of recent submission
|
||||
sortField: 'dc.date.accessioned',
|
||||
},
|
||||
topLevelCommunityList: {
|
||||
pageSize: 5
|
||||
}
|
||||
};
|
||||
|
||||
// Item Config
|
||||
item: ItemConfig = {
|
||||
@@ -345,13 +358,4 @@ export class DefaultAppConfig implements AppConfig {
|
||||
enableEndUserAgreement: true,
|
||||
enablePrivacyStatement: true
|
||||
};
|
||||
// Home Pages
|
||||
homePage: HomeConfig = {
|
||||
recentSubmissions: {
|
||||
//The number of item showing in recent submission components
|
||||
pageSize: 5,
|
||||
//sort record of recent submission
|
||||
sortField: 'dc.date.accessioned',
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user