IQSS / IQSS/dataverse

Files count “Files Per Page” not correct

Open
#11,524 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Bug
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.
Image

If files per page is changed to 50 or to 10 and then to 25 again, the counter shows the correct count.
Image
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.
Image

Which version of Dataverse are you using?
V6.2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.