-
Notifications
You must be signed in to change notification settings - Fork 504
File pagination simple and full item pages #838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File pagination simple and full item pages #838
Conversation
|
This pull request fixes 1 alert when merging 18fb47c into f1db0c0 - view on LGTM.com fixed alerts:
|
…ion on simple item pages
|
This pull request fixes 1 alert when merging a38d365 into f1db0c0 - view on LGTM.com fixed alerts:
|
|
This pull request fixes 1 alert when merging 1247088 into f1db0c0 - view on LGTM.com fixed alerts:
|
tdonohue
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me. I tested it with an Item with 11 Bitstreams, and it works as described. On the simple Item view, the first 5 are displayed and you can display 5 more by clicking "Show more" (until no additional bitstreams can be listed). On the full item view, full pagination options exist, showing 5 bitstreams per page. Code and tests look good too! Thanks @Raf-atmire !
|
Merging as this was flagged for |
…ace#851) * Added an URL serializer to fix encoding of the special characters from the URL e.g., `[`, `(` because the filename wasn't properly parsed * Added some unit tests for encoding the bitstream filename url
* Updated the no file preview message (DSpace#837) * Added spacing between clarin & dspace logo (DSpace#848) * Do not load Seznam license every time (DSpace#844) * Fixed encoding of the filename from the URL (DSpace#838) (DSpace#851) * Do not mount the Solr configs; copy them each time instead. (DSpace#850) * Fix the bulk access (DSpace#852) * Video files previews (#30)
References
Add references/links to any related issues or PRs. These may include:
Description
This PR will ensure that the Pagination for files attached to an Item on the simple and full item pages will be fixed and working. The page size is currently set to 5 as a default.
Instructions for Reviewers
List of changes in this PR:
These changes can be reviewed by visiting an item with more than 5 Bitstreams. You'll now be able to access its Bitstreams on the simple item page through pagination with the 'view more' and 'collapse' buttons. It'll also be possible to view the pagination on the full item page through a complete pagination component including page numbers, size and total results.
Checklist
yarn run lintpackage.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.