Files count “Files Per Page” not correct
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 564
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 29
Description
What steps does it take to reproduce the issue?
Change default value of “Files Per Page” in filesFragment.xhtm file from rows="10" to rows="25":
rows="25" paginator="#{DatasetPage.fileMetadatasSearch.size() gt 10}" paginatorPosition="bottom"
Files per page default is set to 25, 25 files are displayed, but the counter shows 10.
If files per page is changed to 50 or to 10 and then to 25 again, the counter shows the correct count.
e.g. https://data.aussda.at/dataset.xhtml?persistentId=doi:10.11587/EADSOF
What did you expect to happen?
Show initially the correct count of displayed files.
Which version of Dataverse are you using?
V6.2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with filesFragment.xhtm and inspect how the Files Per Page value and displayed-files counter are initialized. Reproduce the dataset page case with the default value of 25, then verify that the counter is correct on initial load as well as after changing the page size.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100