metacatui icon indicating copy to clipboard operation
metacatui copied to clipboard

Consider a minor refactor of the Year filter in the Search sidebar

Open amoeba opened this issue 7 years ago • 2 comments

So @mpsaloha and I were talking in #arctica on Slack and he asked if it was possible to look for datasets uploaded after a specific date, e.g., 2018-02-1. I didn't think this was possible so I looked at the queries the Year section of the Search sidebar sends. When I check the "Publish year" box:

screen shot 2018-02-15 at 4 14 05 pm

The relevant part of the Solr query that's sent is:

datePublished:%5B1800-01-01T00%3A00%3A00Z%20TO%202017-12-31T00%3A00%3A00Z%5D%20OR%20dateUploaded:%5B1800-01-01T00%3A00%3A00Z%20TO%202017-12-31T00%3A00%3A00Z%5D)

which shows it's searching both datePublished and dateUploaded so it appears this does basically what's wanted. I also tested whether a specific day could be entered, rather than just a year, and it appears you can't (results in Solr error). @mpsaloha 's use case here would be to let a scientist see what's new, i.e., what's been uploaded in the last day/week/month. I think this is a pretty valid use case.

What do we think about a change or two:

  • Separate the Year section into a few:
    • dateUploaded
    • pubDate
    • Coverage
  • Allow a final temporal resolution to be queried. Could use...
    • A calendar widget to let the user go as granular as day

    • Use pre-canned "last week", "last month" buttons/links, ala reddit:

      screen shot 2018-02-15 at 4 33 30 pm
    • Let the user type the date

      screen shot 2018-02-15 at 4 35 09 pm

At the very least, I found the current behavior a confusing because "Publish Year" queried both pubDate and dateUploaded.

amoeba avatar Feb 16 '18 01:02 amoeba