IQSS / IQSS/dataverse

Date of Collection facet sort order chronologically

Open
#11,481 0 comments 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?
Set facetable=TRUE for the fields dateOfCollectionStart and dateOfCollectionEnd in metadatablock citation.tsv.
Date/Year facet should be sorted chronologically be default, sorting chronologically is activated https://guides.dataverse.org/en/latest/installation/config.html#chronologicaldatefacets , but sorting order is by numbers.
Image
What happens?
The dateOfCollectionStart & dateOfCollectionEnd facets are not sorted chronologically, also timePeriodCoveredStart & timePeriodCoveredEnd facets.
The “Publication Year” and „Deposit Date“sort order is correct.

What did you expect to happen?
Sort order should work chronologically.

Which version of Dataverse are you [using?]
v6.2

See https://groups.google.com/g/dataverse-community/c/CmLTo9QM2_o/m/PBwWlmgqDwAJ?utm_medium=email&utm_source=footer

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 the facetable date fields in the metadatablock citation.tsv configuration and the chronologicaldatefacets setting in the installation configuration. Compare their facet behavior with the correctly sorted “Publication Year” and “Deposit Date” facets. Done means dateOfCollectionStart, dateOfCollectionEnd, timePeriodCoveredStart, and timePeriodCoveredEnd facets sort chronologically rather than numerically.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.