Pubmed model: allow year to be an integer

This will make it easier to pass a range of years