Skip to content
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

Option to sort results by publication year, date added and relevance (ev. title) #402

Closed
sebdeleze opened this issue Nov 30, 2020 · 3 comments · Fixed by #631
Closed

Option to sort results by publication year, date added and relevance (ev. title) #402

sebdeleze opened this issue Nov 30, 2020 · 3 comments · Fixed by #631

Comments

@sebdeleze
Copy link
Contributor

sebdeleze commented Nov 30, 2020

In the document search (public/pro), sort by:

  • Relevance [default]
  • Date (newest)
  • Date (oldest)
  • Title

If easy to realise, add a sort option for all search:

  • User: Relevance [default], Name
  • Research project: Relevance [default], Name, Date (newest), Date (oldest)
  • Collection: Relevance [default], Name
  • Deposit: Relevance [default], Date added (newest), Date added (oldest)
@github-actions
Copy link

This issue is stale because it has been open 6 months with no activity.

@github-actions github-actions bot added the stale Stale or no longer relevant label Jul 27, 2021
@sebdeleze sebdeleze reopened this Jul 28, 2021
@sebdeleze sebdeleze reopened this Aug 2, 2021
@sebdeleze sebdeleze removed the stale Stale or no longer relevant label Aug 2, 2021
@pronguen pronguen added new feature New feature and removed triage labels Aug 11, 2021
@sebdeleze sebdeleze self-assigned this Aug 24, 2021
@mmo
Copy link
Collaborator

mmo commented Aug 24, 2021

Sort by date does to seem to work, either ascending or descending. (pro and public views)

@pronguen
Copy link
Contributor

pronguen commented Aug 25, 2021

  • In the public view, after launching a search, we should click 2 times on the sorting button to choose another sort option.
  • In the professional view, ideally the document default sort in case of a search with search terms should be "relevance".
  • Indeed the document sort by date does not work. Try this search.
    • In the research projects, it does not work neither
  • [not blocking] The options in the sort menu should be sorted alphabetically.
  • [not blocking] The options in the sort menu should not include the option currently selected.
  • [not blocking] Sort by title: documents starting with a diacritics are at the end, but this is not wanted. Example: "Études sur les besoins..."
  • [not blocking] Collection sort by name should consider the language of the interface to chose by which name to sort. It is not the case

@mmo mmo closed this as completed in #631 Sep 7, 2021
mmo pushed a commit that referenced this issue Sep 7, 2021
* Configures sorting behavior for all records types.
* Indexes the fields to sort on as keyword.
* Avoids to click two times on dropdown to show it.
* Closes #402.

Co-Authored-by: Sébastien Délèze <sebastien.deleze@rero.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants