Best practice to search by decade?

Hi,

We need to add a feature that will enable the users to search items by decade. 1970s = 1970-1979.

I am thinking about the best way to enable it and would love to get your input.

One path is to add the value of the decade to the items and then search on this value. The problem with this path is that the value will have to be added with the item on entering it.
One way of doing this is by computing on the value of the year while creating the item. It will need development.
The other way is to add the value manually, which will all know might cause errors.

The other path is not to add the value to the items but to search on the year. Is there a way now to search for year=> 1970 AND year =< 1970? Or does this also need development?

I can also compute the decade offline and do a batch update using CSV import but this is the worst option.

Any thoughts? Have you tackled this issue? How did you solve it?

Thanks,

Hanan Cohen

Hi, the module Faceted Browse will do this for you:
https://omeka.org/s/docs/user-manual/modules/facetedbrowse/

Once you have years formatted using Numeric Data Types (Numeric Data Types - Omeka S User Manual), Faceted Browse will allow you to create “buckets” as browsing options in the sidebar - in your case, 1970-1979, 1980-1989, etc.

1 Like

I added this feature in last version of module AdvancedSearch 3.4.57.