From 7a3284f6bcded77d8f148c5e662b709c1ee3aac0 Mon Sep 17 00:00:00 2001 From: "Mark H. Wood" Date: Tue, 16 Aug 2022 16:32:38 -0400 Subject: [PATCH 01/10] Make the size of a browse result page configurable. --- .../browse-by-metadata-page.component.ts | 3 ++- src/config/browse-by-config.interface.ts | 17 +++++++++++++---- src/config/default-app-config.ts | 4 +++- src/environments/environment.test.ts | 2 ++ 4 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.ts b/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.ts index f789389697..dcef03b1b1 100644 --- a/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.ts +++ b/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.ts @@ -17,6 +17,7 @@ import { StartsWithType } from '../../shared/starts-with/starts-with-decorator'; import { BrowseByDataType, rendersBrowseBy } from '../browse-by-switcher/browse-by-decorator'; import { PaginationService } from '../../core/pagination/pagination.service'; import { map } from 'rxjs/operators'; +import { environment } from 'src/environments/environment'; @Component({ selector: 'ds-browse-by-metadata-page', @@ -52,7 +53,7 @@ export class BrowseByMetadataPageComponent implements OnInit { paginationConfig: PaginationComponentOptions = Object.assign(new PaginationComponentOptions(), { id: 'bbm', currentPage: 1, - pageSize: 20 + pageSize: environment.browseBy.pageSize, }); /** diff --git a/src/config/browse-by-config.interface.ts b/src/config/browse-by-config.interface.ts index 6adba66b92..eadcdff1a9 100644 --- a/src/config/browse-by-config.interface.ts +++ b/src/config/browse-by-config.interface.ts @@ -1,21 +1,30 @@ import { Config } from './config.interface'; /** - * Config that determines how the dropdown list of years are created for browse-by-date components + * Config that determines how the dropdown list of years are created for + * browse-by-date components. */ export interface BrowseByConfig extends Config { /** - * The max amount of years to display using jumps of one year (current year - oneYearLimit) + * The max amount of years to display using jumps of one year + * (current year - oneYearLimit) */ oneYearLimit: number; /** - * Limit for years to display using jumps of five years (current year - fiveYearLimit) + * Limit for years to display using jumps of five years + * (current year - fiveYearLimit) */ fiveYearLimit: number; /** - * The absolute lowest year to display in the dropdown when no lowest date can be found for all items + * The absolute lowest year to display in the dropdown when no lowest date can + * be found for all items. */ defaultLowerLimit: number; + + /** + * Number of entries in the viewport of a paginated browse-by list. + */ + pageSize: number; } diff --git a/src/config/default-app-config.ts b/src/config/default-app-config.ts index dc54c2fcb0..ac9c691d9d 100644 --- a/src/config/default-app-config.ts +++ b/src/config/default-app-config.ts @@ -193,7 +193,9 @@ 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, + // The number of entries in a paginated browse results list. + pageSize: 20 }; // Item Page Config diff --git a/src/environments/environment.test.ts b/src/environments/environment.test.ts index 7c24ef8f05..47d33cb7a5 100644 --- a/src/environments/environment.test.ts +++ b/src/environments/environment.test.ts @@ -192,6 +192,8 @@ 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, + // The number of entries in a paginated browse results list. + pageSize: 20, }, item: { edit: { From 236216b5560f1ef31b8030e9b761e8a375a25131 Mon Sep 17 00:00:00 2001 From: "Mark H. Wood" Date: Fri, 2 Sep 2022 16:20:51 -0400 Subject: [PATCH 02/10] Document that setting will be rounded to one of the settings options. --- src/config/browse-by-config.interface.ts | 2 ++ src/config/default-app-config.ts | 2 ++ src/environments/environment.test.ts | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/config/browse-by-config.interface.ts b/src/config/browse-by-config.interface.ts index eadcdff1a9..c67d072731 100644 --- a/src/config/browse-by-config.interface.ts +++ b/src/config/browse-by-config.interface.ts @@ -25,6 +25,8 @@ export interface BrowseByConfig extends Config { /** * Number of entries in the viewport of a paginated browse-by list. + * Rounded to the nearest size in the list of selectable sizes on the settings + * menu. See pageSizeOptions in 'pagination-component-options.model.ts'. */ pageSize: number; } diff --git a/src/config/default-app-config.ts b/src/config/default-app-config.ts index 9781857a4e..5f3ddddaf9 100644 --- a/src/config/default-app-config.ts +++ b/src/config/default-app-config.ts @@ -207,6 +207,8 @@ export class DefaultAppConfig implements AppConfig { // The absolute lowest year to display in the dropdown (only used when no lowest date can be found for all items) defaultLowerLimit: 1900, // The number of entries in a paginated browse results list. + // Rounded to the nearest size in the list of selectable sizes on the + // settings menu. See pageSizeOptions in 'pagination-component-options.model.ts'. pageSize: 20 }; diff --git a/src/environments/environment.test.ts b/src/environments/environment.test.ts index bb124a837a..2465b39cb7 100644 --- a/src/environments/environment.test.ts +++ b/src/environments/environment.test.ts @@ -200,6 +200,8 @@ export const environment: BuildConfig = { // The absolute lowest year to display in the dropdown (only used when no lowest date can be found for all items) defaultLowerLimit: 1900, // The number of entries in a paginated browse results list. + // Rounded to the nearest size in the list of selectable sizes on the + // settings menu. See pageSizeOptions in 'pagination-component-options.model.ts'. pageSize: 20, }, item: { From 900dd31351afb01520686610189070a577d01f7f Mon Sep 17 00:00:00 2001 From: "Mark H. Wood" Date: Thu, 15 Sep 2022 16:46:25 -0400 Subject: [PATCH 03/10] Get the environment by injection, as suggested. --- .../browse-by-metadata-page.component.ts | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.ts b/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.ts index 8af140cc08..86450e05c2 100644 --- a/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.ts +++ b/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.ts @@ -1,5 +1,6 @@ import { combineLatest as observableCombineLatest, Observable, Subscription } from 'rxjs'; -import { Component, OnInit } from '@angular/core'; +import { Component, Inject, Injectable, OnInit } from '@angular/core'; +import { AppConfig, APP_CONFIG } from '../../../config/app-config.interface'; import { RemoteData } from '../../core/data/remote-data'; import { PaginatedList } from '../../core/data/paginated-list.model'; import { PaginationComponentOptions } from '../../shared/pagination/pagination-component-options.model'; @@ -17,19 +18,20 @@ import { StartsWithType } from '../../shared/starts-with/starts-with-decorator'; import { BrowseByDataType, rendersBrowseBy } from '../browse-by-switcher/browse-by-decorator'; import { PaginationService } from '../../core/pagination/pagination.service'; import { map } from 'rxjs/operators'; -import { environment } from 'src/environments/environment'; export const BBM_PAGINATION_ID = 'bbm'; +@Injectable() @Component({ selector: 'ds-browse-by-metadata-page', styleUrls: ['./browse-by-metadata-page.component.scss'], templateUrl: './browse-by-metadata-page.component.html' }) /** - * Component for browsing (items) by metadata definition - * A metadata definition (a.k.a. browse id) is a short term used to describe one or multiple metadata fields. - * An example would be 'author' for 'dc.contributor.*' + * Component for browsing (items) by metadata definition. + * A metadata definition (a.k.a. browse id) is a short term used to describe one + * or multiple metadata fields. An example would be 'author' for + * 'dc.contributor.*' */ @rendersBrowseBy(BrowseByDataType.Metadata) export class BrowseByMetadataPageComponent implements OnInit { @@ -52,11 +54,7 @@ export class BrowseByMetadataPageComponent implements OnInit { /** * The pagination config used to display the values */ - paginationConfig: PaginationComponentOptions = Object.assign(new PaginationComponentOptions(), { - id: BBM_PAGINATION_ID, - currentPage: 1, - pageSize: environment.browseBy.pageSize, - }); + paginationConfig: PaginationComponentOptions; /** * The pagination observable @@ -116,10 +114,16 @@ export class BrowseByMetadataPageComponent implements OnInit { protected browseService: BrowseService, protected dsoService: DSpaceObjectDataService, protected paginationService: PaginationService, - protected router: Router) { + protected router: Router, + @Inject(APP_CONFIG) protected appConfig: AppConfig) { } ngOnInit(): void { + this.paginationConfig = Object.assign(new PaginationComponentOptions(), { + id: BBM_PAGINATION_ID, + currentPage: 1, + pageSize: this.appConfig.browseBy.pageSize, + }); const sortConfig = new SortOptions('default', SortDirection.ASC); this.updatePage(new BrowseEntrySearchOptions(this.defaultBrowseId, this.paginationConfig, sortConfig)); this.currentPagination$ = this.paginationService.getCurrentPagination(this.paginationConfig.id, this.paginationConfig); From bc1e49c783c2c3f466272d3a7faed5828a7dfe59 Mon Sep 17 00:00:00 2001 From: "Mark H. Wood" Date: Mon, 19 Sep 2022 11:36:52 -0400 Subject: [PATCH 04/10] Fix @Injectable/@Component conflict --- .../browse-by-date-page/browse-by-date-page.component.ts | 8 +++++--- .../browse-by-metadata-page.component.ts | 3 +-- .../browse-by-title-page.component.ts | 8 +++++--- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/app/browse-by/browse-by-date-page/browse-by-date-page.component.ts b/src/app/browse-by/browse-by-date-page/browse-by-date-page.component.ts index 271828a38e..9b031260ce 100644 --- a/src/app/browse-by/browse-by-date-page/browse-by-date-page.component.ts +++ b/src/app/browse-by/browse-by-date-page/browse-by-date-page.component.ts @@ -1,4 +1,4 @@ -import { ChangeDetectorRef, Component } from '@angular/core'; +import { ChangeDetectorRef, Component, Inject } from '@angular/core'; import { BrowseByMetadataPageComponent, browseParamsToOptions @@ -19,6 +19,7 @@ import { map } from 'rxjs/operators'; import { PaginationComponentOptions } from '../../shared/pagination/pagination-component-options.model'; import { SortDirection, SortOptions } from '../../core/cache/models/sort-options.model'; import { isValidDate } from '../../shared/date.util'; +import { AppConfig, APP_CONFIG } from '../../../config/app-config.interface'; @Component({ selector: 'ds-browse-by-date-page', @@ -43,8 +44,9 @@ export class BrowseByDatePageComponent extends BrowseByMetadataPageComponent { protected dsoService: DSpaceObjectDataService, protected router: Router, protected paginationService: PaginationService, - protected cdRef: ChangeDetectorRef) { - super(route, browseService, dsoService, paginationService, router); + protected cdRef: ChangeDetectorRef, + @Inject(APP_CONFIG) protected appConfig: AppConfig) { + super(route, browseService, dsoService, paginationService, router, appConfig); } ngOnInit(): void { diff --git a/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.ts b/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.ts index 86450e05c2..70408d3a85 100644 --- a/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.ts +++ b/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.ts @@ -1,5 +1,5 @@ import { combineLatest as observableCombineLatest, Observable, Subscription } from 'rxjs'; -import { Component, Inject, Injectable, OnInit } from '@angular/core'; +import { Component, Inject, OnInit } from '@angular/core'; import { AppConfig, APP_CONFIG } from '../../../config/app-config.interface'; import { RemoteData } from '../../core/data/remote-data'; import { PaginatedList } from '../../core/data/paginated-list.model'; @@ -21,7 +21,6 @@ import { map } from 'rxjs/operators'; export const BBM_PAGINATION_ID = 'bbm'; -@Injectable() @Component({ selector: 'ds-browse-by-metadata-page', styleUrls: ['./browse-by-metadata-page.component.scss'], diff --git a/src/app/browse-by/browse-by-title-page/browse-by-title-page.component.ts b/src/app/browse-by/browse-by-title-page/browse-by-title-page.component.ts index 6504a8700a..a6528bed49 100644 --- a/src/app/browse-by/browse-by-title-page/browse-by-title-page.component.ts +++ b/src/app/browse-by/browse-by-title-page/browse-by-title-page.component.ts @@ -1,5 +1,5 @@ import { combineLatest as observableCombineLatest } from 'rxjs'; -import { Component } from '@angular/core'; +import { Component, Inject } from '@angular/core'; import { ActivatedRoute, Params, Router } from '@angular/router'; import { hasValue } from '../../shared/empty.util'; import { @@ -14,6 +14,7 @@ import { BrowseByDataType, rendersBrowseBy } from '../browse-by-switcher/browse- import { PaginationService } from '../../core/pagination/pagination.service'; import { map } from 'rxjs/operators'; import { PaginationComponentOptions } from '../../shared/pagination/pagination-component-options.model'; +import { AppConfig, APP_CONFIG } from '../../../config/app-config.interface'; @Component({ selector: 'ds-browse-by-title-page', @@ -30,8 +31,9 @@ export class BrowseByTitlePageComponent extends BrowseByMetadataPageComponent { protected browseService: BrowseService, protected dsoService: DSpaceObjectDataService, protected paginationService: PaginationService, - protected router: Router) { - super(route, browseService, dsoService, paginationService, router); + protected router: Router, + @Inject(APP_CONFIG) protected appConfig: AppConfig) { + super(route, browseService, dsoService, paginationService, router, appConfig); } ngOnInit(): void { From 5bdf911fc77e1fb8f825190284a9de1fb37b7ac6 Mon Sep 17 00:00:00 2001 From: "Mark H. Wood" Date: Mon, 19 Sep 2022 12:25:22 -0400 Subject: [PATCH 05/10] Specs must provide APP_CONFIG now. --- .../browse-by-date-page.component.spec.ts | 5 ++++- .../browse-by-metadata-page.component.spec.ts | 5 ++++- .../browse-by-title-page.component.spec.ts | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/app/browse-by/browse-by-date-page/browse-by-date-page.component.spec.ts b/src/app/browse-by/browse-by-date-page/browse-by-date-page.component.spec.ts index 15ec9d78db..b6ff177d3d 100644 --- a/src/app/browse-by/browse-by-date-page/browse-by-date-page.component.spec.ts +++ b/src/app/browse-by/browse-by-date-page/browse-by-date-page.component.spec.ts @@ -23,6 +23,8 @@ import { SortDirection, SortOptions } from '../../core/cache/models/sort-options import { PaginationService } from '../../core/pagination/pagination.service'; import { PaginationServiceStub } from '../../shared/testing/pagination-service.stub'; import { FindListOptions } from '../../core/data/find-list-options.model'; +import { APP_CONFIG } from 'src/config/app-config.interface'; +import { environment } from 'src/environments/environment'; describe('BrowseByDatePageComponent', () => { let comp: BrowseByDatePageComponent; @@ -83,7 +85,8 @@ describe('BrowseByDatePageComponent', () => { { provide: DSpaceObjectDataService, useValue: mockDsoService }, { provide: Router, useValue: new RouterMock() }, { provide: PaginationService, useValue: paginationService }, - { provide: ChangeDetectorRef, useValue: mockCdRef } + { provide: ChangeDetectorRef, useValue: mockCdRef }, + { provide: APP_CONFIG, useValue: environment } ], schemas: [NO_ERRORS_SCHEMA] }).compileComponents(); diff --git a/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.spec.ts b/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.spec.ts index 60d2fa549b..03152d0d3e 100644 --- a/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.spec.ts +++ b/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.spec.ts @@ -25,6 +25,8 @@ import { createSuccessfulRemoteDataObject$ } from '../../shared/remote-data.util import { PaginationService } from '../../core/pagination/pagination.service'; import { PaginationComponentOptions } from '../../shared/pagination/pagination-component-options.model'; import { PaginationServiceStub } from '../../shared/testing/pagination-service.stub'; +import { APP_CONFIG } from '../../../config/app-config.interface'; +import { environment } from '../../../environments/environment'; describe('BrowseByMetadataPageComponent', () => { let comp: BrowseByMetadataPageComponent; @@ -97,7 +99,8 @@ describe('BrowseByMetadataPageComponent', () => { { provide: BrowseService, useValue: mockBrowseService }, { provide: DSpaceObjectDataService, useValue: mockDsoService }, { provide: PaginationService, useValue: paginationService }, - { provide: Router, useValue: new RouterMock() } + { provide: Router, useValue: new RouterMock() }, + { provide: APP_CONFIG, useValue: environment } ], schemas: [NO_ERRORS_SCHEMA] }).compileComponents(); diff --git a/src/app/browse-by/browse-by-title-page/browse-by-title-page.component.spec.ts b/src/app/browse-by/browse-by-title-page/browse-by-title-page.component.spec.ts index 554b059ac5..600eab575b 100644 --- a/src/app/browse-by/browse-by-title-page/browse-by-title-page.component.spec.ts +++ b/src/app/browse-by/browse-by-title-page/browse-by-title-page.component.spec.ts @@ -23,6 +23,8 @@ import { SortDirection, SortOptions } from '../../core/cache/models/sort-options import { PaginationService } from '../../core/pagination/pagination.service'; import { PaginationServiceStub } from '../../shared/testing/pagination-service.stub'; import { FindListOptions } from '../../core/data/find-list-options.model'; +import { APP_CONFIG } from 'src/config/app-config.interface'; +import { environment } from 'src/environments/environment'; describe('BrowseByTitlePageComponent', () => { let comp: BrowseByTitlePageComponent; @@ -77,7 +79,8 @@ describe('BrowseByTitlePageComponent', () => { { provide: BrowseService, useValue: mockBrowseService }, { provide: DSpaceObjectDataService, useValue: mockDsoService }, { provide: PaginationService, useValue: paginationService }, - { provide: Router, useValue: new RouterMock() } + { provide: Router, useValue: new RouterMock() }, + { provide: APP_CONFIG, useValue: environment } ], schemas: [NO_ERRORS_SCHEMA] }).compileComponents(); From ed611c571697cda27ffc5b8a6883649f4c414701 Mon Sep 17 00:00:00 2001 From: Toni Prieto Date: Mon, 19 Sep 2022 18:49:30 +0200 Subject: [PATCH 06/10] Implement findAll function of SubmissionCcLicenseDataService --- .../core/submission/submission-cc-license-data.service.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/core/submission/submission-cc-license-data.service.ts b/src/app/core/submission/submission-cc-license-data.service.ts index 976f2acf90..e92de06a6b 100644 --- a/src/app/core/submission/submission-cc-license-data.service.ts +++ b/src/app/core/submission/submission-cc-license-data.service.ts @@ -6,7 +6,7 @@ import { RequestService } from '../data/request.service'; import { SUBMISSION_CC_LICENSE } from './models/submission-cc-licence.resource-type'; import { SubmissionCcLicence } from './models/submission-cc-license.model'; import { BaseDataService } from '../data/base/base-data.service'; -import { FindAllData } from '../data/base/find-all-data'; +import {FindAllData, FindAllDataImpl} from '../data/base/find-all-data'; import { FindListOptions } from '../data/find-list-options.model'; import { FollowLinkConfig } from '../../shared/utils/follow-link-config.model'; import { Observable } from 'rxjs'; @@ -19,6 +19,7 @@ import { dataService } from '../data/base/data-service.decorator'; export class SubmissionCcLicenseDataService extends BaseDataService implements FindAllData { protected linkPath = 'submissioncclicenses'; + private findAllData: FindAllData; constructor( protected requestService: RequestService, @@ -27,6 +28,8 @@ export class SubmissionCcLicenseDataService extends BaseDataService[]): Observable>> { - return undefined; + return this.findAllData.findAll(options, useCachedVersionIfAvailable, reRequestOnStale, ...linksToFollow); } } From 043b92fbc7b91157c98b8b230d2033ba13cfec30 Mon Sep 17 00:00:00 2001 From: "Mark H. Wood" Date: Mon, 19 Sep 2022 13:17:04 -0400 Subject: [PATCH 07/10] Make sure pagination is initialized in derived classes. --- .../browse-by-metadata-page.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.ts b/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.ts index 70408d3a85..20817d9675 100644 --- a/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.ts +++ b/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.ts @@ -115,14 +115,14 @@ export class BrowseByMetadataPageComponent implements OnInit { protected paginationService: PaginationService, protected router: Router, @Inject(APP_CONFIG) protected appConfig: AppConfig) { - } - - ngOnInit(): void { this.paginationConfig = Object.assign(new PaginationComponentOptions(), { id: BBM_PAGINATION_ID, currentPage: 1, pageSize: this.appConfig.browseBy.pageSize, }); + } + + ngOnInit(): void { const sortConfig = new SortOptions('default', SortDirection.ASC); this.updatePage(new BrowseEntrySearchOptions(this.defaultBrowseId, this.paginationConfig, sortConfig)); this.currentPagination$ = this.paginationService.getCurrentPagination(this.paginationConfig.id, this.paginationConfig); From 86364ad375c84bff603fc8cf4218effef755a5e4 Mon Sep 17 00:00:00 2001 From: Toni Prieto Date: Tue, 20 Sep 2022 09:28:16 +0200 Subject: [PATCH 08/10] Add test for SubmissionCcLicenseDataService --- .../submission-cc-license-data.service.spec.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/app/core/submission/submission-cc-license-data.service.spec.ts diff --git a/src/app/core/submission/submission-cc-license-data.service.spec.ts b/src/app/core/submission/submission-cc-license-data.service.spec.ts new file mode 100644 index 0000000000..b3650bac0a --- /dev/null +++ b/src/app/core/submission/submission-cc-license-data.service.spec.ts @@ -0,0 +1,17 @@ +/** + * The contents of this file are subject to the license and copyright + * detailed in the LICENSE and NOTICE files at the root of the source + * tree and available online at + * + * http://www.dspace.org/license/ + */ +import { SubmissionCcLicenseDataService } from './submission-cc-license-data.service'; +import { testFindAllDataImplementation } from '../data/base/find-all-data.spec'; + +describe('SubmissionCcLicenseDataService', () => { + + describe('composition', () => { + const initService = () => new SubmissionCcLicenseDataService(null, null, null, null); + testFindAllDataImplementation(initService); + }); +}); From 4be09885a23aeb01fca0cb765c7fe243e87eaad7 Mon Sep 17 00:00:00 2001 From: Andrea Bollini Date: Wed, 21 Sep 2022 00:02:30 +0200 Subject: [PATCH 09/10] Add label for the citation page curation task --- src/assets/i18n/en.json5 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/assets/i18n/en.json5 b/src/assets/i18n/en.json5 index e7f31350be..828740c215 100644 --- a/src/assets/i18n/en.json5 +++ b/src/assets/i18n/en.json5 @@ -1266,6 +1266,7 @@ "cookies.consent.purpose.statistical": "Statistical", + "curation-task.task.citationpage.label": "Generate Citation Page", "curation-task.task.checklinks.label": "Check Links in Metadata", From 7f696b24d65cf9bd2217b3a24a1ac0eccffaf92e Mon Sep 17 00:00:00 2001 From: "Mark H. Wood" Date: Wed, 21 Sep 2022 08:21:54 -0400 Subject: [PATCH 10/10] Add to example configuration. --- config/config.example.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/config.example.yml b/config/config.example.yml index ae733e0be5..214fc241b5 100644 --- a/config/config.example.yml +++ b/config/config.example.yml @@ -168,6 +168,10 @@ 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 + # The number of entries in a paginated browse results list. + # Rounded to the nearest size in the list of selectable sizes on the + # settings menu. + pageSize: 20 # Item Config item: