mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
Use the same property for both item pages
This commit is contained in:
@@ -207,13 +207,11 @@ item:
|
|||||||
undoTimeout: 10000 # 10 seconds
|
undoTimeout: 10000 # 10 seconds
|
||||||
# Show the item access status label in items lists
|
# Show the item access status label in items lists
|
||||||
showAccessStatuses: false
|
showAccessStatuses: false
|
||||||
simpleView:
|
bitstream:
|
||||||
bitstreamPageSize: 5
|
|
||||||
fullView:
|
|
||||||
# Number of entries in the bitstream list in the full item view page.
|
# Number of entries in the bitstream list in the full item view page.
|
||||||
# Rounded to the nearest size in the list of selectable sizes on the
|
# Rounded to the nearest size in the list of selectable sizes on the
|
||||||
# settings menu. See pageSizeOptions in 'pagination-component-options.model.ts'.
|
# settings menu. See pageSizeOptions in 'pagination-component-options.model.ts'.
|
||||||
bitstreamPageSize: 5
|
pageSize: 5
|
||||||
|
|
||||||
# Collection Page Config
|
# Collection Page Config
|
||||||
collection:
|
collection:
|
||||||
|
@@ -35,8 +35,17 @@ export class FullFileSectionComponent extends FileSectionComponent implements On
|
|||||||
originals$: Observable<RemoteData<PaginatedList<Bitstream>>>;
|
originals$: Observable<RemoteData<PaginatedList<Bitstream>>>;
|
||||||
licenses$: Observable<RemoteData<PaginatedList<Bitstream>>>;
|
licenses$: Observable<RemoteData<PaginatedList<Bitstream>>>;
|
||||||
|
|
||||||
originalOptions: PaginationComponentOptions;
|
originalOptions = Object.assign(new PaginationComponentOptions(), {
|
||||||
licenseOptions: PaginationComponentOptions;
|
id: 'obo',
|
||||||
|
currentPage: 1,
|
||||||
|
pageSize: this.appConfig.item.bitstream.pageSize
|
||||||
|
});
|
||||||
|
|
||||||
|
licenseOptions = Object.assign(new PaginationComponentOptions(), {
|
||||||
|
id: 'lbo',
|
||||||
|
currentPage: 1,
|
||||||
|
pageSize: this.appConfig.item.bitstream.pageSize
|
||||||
|
});
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
bitstreamDataService: BitstreamDataService,
|
bitstreamDataService: BitstreamDataService,
|
||||||
@@ -46,17 +55,6 @@ export class FullFileSectionComponent extends FileSectionComponent implements On
|
|||||||
@Inject(APP_CONFIG) protected appConfig: AppConfig
|
@Inject(APP_CONFIG) protected appConfig: AppConfig
|
||||||
) {
|
) {
|
||||||
super(bitstreamDataService, notificationsService, translateService, appConfig);
|
super(bitstreamDataService, notificationsService, translateService, appConfig);
|
||||||
this.originalOptions = Object.assign(new PaginationComponentOptions(), {
|
|
||||||
id: 'obo',
|
|
||||||
currentPage: 1,
|
|
||||||
pageSize: this.appConfig.item.fullView.bitstreamPageSize
|
|
||||||
});
|
|
||||||
|
|
||||||
this.licenseOptions = Object.assign(new PaginationComponentOptions(), {
|
|
||||||
id: 'lbo',
|
|
||||||
currentPage: 1,
|
|
||||||
pageSize: this.appConfig.item.fullView.bitstreamPageSize
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
@@ -44,7 +44,7 @@ export class FileSectionComponent implements OnInit {
|
|||||||
protected translateService: TranslateService,
|
protected translateService: TranslateService,
|
||||||
@Inject(APP_CONFIG) protected appConfig: AppConfig
|
@Inject(APP_CONFIG) protected appConfig: AppConfig
|
||||||
) {
|
) {
|
||||||
this.pageSize = this.appConfig.item.simpleView.bitstreamPageSize;
|
this.pageSize = this.appConfig.item.bitstream.pageSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
@@ -246,14 +246,11 @@ export class DefaultAppConfig implements AppConfig {
|
|||||||
},
|
},
|
||||||
// Show the item access status label in items lists
|
// Show the item access status label in items lists
|
||||||
showAccessStatuses: false,
|
showAccessStatuses: false,
|
||||||
simpleView: {
|
bitstream: {
|
||||||
bitstreamPageSize: 5
|
// Number of entries in the bitstream list in the item view page.
|
||||||
},
|
|
||||||
fullView: {
|
|
||||||
// Number of entries in the bitstream list in the full item view page.
|
|
||||||
// Rounded to the nearest size in the list of selectable sizes on the
|
// Rounded to the nearest size in the list of selectable sizes on the
|
||||||
// settings menu. See pageSizeOptions in 'pagination-component-options.model.ts'.
|
// settings menu. See pageSizeOptions in 'pagination-component-options.model.ts'.
|
||||||
bitstreamPageSize: 5
|
pageSize: 5
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -7,14 +7,10 @@ export interface ItemConfig extends Config {
|
|||||||
// This is used to show the access status label of items in results lists
|
// This is used to show the access status label of items in results lists
|
||||||
showAccessStatuses: boolean;
|
showAccessStatuses: boolean;
|
||||||
|
|
||||||
simpleView: {
|
bitstream: {
|
||||||
bitstreamPageSize: number;
|
// Number of entries in the bitstream list in the item view page.
|
||||||
};
|
|
||||||
|
|
||||||
fullView: {
|
|
||||||
// Number of entries in the bitstream list in the full item view page.
|
|
||||||
// Rounded to the nearest size in the list of selectable sizes on the
|
// Rounded to the nearest size in the list of selectable sizes on the
|
||||||
// settings menu. See pageSizeOptions in 'pagination-component-options.model.ts'.
|
// settings menu. See pageSizeOptions in 'pagination-component-options.model.ts'.
|
||||||
bitstreamPageSize: number;
|
pageSize: number;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -230,14 +230,11 @@ export const environment: BuildConfig = {
|
|||||||
},
|
},
|
||||||
// Show the item access status label in items lists
|
// Show the item access status label in items lists
|
||||||
showAccessStatuses: false,
|
showAccessStatuses: false,
|
||||||
simpleView: {
|
bitstream: {
|
||||||
bitstreamPageSize: 5
|
// Number of entries in the bitstream list in the item view page.
|
||||||
},
|
|
||||||
fullView: {
|
|
||||||
// Number of entries in the bitstream list in the full item view page.
|
|
||||||
// Rounded to the nearest size in the list of selectable sizes on the
|
// Rounded to the nearest size in the list of selectable sizes on the
|
||||||
// settings menu. See pageSizeOptions in 'pagination-component-options.model.ts'.
|
// settings menu. See pageSizeOptions in 'pagination-component-options.model.ts'.
|
||||||
bitstreamPageSize: 5
|
pageSize: 5
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
collection: {
|
collection: {
|
||||||
|
Reference in New Issue
Block a user