Make the size of a browse result page configurable.#1771
Make the size of a browse result page configurable.#1771tdonohue merged 8 commits intoDSpace:mainfrom
Conversation
artlowel
left a comment
There was a problem hiding this comment.
Thanks @mwoodiupui
The code looks good, and it works as it should. One strange thing though is that you can't use a number that isn't part of the dropdown of page-sizes on the browse page. It will be rounded to the closest match.
I'm not saying you should change that in this PR (e.g. by making those options configurable as well), but it's likely a good idea to make that clear in the comments
artlowel
left a comment
There was a problem hiding this comment.
Sorry, I know I already approved, but I noticed something wile reviewing the other RPP PR, I missed here:
| id: BBM_PAGINATION_ID, | ||
| currentPage: 1, | ||
| pageSize: 20 | ||
| pageSize: environment.browseBy.pageSize, |
There was a problem hiding this comment.
It's better to inject the environment using
@Inject(APP_CONFIG) protected appConfig: AppConfigin the constructor, and then use this.appConfig.browseBy.pageSize later on. That makes it easier for us to mock the environment in tests.
|
@artlowel "Error: 121:3 error Angular will not invoke the Suggestions? |
|
@mwoodiupui I haven't seen it before, but I'd bet the issue is the |
Description
Invent a new configuration property to control the number of results per page when displaying browse results.
Instructions for Reviewers
List of changes in this PR:
browseBy.pageSize.browseByis being configured.Checklist
yarn run lintpackage.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.