library: rename categories to contentTypes
library: update to years functionality