mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 19:13:08 +00:00
Updated configuration.
This commit is contained in:
@@ -168,9 +168,8 @@ browseBy:
|
||||
fiveYearLimit: 30
|
||||
# The absolute lowest year to display in the dropdown (only used when no lowest date can be found for all items)
|
||||
defaultLowerLimit: 1900
|
||||
|
||||
# If true, thumbnail images for items will be added to search and browse result lists.
|
||||
showItemThumbnails: false
|
||||
# If true, thumbnail images for items will be added to search and browse result lists.
|
||||
showItemThumbnails: true
|
||||
|
||||
# Item Config
|
||||
item:
|
||||
|
@@ -123,7 +123,7 @@ export class BrowseByMetadataPageComponent implements OnInit {
|
||||
protected dsoService: DSpaceObjectDataService,
|
||||
protected paginationService: PaginationService,
|
||||
protected router: Router) {
|
||||
this.embedThumbnail = environment.showItemThumbnails;
|
||||
this.embedThumbnail = environment.browseBy.showItemThumbnails;
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
|
@@ -22,7 +22,7 @@ export class JournalIssueSearchResultListElementComponent extends ItemSearchResu
|
||||
|
||||
ngOnInit(): void {
|
||||
super.ngOnInit();
|
||||
this.showThumbnails = environment.showItemThumbnails;
|
||||
this.showThumbnails = environment.browseBy.showItemThumbnails;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -22,7 +22,7 @@ export class JournalVolumeSearchResultListElementComponent extends ItemSearchRes
|
||||
|
||||
ngOnInit(): void {
|
||||
super.ngOnInit();
|
||||
this.showThumbnails = environment.showItemThumbnails;
|
||||
this.showThumbnails = environment.browseBy.showItemThumbnails;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -22,7 +22,7 @@ export class JournalSearchResultListElementComponent extends ItemSearchResultLis
|
||||
|
||||
ngOnInit(): void {
|
||||
super.ngOnInit();
|
||||
this.showThumbnails = environment.showItemThumbnails;
|
||||
this.showThumbnails = environment.browseBy.showItemThumbnails;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -22,7 +22,7 @@ export class OrgUnitSearchResultListElementComponent extends ItemSearchResultLis
|
||||
|
||||
ngOnInit(): void {
|
||||
super.ngOnInit();
|
||||
this.showThumbnails = environment.showItemThumbnails;
|
||||
this.showThumbnails = environment.browseBy.showItemThumbnails;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -32,7 +32,7 @@ export class PersonSearchResultListElementComponent extends ItemSearchResultList
|
||||
|
||||
ngOnInit(): void {
|
||||
super.ngOnInit();
|
||||
this.showThumbnails = environment.showItemThumbnails;
|
||||
this.showThumbnails = environment.browseBy.showItemThumbnails;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -22,7 +22,7 @@ export class ProjectSearchResultListElementComponent extends ItemSearchResultLis
|
||||
|
||||
ngOnInit(): void {
|
||||
super.ngOnInit();
|
||||
this.showThumbnails = environment.showItemThumbnails;
|
||||
this.showThumbnails = environment.browseBy.showItemThumbnails;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -24,7 +24,7 @@ export class CollectionSearchResultListElementComponent extends SearchResultList
|
||||
|
||||
ngOnInit(): void {
|
||||
super.ngOnInit();
|
||||
this.showThumbnails = environment.showItemThumbnails;
|
||||
this.showThumbnails = environment.browseBy.showItemThumbnails;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -24,6 +24,6 @@ export class CommunitySearchResultListElementComponent extends SearchResultListE
|
||||
|
||||
ngOnInit(): void {
|
||||
super.ngOnInit();
|
||||
this.showThumbnails = environment.showItemThumbnails;
|
||||
this.showThumbnails = environment.browseBy.showItemThumbnails;
|
||||
}
|
||||
}
|
||||
|
@@ -30,7 +30,7 @@ export class ItemSearchResultListElementComponent extends SearchResultListElemen
|
||||
|
||||
ngOnInit(): void {
|
||||
super.ngOnInit();
|
||||
this.showThumbnails = environment.showItemThumbnails;
|
||||
this.showThumbnails = environment.browseBy.showItemThumbnails;
|
||||
this.itemPageRoute = getItemPageRoute(this.dso);
|
||||
}
|
||||
}
|
||||
|
@@ -31,7 +31,6 @@ interface AppConfig extends Config {
|
||||
defaultLanguage: string;
|
||||
languages: LangConfig[];
|
||||
browseBy: BrowseByConfig;
|
||||
showItemThumbnails: boolean;
|
||||
item: ItemConfig;
|
||||
collection: CollectionPageConfig;
|
||||
themes: ThemeConfig[];
|
||||
|
@@ -18,4 +18,9 @@ export interface BrowseByConfig extends Config {
|
||||
* The absolute lowest year to display in the dropdown when no lowest date can be found for all items
|
||||
*/
|
||||
defaultLowerLimit: number;
|
||||
|
||||
/**
|
||||
* If true, thumbnail images for items will be added to search and browse result lists.
|
||||
*/
|
||||
showItemThumbnails: boolean;
|
||||
}
|
||||
|
@@ -205,12 +205,11 @@ export class DefaultAppConfig implements AppConfig {
|
||||
// Limit for years to display using jumps of five years (current year - fiveYearLimit)
|
||||
fiveYearLimit: 30,
|
||||
// The absolute lowest year to display in the dropdown (only used when no lowest date can be found for all items)
|
||||
defaultLowerLimit: 1900
|
||||
defaultLowerLimit: 1900,
|
||||
// Whether to add item thumbnail images to browse and search result lists.
|
||||
showItemThumbnails: true
|
||||
};
|
||||
|
||||
// Whether to add item thumbnail images to browse and search result lists.
|
||||
showItemThumbnails: false;
|
||||
|
||||
// Item Config
|
||||
item: ItemConfig = {
|
||||
edit: {
|
||||
|
@@ -199,8 +199,10 @@ export const environment: BuildConfig = {
|
||||
fiveYearLimit: 30,
|
||||
// The absolute lowest year to display in the dropdown (only used when no lowest date can be found for all items)
|
||||
defaultLowerLimit: 1900,
|
||||
// Whether to add item thumbnail images to browse and search result lists.
|
||||
showItemThumbnails: true
|
||||
},
|
||||
showItemThumbnails: false,
|
||||
|
||||
item: {
|
||||
edit: {
|
||||
undoTimeout: 10000 // 10 seconds
|
||||
|
Reference in New Issue
Block a user