Fixes year filter

It looks like there was no code to generate a list of options for the year filter.