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

Sorting Works : Add Title Sort and Date Created Sort #36

Open
deanseeman opened this issue Dec 20, 2019 · 0 comments
Open

Sorting Works : Add Title Sort and Date Created Sort #36

deanseeman opened this issue Dec 20, 2019 · 0 comments

Comments

@deanseeman
Copy link

From the collection landing pages like:

https://vault.library.uvic.ca/collections/c9e55e4b-de7f-4efb-833a-e65555eb26b6

the sorting landing pages are only able to be sorted by
image

Instead of date uploaded and date modified (both more administrative dates), people need to be able to sort on more usable values.

1. Sort by Title

  • from the "Sort by" drop down, you should be able to be select Title ascending / descending
  • you should be able to click on Title column header and to perform a sort (toggle between ascending and descending)

2. Sort by Date Created

  • Create a sort from the "Date Created" field. This would draw on the EDTF dates in the Date Created field as opposed to the Year field (since we want a more granular date sort if available)
  • Since the Date Created field is a text field, this won't be a date-value sort, BUT I believe that most EDTF dates in Date Created should sort properly when sorted as a text field (alphabetically?) - we should test this before implementation to see if this assumption is correct
  • EDTF values contain non-numerical characters (~ / # ? ) and instances like 196X for 1960s. Here are a few rules for how these should sort ideally:
  1. X - replace with 0 - so 19XX sorts as 1900, 195X sorts as 1950
  2. Everything to the right of / should not factor in the sort: so 1923-05-18/1972-03 should sort as 1923-05-18
  3. All other notation (#, ~ , ? ) should be ignored for Sort purposes

I'm ignorant as to what the "Relevance" sort does on the Collection landing pages so it may also be worthwhile getting rid of it.

The above sorting decisions should also be applied to the Search Result page:
https://vault.library.uvic.ca/catalog?utf8=%E2%9C%93&locale=en&search_field=all_fields&q=peg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant